ep-lib-ts 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.vue.d.ts +2 -0
- package/dist/BgAudio-DezFnyKB.js +4 -0
- package/dist/DisplayBox-DYzeHzkr.js +4 -0
- package/dist/Ep360Image-BZpa7qLl.js +228 -0
- package/dist/Ep360Video-Wy_YWl7-.js +235 -0
- package/dist/EpAlert-DdtU5nno.js +4 -0
- package/dist/EpAudio-vt4JUOf2.js +4 -0
- package/dist/EpAvatar-DTfkDxUP.js +4 -0
- package/dist/{EpAvatar-Dmpg0PFj.js → EpAvatar.vue_vue_type_script_setup_true_lang-IeQ9W4tD.js} +11 -11
- package/dist/EpBadge-BSMtvAqC.js +4 -0
- package/dist/{EpBadge-DqmSNdbi.js → EpBadge-CWIq_C51.js} +2 -2
- package/dist/EpBarChart-BA3EqJ-Z.js +4 -0
- package/dist/EpBranchingScenario-5sbzBXZ0.js +151 -0
- package/dist/EpBtn-B1xGgn2Y.js +4 -0
- package/dist/EpCard-CEjoqwN4.js +4 -0
- package/dist/EpCheckbox-Da_2WoCs.js +4 -0
- package/dist/{EpCheckbox-_Nt9Bvq3.js → EpCheckbox.vue_vue_type_script_setup_true_lang-Dqi62vJ8.js} +13 -13
- package/dist/EpChip-d8r-FDqu.js +4 -0
- package/dist/EpCodeblock-Cu1MOvmi.js +4 -0
- package/dist/EpConclusion-Dk_FFixG.js +4 -0
- package/dist/EpContentSlider-dx8Hu4OS.js +4 -0
- package/dist/{EpDarkmode-fMMNJbJs.js → EpDarkmode-CuVlLi72.js} +5 -5
- package/dist/EpDescription-B00PjQg0.js +4 -0
- package/dist/EpDivider-CukqZw1a.js +4 -0
- package/dist/EpEdu-B5N7RG49.js +4 -0
- package/dist/EpFlex-DAtWa--7.js +4 -0
- package/dist/EpFunnelChart-jn5C9tAB.js +4 -0
- package/dist/EpHeader-Cwx5Qb6Q.js +4 -0
- package/dist/{EpHotsPot-DFz_Du9o.js → EpHotsPot-nT87sUMT.js} +6 -6
- package/dist/EpHover-Kp8XbqYO.js +4 -0
- package/dist/EpHover.vue_vue_type_script_setup_true_lang-BxiamS7-.js +36 -0
- package/dist/EpHoverCard-DRRYl4MK.js +84 -0
- package/dist/EpIcon-DitBbcuQ.js +4 -0
- package/dist/EpIframe-C5c1K8RE.js +4 -0
- package/dist/EpImg-YPH6mMcR.js +4 -0
- package/dist/EpInput-BKc_tU1_.js +1095 -0
- package/dist/EpInstructions-D8kw_rwC.js +4 -0
- package/dist/EpIntroduction-B2d2vChC.js +4 -0
- package/dist/EpLineChart-BjlCf9dW.js +4 -0
- package/dist/EpLink-CXIYlycG.js +4 -0
- package/dist/EpLinkVersion-Dn_Tid-r.js +4 -0
- package/dist/{EpList-B6Q3fXGj.js → EpList-B2x9zHps.js} +3 -3
- package/dist/{EpListitem-DzQrc-k2.js → EpListitem-DXh4Kniu.js} +4 -4
- package/dist/EpLottieSvg-NNSQLDpl.js +1971 -0
- package/dist/EpModal-CaPOVdQK.js +4 -0
- package/dist/EpNothing-D3fg3Krb.js +10 -0
- package/dist/EpObjective-czDKm1c4.js +4 -0
- package/dist/EpPieChart-DuW7EBmx.js +4 -0
- package/dist/EpQuestion-BuIkR2Ae.js +4 -0
- package/dist/EpQuote-5FQFWcfv.js +4 -0
- package/dist/EpRadio-BnPZeKpP.js +4 -0
- package/dist/EpRadioSummative-AtVwjeQ-.js +4 -0
- package/dist/EpReading-s2TQVAZ_.js +4 -0
- package/dist/EpResource-Cxx1lwrs.js +4 -0
- package/dist/EpScope-CG9n9QnC.js +4 -0
- package/dist/EpSection-cDQVtX9A.js +4 -0
- package/dist/EpSectionCols-DsH_iEem.js +4 -0
- package/dist/{EpSelect-FIb6SyJU.js → EpSelect-kjH_wTXb.js} +3 -3
- package/dist/EpSkeleton-BQG8jrs6.js +4 -0
- package/dist/EpSoftware-DR1d7ezZ.js +4 -0
- package/dist/EpSpecificObjective-BS1QMNrt.js +4 -0
- package/dist/EpSpinner-O3kZ_dUO.js +4 -0
- package/dist/EpStackedList-CTU_KKMZ.js +81 -0
- package/dist/EpSummativeTable-iudwhrUL.js +4 -0
- package/dist/EpSvg-Bnj4H9sA.js +4 -0
- package/dist/{EpSwitch-hdXyzuR1.js → EpSwitch-DtQon_hm.js} +2 -2
- package/dist/EpTable-Byza5VY-.js +4 -0
- package/dist/EpTerm-BkpUPK_G.js +4 -0
- package/dist/EpText-J0qcEorF.js +4 -0
- package/dist/{EpTextarea-D8UCQuga.js → EpTextarea-VJ4pdPV_.js} +2 -2
- package/dist/EpTimeLine-Czscwhgg.js +4 -0
- package/dist/{EpToggle-BDp54LpY.js → EpToggle-BTkTNVEz.js} +2 -2
- package/dist/{EpTooltip-B4s0_PvZ.js → EpTooltip-J6UMMP3d.js} +2 -2
- package/dist/EpVideo-0w267ZqV.js +4 -0
- package/dist/EpVideoPanopto-CDy_LUMi.js +4 -0
- package/dist/EpWordDef-qWt87mhg.js +4 -0
- package/dist/components/basics/EpAvatar.vue.d.ts +4 -35
- package/dist/components/basics/EpBadge.vue.d.ts +3 -28
- package/dist/components/basics/EpBtn.vue.d.ts +13 -38
- package/dist/components/basics/EpCard.vue.d.ts +14 -46
- package/dist/components/basics/EpChip.vue.d.ts +12 -38
- package/dist/components/basics/EpDivider.vue.d.ts +3 -33
- package/dist/components/basics/EpFlex.vue.d.ts +8 -2
- package/dist/components/basics/EpHover.vue.d.ts +17 -37
- package/dist/components/basics/EpHoverCard.vue.d.ts +50 -0
- package/dist/components/basics/EpIcon.vue.d.ts +3 -26
- package/dist/components/basics/EpImg.vue.d.ts +2 -38
- package/dist/components/basics/EpSection.vue.d.ts +10 -31
- package/dist/components/basics/EpSectionCols.vue.d.ts +11 -39
- package/dist/components/basics/EpSpinner.vue.d.ts +2 -29
- package/dist/components/basics/EpStackedList.vue.d.ts +12 -0
- package/dist/components/basics/EpTable.vue.d.ts +1 -18
- package/dist/components/basics/EpText.vue.d.ts +2 -33
- package/dist/components/charts/EpBarChart.vue.d.ts +2 -28
- package/dist/components/charts/EpFunnelChart.vue.d.ts +3 -35
- package/dist/components/charts/EpLineChart.vue.d.ts +2 -28
- package/dist/components/charts/EpPieChart.vue.d.ts +3 -31
- package/dist/components/educationals/EpBranchingScenario.vue.d.ts +22 -0
- package/dist/components/educationals/EpCodeblock.vue.d.ts +2 -32
- package/dist/components/educationals/EpConclusion.vue.d.ts +10 -25
- package/dist/components/educationals/EpDescription.vue.d.ts +10 -25
- package/dist/components/educationals/EpEdu.vue.d.ts +13 -37
- package/dist/components/educationals/EpInstructions.vue.d.ts +2 -23
- package/dist/components/educationals/EpIntroduction.vue.d.ts +10 -25
- package/dist/components/educationals/EpObjective.vue.d.ts +10 -25
- package/dist/components/educationals/EpReading.vue.d.ts +3 -49
- package/dist/components/educationals/EpResource.vue.d.ts +2 -24
- package/dist/components/educationals/EpScope.vue.d.ts +1 -19
- package/dist/components/educationals/EpSpecificObjective.vue.d.ts +2 -25
- package/dist/components/forms/EpCheckbox.vue.d.ts +5 -36
- package/dist/components/forms/EpInput.vue.d.ts +7 -44
- package/dist/components/forms/EpRadio.vue.d.ts +5 -39
- package/dist/components/forms/EpRadioSummative.vue.d.ts +5 -39
- package/dist/components/forms/EpSelect.vue.d.ts +12 -13
- package/dist/components/forms/EpTextarea.vue.d.ts +7 -50
- package/dist/components/forms/EpToggle.vue.d.ts +7 -48
- package/dist/components/interactions/EpAccordeon.vue.d.ts +16 -34
- package/dist/components/interactions/EpContentSlider.vue.d.ts +2 -28
- package/dist/components/interactions/EpDarkmode.vue.d.ts +3 -3
- package/dist/components/interactions/EpModal.vue.d.ts +14 -39
- package/dist/components/interactions/EpQuestion.vue.d.ts +2 -38
- package/dist/components/interactions/EpSummativeTable.vue.d.ts +2 -24
- package/dist/components/interactions/EpTabs.vue.d.ts +1 -1
- package/dist/components/medias/EpAudio.vue.d.ts +4 -30
- package/dist/components/medias/EpCarousel.vue.d.ts +2 -32
- package/dist/components/medias/EpIframe.vue.d.ts +2 -28
- package/dist/components/medias/EpKatex.vue.d.ts +4 -24
- package/dist/components/medias/EpLink.vue.d.ts +2 -26
- package/dist/components/medias/EpLinkVersion.vue.d.ts +2 -29
- package/dist/components/medias/EpLottieSvg.vue.d.ts +164 -0
- package/dist/components/medias/EpSoftware.vue.d.ts +2 -36
- package/dist/components/medias/EpSvg.vue.d.ts +2 -24
- package/dist/components/medias/EpTerm.vue.d.ts +10 -41
- package/dist/components/medias/EpTimeLine.vue.d.ts +1 -19
- package/dist/components/medias/EpVideo.vue.d.ts +4 -28
- package/dist/components/medias/EpVideoPanopto.vue.d.ts +2 -28
- package/dist/components/medias/EpWordDef.vue.d.ts +2 -33
- package/dist/components/signages/EpAlert.vue.d.ts +12 -31
- package/dist/components/signages/EpHeader.vue.d.ts +19 -62
- package/dist/components/signages/EpNothing.vue.d.ts +1 -1
- package/dist/components/signages/EpQuote.vue.d.ts +10 -31
- package/dist/components/signages/EpSkeleton.vue.d.ts +3 -32
- package/dist/components/tools/BgAudio.vue.d.ts +4 -26
- package/dist/components/tools/DisplayBox.vue.d.ts +19 -9
- package/dist/components/tools/SvgFilter.vue.d.ts +1 -1
- package/dist/components/tools/TimelineItem.vue.d.ts +4 -28
- package/dist/ep-lib-ts.css +1 -0
- package/dist/ep-lib-ts.js +23 -23
- package/dist/ep-lib-ts.umd.cjs +5157 -109
- package/dist/{index-D4ekzRdY.js → index-1vY3QtSb.js} +5412 -4713
- package/dist/{index-7_RFK7FL.js → index-BkHXngnv.js} +6540 -6317
- package/dist/index-IdtPmXeP.js +3483 -0
- package/dist/index.d.ts +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/menu.vue.d.ts +2 -0
- package/dist/pages/Basics.vue.d.ts +2 -0
- package/dist/pages/CurrentDev.vue.d.ts +2 -0
- package/dist/pages/Educationals.vue.d.ts +2 -0
- package/dist/pages/Forms.vue.d.ts +2 -0
- package/dist/pages/Home.vue.d.ts +2 -0
- package/dist/pages/Interactions.vue.d.ts +2 -0
- package/dist/pages/Medias.vue.d.ts +2 -0
- package/dist/pages/NicDev.vue.d.ts +2 -0
- package/dist/pages/Signages.vue.d.ts +2 -0
- package/dist/pages/basics/EpBadgeView.vue.d.ts +2 -0
- package/dist/pages/basics/EpBtnView.vue.d.ts +2 -0
- package/dist/pages/basics/EpCardView.vue.d.ts +2 -0
- package/dist/pages/basics/EpChipView.vue.d.ts +2 -0
- package/dist/pages/basics/EpFlexView.vue.d.ts +2 -0
- package/dist/pages/basics/EpHoverCardView.vue.d.ts +2 -0
- package/dist/pages/basics/EpIconView.vue.d.ts +2 -0
- package/dist/pages/basics/EpImgView.vue.d.ts +2 -0
- package/dist/pages/basics/EpSectionColsView.vue.d.ts +2 -0
- package/dist/pages/basics/EpSectionView.vue.d.ts +2 -0
- package/dist/pages/basics/EpStackedListView.vue.d.ts +2 -0
- package/dist/pages/basics/EpTableView.vue.d.ts +2 -0
- package/dist/pages/basics/EpTextView.vue.d.ts +2 -0
- package/dist/pages/charts/EpBarChartView.vue.d.ts +2 -0
- package/dist/pages/charts/EpFunnelChartView.vue.d.ts +2 -0
- package/dist/pages/charts/EpLineChartView.vue.d.ts +2 -0
- package/dist/pages/charts/EpPieChartView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpBranchingScenarioView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpCodeBlockView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpConclusionView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpDescriptionView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpEduView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpInstructionsView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpIntroductionView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpObjectiveView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpReadingView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpResourceView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpScopeView.vue.d.ts +2 -0
- package/dist/pages/educationals/EpSpecificObjectiveView.vue.d.ts +2 -0
- package/dist/pages/interactions/Ep360ImageView.vue.d.ts +2 -0
- package/dist/pages/interactions/Ep360VideoView.vue.d.ts +2 -0
- package/dist/pages/interactions/EpAccordeonView.vue.d.ts +2 -0
- package/dist/pages/interactions/EpContentSliderView.vue.d.ts +2 -0
- package/dist/pages/interactions/EpModalView.vue.d.ts +2 -0
- package/dist/pages/interactions/EpQuestionView.vue.d.ts +2 -0
- package/dist/pages/interactions/EpSummativeTableView.vue.d.ts +2 -0
- package/dist/pages/medias/EpAudioView.vue.d.ts +2 -0
- package/dist/pages/medias/EpCarouselView.vue.d.ts +2 -0
- package/dist/pages/medias/EpIframeView.vue.d.ts +2 -0
- package/dist/pages/medias/EpKatexView.vue.d.ts +2 -0
- package/dist/pages/medias/EpLinkVersionView.vue.d.ts +2 -0
- package/dist/pages/medias/EpLinkView.vue.d.ts +2 -0
- package/dist/pages/medias/EpLottieSvgView.vue.d.ts +2 -0
- package/dist/pages/medias/EpSoftwareView.vue.d.ts +2 -0
- package/dist/pages/medias/EpSvgView.vue.d.ts +2 -0
- package/dist/pages/medias/EpTermView.vue.d.ts +2 -0
- package/dist/pages/medias/EpTimeLineView.vue.d.ts +2 -0
- package/dist/pages/medias/EpVideoPanoptoView.vue.d.ts +2 -0
- package/dist/pages/medias/EpVideoView.vue.d.ts +2 -0
- package/dist/pages/medias/EpWordDefView.vue.d.ts +2 -0
- package/dist/pages/signages/EpAlertView.vue.d.ts +2 -0
- package/dist/pages/signages/EpHeaderView.vue.d.ts +2 -0
- package/dist/pages/signages/EpQuoteView.vue.d.ts +2 -0
- package/dist/pages/signages/EpSkeletonView.vue.d.ts +2 -0
- package/dist/prism-CvcYxWXz.js +1184 -0
- package/dist/testImg.jpg +0 -0
- package/dist/testMaria.jpg +0 -0
- package/dist/three.core-ChKHLxK7.js +48675 -0
- package/dist/types/Aframe.d.ts +1 -0
- package/dist/types/Answer.d.ts +0 -1
- package/dist/types/Hover.d.ts +3 -0
- package/dist/types/StackedList.d.ts +63 -0
- package/dist/types/Three.d.ts +1 -0
- package/dist/types/image360.d.ts +16 -0
- package/dist/types/video360.d.ts +16 -0
- package/package.json +33 -27
- package/src/components/basics/EpHover.vue +32 -28
- package/src/components/basics/EpHoverCard.vue +123 -0
- package/src/components/basics/EpImg.vue +1 -1
- package/src/components/basics/EpListitem.vue +41 -59
- package/src/components/basics/EpStackedList.vue +74 -0
- package/src/components/educationals/EpBranchingScenario.vue +239 -0
- package/src/components/educationals/EpEdu.vue +4 -4
- package/src/components/interactions/Ep360Image.vue +344 -0
- package/src/components/interactions/Ep360Video.vue +339 -0
- package/src/components/medias/EpLottieSvg.vue +79 -0
- package/dist/BgAudio-BpeNw9L4.js +0 -4
- package/dist/DisplayBox-aSVYrDHI.js +0 -4
- package/dist/EpAlert-x0STjaqD.js +0 -4
- package/dist/EpAudio-D7LIG4mf.js +0 -4
- package/dist/EpBadge-Du6v1vQL.js +0 -4
- package/dist/EpBarChart-BoINXvhV.js +0 -4
- package/dist/EpBtn-DE6qTHlW.js +0 -4
- package/dist/EpCard-CNcn4RbZ.js +0 -4
- package/dist/EpChip-DHgdqDEX.js +0 -4
- package/dist/EpCodeblock-CR2LGKR-.js +0 -4
- package/dist/EpConclusion-B9DhTuTc.js +0 -4
- package/dist/EpContentSlider-BdS_KctY.js +0 -4
- package/dist/EpDescription-D1TbwNrX.js +0 -4
- package/dist/EpDivider-DjTTwzGb.js +0 -4
- package/dist/EpEdu-CuI1_N9M.js +0 -4
- package/dist/EpFlex-Dx5C4Gc8.js +0 -4
- package/dist/EpFunnelChart-C6_M1nag.js +0 -4
- package/dist/EpHeader-B5jyGMDA.js +0 -4
- package/dist/EpHover-3fnZrdD6.js +0 -31
- package/dist/EpIcon-DDm9gGfm.js +0 -4
- package/dist/EpIframe-BNz3cawg.js +0 -4
- package/dist/EpImg-CxjLfziE.js +0 -4
- package/dist/EpInput-HmLHpLYh.js +0 -1168
- package/dist/EpInstructions-C0reDzIV.js +0 -4
- package/dist/EpIntroduction-C92mD-hu.js +0 -4
- package/dist/EpLineChart-Cm4W9z14.js +0 -4
- package/dist/EpLink-CGVS8yjO.js +0 -4
- package/dist/EpLinkVersion-CsGN9YS9.js +0 -4
- package/dist/EpModal-DuIZeI6V.js +0 -4
- package/dist/EpNothing-BDqIuSB9.js +0 -10
- package/dist/EpObjective-R1tWBwTe.js +0 -4
- package/dist/EpPieChart-CoTBcaaf.js +0 -4
- package/dist/EpQuestion-DmEcATq1.js +0 -4
- package/dist/EpQuote-BPCJBVbM.js +0 -4
- package/dist/EpRadio-TsUBsVoj.js +0 -4
- package/dist/EpRadioSummative-Cl9dVMJD.js +0 -4
- package/dist/EpReading-vOjzuYW7.js +0 -4
- package/dist/EpResource-Dbq_41hb.js +0 -4
- package/dist/EpScope-DIc4HvYy.js +0 -4
- package/dist/EpSection-Cb18CHq0.js +0 -4
- package/dist/EpSectionCols-B1P8ujg-.js +0 -4
- package/dist/EpSkeleton-vw7gDYoi.js +0 -4
- package/dist/EpSoftware-BAKbJhZg.js +0 -4
- package/dist/EpSpecificObjective-B5L6-OCN.js +0 -4
- package/dist/EpSpinner-rQzI6_Pe.js +0 -4
- package/dist/EpSummativeTable-Djg4DVSn.js +0 -4
- package/dist/EpSvg-DggY9PtW.js +0 -4
- package/dist/EpTable-CvhrvBOq.js +0 -4
- package/dist/EpTerm-C6HSHM0J.js +0 -4
- package/dist/EpText-CftDXaM-.js +0 -4
- package/dist/EpTimeLine-D7ks1LH_.js +0 -4
- package/dist/EpVideo-3MO0ao4H.js +0 -4
- package/dist/EpVideoPanopto-C-hIsXtV.js +0 -4
- package/dist/EpWordDef-BkwqmvfJ.js +0 -4
- package/dist/components/basics/EpList.vue.d.ts +0 -11
- package/dist/components/basics/EpListitem.vue.d.ts +0 -45
- package/dist/components/forms/EpSwitch.vue.d.ts +0 -58
- package/dist/components/interactions/EpHotsPot.vue.d.ts +0 -47
- package/dist/components/interactions/EpTooltip.vue.d.ts +0 -51
- package/dist/components/signages/EpBadge.vue.d.ts +0 -59
- package/dist/prism-CZvJL8HS.js +0 -1182
- package/dist/style.css +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('../vue/dist/vue.esm-bundler.js').DefineComponent<{}, {}, {}, {}, {}, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('../vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {}, string, import('../vue/dist/vue.esm-bundler.js').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { defineComponent as I, ref as y, onMounted as T, createElementBlock as l, openBlock as u, createElementVNode as r, createCommentVNode as w, Fragment as _, renderList as b } from "vue";
|
|
2
|
+
import { a as d, V as x, Q as $ } from "./three.core-ChKHLxK7.js";
|
|
3
|
+
const q = { style: { width: "800px", height: "600px", overflow: "hidden", position: "relative", margin: "auto" } }, V = { embedded: "" }, W = ["id", "src"], H = ["src"], L = ["position"], B = ["color", "material", "onClick", "onMouseenter"], N = ["position"], z = ["value"], G = ["value"], J = ["position"], K = ["value"], U = ["value"], Z = /* @__PURE__ */ I({
|
|
4
|
+
__name: "Ep360Image",
|
|
5
|
+
props: {
|
|
6
|
+
scenes: {}
|
|
7
|
+
},
|
|
8
|
+
setup(j) {
|
|
9
|
+
const m = j, v = y(0), n = y(null), i = y(null);
|
|
10
|
+
d.components["rotation-reader"] || d.registerComponent("rotation-reader", {
|
|
11
|
+
schema: {},
|
|
12
|
+
tick: k()
|
|
13
|
+
});
|
|
14
|
+
function C(e, o) {
|
|
15
|
+
if (e && ((e == null ? void 0 : e.event) === "onClick" || !e.event)) {
|
|
16
|
+
if (e.type == "descriptive")
|
|
17
|
+
i.value = e, o.target.setAttribute("material", "opacity: 0; transparent: true"), console.log("Marker clicked:", e);
|
|
18
|
+
else if (e.type == "action") {
|
|
19
|
+
const t = m.scenes.findIndex(
|
|
20
|
+
(a) => a.id === e.scene
|
|
21
|
+
);
|
|
22
|
+
t !== -1 && (v.value = t), console.log(
|
|
23
|
+
"Action Pin Clicked. Scene switched to:",
|
|
24
|
+
v.value
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function P(e, o) {
|
|
30
|
+
e && ((e == null ? void 0 : e.event) === "onHover" || !(e != null && e.event)) && (n.value = e, o.target.setAttribute("material", "opacity: 0; transparent: true"), console.log("Marker hovered:", e));
|
|
31
|
+
}
|
|
32
|
+
function E(e, o) {
|
|
33
|
+
var a;
|
|
34
|
+
if (!e) return;
|
|
35
|
+
const t = o.relatedTarget;
|
|
36
|
+
if ((e == null ? void 0 : e.event) === "onHover" || !(e != null && e.event)) {
|
|
37
|
+
const f = o.target;
|
|
38
|
+
i.value == e && f.setAttribute("material", "opacity: 1; transparent: true"), !(t != null && t.classList.contains("interactive-area")) && ((a = n.value) == null ? void 0 : a.id) === (e == null ? void 0 : e.id) && (n.value = null, console.log("Hover cleared:", e));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function g(e, o) {
|
|
42
|
+
return `${e / 10} ${o / 10} -5`;
|
|
43
|
+
}
|
|
44
|
+
T(() => {
|
|
45
|
+
(async () => await M("rotation-reader", 2e3))(), (async () => await O(2e3))();
|
|
46
|
+
});
|
|
47
|
+
async function M(e, o = 1e3) {
|
|
48
|
+
d.components[e] && (await p(o), delete d.components[e]);
|
|
49
|
+
}
|
|
50
|
+
function p(e) {
|
|
51
|
+
return new Promise((o) => setTimeout(o, e));
|
|
52
|
+
}
|
|
53
|
+
async function O(e = 1e3) {
|
|
54
|
+
await p(e), d.components["rotation-reader"] && (console.warn(
|
|
55
|
+
"Existing rotation-reader component found. Re-registering..."
|
|
56
|
+
), delete d.components["rotation-reader"]), d.registerComponent("rotation-reader", {
|
|
57
|
+
schema: {},
|
|
58
|
+
tick: k()
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function k() {
|
|
62
|
+
const e = new $(), o = new x(), t = new x(), a = 5, f = 0.8;
|
|
63
|
+
return function() {
|
|
64
|
+
D(this.el.object3D, e), S(e), this.el.object3D.getWorldPosition(o), document.querySelectorAll(".pin-marker").forEach((h) => {
|
|
65
|
+
const s = h.object3D;
|
|
66
|
+
if (s) {
|
|
67
|
+
s.getWorldPosition(t);
|
|
68
|
+
const c = o.distanceTo(t) * f / a;
|
|
69
|
+
s.scale.set(c, c, c);
|
|
70
|
+
}
|
|
71
|
+
}), document.querySelectorAll(".frame").forEach((h) => {
|
|
72
|
+
const s = h.object3D;
|
|
73
|
+
if (s) {
|
|
74
|
+
s.getWorldPosition(t);
|
|
75
|
+
const c = o.distanceTo(t) * f / a;
|
|
76
|
+
s.scale.set(c, c, c);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function A(e) {
|
|
82
|
+
return n.value && n.value.id === e || i.value && i.value.id === e ? 0 : 1;
|
|
83
|
+
}
|
|
84
|
+
function D(e, o) {
|
|
85
|
+
e.getWorldQuaternion(o);
|
|
86
|
+
}
|
|
87
|
+
function S(e) {
|
|
88
|
+
document.querySelectorAll(".pin-marker").forEach((o) => {
|
|
89
|
+
const t = o.object3D;
|
|
90
|
+
t && t.setRotationFromQuaternion(e);
|
|
91
|
+
}), document.querySelectorAll(".frame").forEach((o) => {
|
|
92
|
+
const t = o.object3D;
|
|
93
|
+
t && t.setRotationFromQuaternion(e);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function Q() {
|
|
97
|
+
i.value = null;
|
|
98
|
+
}
|
|
99
|
+
function R(e) {
|
|
100
|
+
return e.color || "indigo";
|
|
101
|
+
}
|
|
102
|
+
return (e, o) => (u(), l("div", q, [
|
|
103
|
+
r("a-scene", V, [
|
|
104
|
+
r("a-assets", null, [
|
|
105
|
+
(u(!0), l(_, null, b(m.scenes, (t) => (u(), l("img", {
|
|
106
|
+
key: t.id,
|
|
107
|
+
id: `image${t.id}`,
|
|
108
|
+
src: t.skyImage,
|
|
109
|
+
crossorigin: "anonymous"
|
|
110
|
+
}, null, 8, W))), 128))
|
|
111
|
+
]),
|
|
112
|
+
o[3] || (o[3] = r("a-entity", {
|
|
113
|
+
camera: "",
|
|
114
|
+
"look-controls": "",
|
|
115
|
+
id: "rig",
|
|
116
|
+
"rotation-reader": ""
|
|
117
|
+
}, [
|
|
118
|
+
r("a-cursor", {
|
|
119
|
+
id: "cursor",
|
|
120
|
+
cursor: "rayOrigin: mouse",
|
|
121
|
+
raycaster: "objects: none",
|
|
122
|
+
geometry: "primitive: ring; radiusInner: 0; radiusOuter: 0",
|
|
123
|
+
material: "opacity: 0; transparent: true"
|
|
124
|
+
})
|
|
125
|
+
], -1)),
|
|
126
|
+
r("a-sky", {
|
|
127
|
+
src: `#image${m.scenes[v.value].id}`,
|
|
128
|
+
radius: "100"
|
|
129
|
+
}, null, 8, H),
|
|
130
|
+
(u(!0), l(_, null, b(m.scenes[v.value].pins, (t) => (u(), l("a-entity", {
|
|
131
|
+
key: t.id,
|
|
132
|
+
position: g(t.x, t.y),
|
|
133
|
+
cursor: "rayOrigin: mouse"
|
|
134
|
+
}, [
|
|
135
|
+
r("a-circle", {
|
|
136
|
+
class: "pin-marker",
|
|
137
|
+
color: R(t),
|
|
138
|
+
radius: "0.25",
|
|
139
|
+
shader: "flat",
|
|
140
|
+
material: `opacity: ${A(
|
|
141
|
+
t.id
|
|
142
|
+
)}; transparent: true`,
|
|
143
|
+
onClick: (a) => C(t, a),
|
|
144
|
+
onMouseenter: (a) => P(t, a)
|
|
145
|
+
}, null, 40, B)
|
|
146
|
+
], 8, L))), 128)),
|
|
147
|
+
n.value ? (u(), l("a-entity", {
|
|
148
|
+
key: 0,
|
|
149
|
+
position: g(n.value.x, n.value.y),
|
|
150
|
+
class: "frame interactive-area",
|
|
151
|
+
cursor: "rayOrigin: mouse",
|
|
152
|
+
onMouseleave: o[0] || (o[0] = (t) => E(n.value, t))
|
|
153
|
+
}, [
|
|
154
|
+
o[1] || (o[1] = r("a-plane", {
|
|
155
|
+
color: "white",
|
|
156
|
+
opacity: 1,
|
|
157
|
+
width: "4",
|
|
158
|
+
height: "1.5",
|
|
159
|
+
material: "shader: standard; side: double;",
|
|
160
|
+
position: "0 0 0",
|
|
161
|
+
geometry: "primitive: plane; height: 1.5; width: 4;"
|
|
162
|
+
}, null, -1)),
|
|
163
|
+
r("a-text", {
|
|
164
|
+
value: n.value.title,
|
|
165
|
+
color: "#2c3e50",
|
|
166
|
+
font: "dejavu",
|
|
167
|
+
align: "center",
|
|
168
|
+
width: "3.8",
|
|
169
|
+
position: "0 0.3 0.01"
|
|
170
|
+
}, null, 8, z),
|
|
171
|
+
r("a-text", {
|
|
172
|
+
value: n.value.description,
|
|
173
|
+
color: "#34495e",
|
|
174
|
+
font: "dejavu",
|
|
175
|
+
align: "center",
|
|
176
|
+
width: "3.5",
|
|
177
|
+
position: "0 -0.3 0.01"
|
|
178
|
+
}, null, 8, G)
|
|
179
|
+
], 40, N)) : w("", !0),
|
|
180
|
+
i.value ? (u(), l("a-entity", {
|
|
181
|
+
key: 1,
|
|
182
|
+
position: g(i.value.x, i.value.y),
|
|
183
|
+
class: "frame interactive-area",
|
|
184
|
+
cursor: "rayOrigin: mouse"
|
|
185
|
+
}, [
|
|
186
|
+
o[2] || (o[2] = r("a-plane", {
|
|
187
|
+
color: "white",
|
|
188
|
+
opacity: 1,
|
|
189
|
+
width: "4",
|
|
190
|
+
height: "1.5",
|
|
191
|
+
material: "shader: standard; side: double;",
|
|
192
|
+
position: "0 0 0",
|
|
193
|
+
geometry: "primitive: plane; height: 1.5; width: 4;"
|
|
194
|
+
}, null, -1)),
|
|
195
|
+
r("a-plane", {
|
|
196
|
+
class: "close-frame",
|
|
197
|
+
color: "red",
|
|
198
|
+
width: "0.4",
|
|
199
|
+
height: "0.4",
|
|
200
|
+
position: "1.8 0.55 0.01",
|
|
201
|
+
material: "shader: flat; side: double; transparent: true;",
|
|
202
|
+
geometry: "primitive: plane; height: 0.4; width: 0.4;",
|
|
203
|
+
onClick: Q
|
|
204
|
+
}),
|
|
205
|
+
r("a-text", {
|
|
206
|
+
value: i.value.title,
|
|
207
|
+
color: "#2c3e50",
|
|
208
|
+
font: "dejavu",
|
|
209
|
+
align: "center",
|
|
210
|
+
width: "3.8",
|
|
211
|
+
position: "0 0.3 0.01"
|
|
212
|
+
}, null, 8, K),
|
|
213
|
+
r("a-text", {
|
|
214
|
+
value: i.value.description,
|
|
215
|
+
color: "#34495e",
|
|
216
|
+
font: "dejavu",
|
|
217
|
+
align: "center",
|
|
218
|
+
width: "3.5",
|
|
219
|
+
position: "0 -0.3 0.01"
|
|
220
|
+
}, null, 8, U)
|
|
221
|
+
], 8, J)) : w("", !0)
|
|
222
|
+
])
|
|
223
|
+
]));
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
export {
|
|
227
|
+
Z as default
|
|
228
|
+
};
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { defineComponent as F, ref as h, onMounted as T, createElementBlock as s, openBlock as l, createElementVNode as n, toDisplayString as W, createCommentVNode as j, Fragment as p, renderList as k } from "vue";
|
|
2
|
+
import { a as d, V as P, Q as H } from "./three.core-ChKHLxK7.js";
|
|
3
|
+
const I = { style: { width: "1200px", height: "800px", position: "relative", margin: "auto" } }, L = { embedded: "" }, B = ["id", "src"], N = ["src"], z = ["position"], G = ["color", "material", "onClick", "onMouseenter", "onMouseleave"], J = ["position"], K = ["value"], U = ["value"], X = ["position"], Y = ["value"], Z = ["value"], oe = /* @__PURE__ */ F({
|
|
4
|
+
__name: "Ep360Video",
|
|
5
|
+
props: {
|
|
6
|
+
scenes: {}
|
|
7
|
+
},
|
|
8
|
+
setup(C) {
|
|
9
|
+
const v = C, m = h(0), r = h(null), a = h(null), f = h(!1);
|
|
10
|
+
d.components["rotation-reader"] || d.registerComponent("rotation-reader", {
|
|
11
|
+
schema: {},
|
|
12
|
+
tick: b()
|
|
13
|
+
});
|
|
14
|
+
function E(e, o) {
|
|
15
|
+
if (e && (e == null ? void 0 : e.event) === "onClick") {
|
|
16
|
+
if (e.type === "descriptive")
|
|
17
|
+
a.value = e, o.target.setAttribute("material", "opacity: 0; transparent: true"), console.log("Marker clicked:", e);
|
|
18
|
+
else if (e.type === "action") {
|
|
19
|
+
const t = v.scenes.findIndex(
|
|
20
|
+
(i) => i.id === e.scene
|
|
21
|
+
);
|
|
22
|
+
t !== -1 && (m.value = t), console.log(
|
|
23
|
+
"Action Pin Clicked. Scene switched to:",
|
|
24
|
+
m.value
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function M(e, o) {
|
|
30
|
+
e && (e.event === "onHover" || !e.event) && (r.value = e, console.log("Marker hovered:", e));
|
|
31
|
+
}
|
|
32
|
+
function w(e, o) {
|
|
33
|
+
var i;
|
|
34
|
+
if (!e) return;
|
|
35
|
+
const t = o.relatedTarget;
|
|
36
|
+
(e.event === "onHover" || !(e != null && e.event)) && !(t != null && t.classList.contains("interactive-area")) && ((i = r.value) == null ? void 0 : i.id) === e.id && (r.value = null, console.log("Hover cleared:", e));
|
|
37
|
+
}
|
|
38
|
+
function g(e, o) {
|
|
39
|
+
return `${e / 10} ${o / 10} -5`;
|
|
40
|
+
}
|
|
41
|
+
function O() {
|
|
42
|
+
a.value = null;
|
|
43
|
+
}
|
|
44
|
+
function S(e) {
|
|
45
|
+
return e.color || "indigo";
|
|
46
|
+
}
|
|
47
|
+
function D(e) {
|
|
48
|
+
return r.value && r.value.id === e || a.value && a.value.id === e ? 0 : 1;
|
|
49
|
+
}
|
|
50
|
+
function A() {
|
|
51
|
+
f.value = !f.value, document.querySelectorAll(".video").forEach((o) => {
|
|
52
|
+
f.value ? o.play() : o.pause();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
T(() => {
|
|
56
|
+
(async () => await V("rotation-reader", 2e3))(), (async () => await Q(2e3))();
|
|
57
|
+
});
|
|
58
|
+
async function V(e, o = 1e3) {
|
|
59
|
+
d.components[e] && (await _(o), delete d.components[e]);
|
|
60
|
+
}
|
|
61
|
+
function _(e) {
|
|
62
|
+
return new Promise((o) => setTimeout(o, e));
|
|
63
|
+
}
|
|
64
|
+
async function Q(e = 1e3) {
|
|
65
|
+
await _(e), d.components["rotation-reader"] && (console.warn("Existing rotation-reader found. Re-registering..."), delete d.components["rotation-reader"]), d.registerComponent("rotation-reader", {
|
|
66
|
+
schema: {},
|
|
67
|
+
tick: b()
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function b() {
|
|
71
|
+
const e = new H(), o = new P(), t = new P(), i = 5, x = 0.8;
|
|
72
|
+
return function() {
|
|
73
|
+
R(this.el.object3D, e), $(e), this.el.object3D.getWorldPosition(o), document.querySelectorAll(".pin-marker").forEach((y) => {
|
|
74
|
+
const c = y.object3D;
|
|
75
|
+
if (c) {
|
|
76
|
+
c.getWorldPosition(t);
|
|
77
|
+
const u = o.distanceTo(t) * x / i;
|
|
78
|
+
c.scale.set(u, u, u);
|
|
79
|
+
}
|
|
80
|
+
}), document.querySelectorAll(".frame").forEach((y) => {
|
|
81
|
+
const c = y.object3D;
|
|
82
|
+
if (c) {
|
|
83
|
+
c.getWorldPosition(t);
|
|
84
|
+
const u = o.distanceTo(t) * x / i;
|
|
85
|
+
c.scale.set(u, u, u);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function R(e, o) {
|
|
91
|
+
e.getWorldQuaternion(o);
|
|
92
|
+
}
|
|
93
|
+
function $(e) {
|
|
94
|
+
document.querySelectorAll(".pin-marker").forEach((o) => {
|
|
95
|
+
const t = o.object3D;
|
|
96
|
+
t && t.setRotationFromQuaternion(e);
|
|
97
|
+
}), document.querySelectorAll(".frame").forEach((o) => {
|
|
98
|
+
const t = o.object3D;
|
|
99
|
+
t && t.setRotationFromQuaternion(e);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return (e, o) => (l(), s("div", I, [
|
|
103
|
+
n("button", {
|
|
104
|
+
onClick: o[0] || (o[0] = (t) => A())
|
|
105
|
+
}, W(f.value ? "Pause" : "Play"), 1),
|
|
106
|
+
n("a-scene", L, [
|
|
107
|
+
n("a-assets", null, [
|
|
108
|
+
(l(!0), s(p, null, k(v.scenes, (t) => (l(), s("video", {
|
|
109
|
+
id: `video${t.id}`,
|
|
110
|
+
src: t.skyVideo,
|
|
111
|
+
muted: "",
|
|
112
|
+
class: "video",
|
|
113
|
+
playsinline: "",
|
|
114
|
+
loop: "",
|
|
115
|
+
crossorigin: "anonymous"
|
|
116
|
+
}, null, 8, B))), 256))
|
|
117
|
+
]),
|
|
118
|
+
o[4] || (o[4] = n("a-entity", {
|
|
119
|
+
camera: "",
|
|
120
|
+
"look-controls": "",
|
|
121
|
+
id: "rig",
|
|
122
|
+
"rotation-reader": ""
|
|
123
|
+
}, [
|
|
124
|
+
n("a-cursor", {
|
|
125
|
+
id: "cursor",
|
|
126
|
+
cursor: "rayOrigin: mouse",
|
|
127
|
+
raycaster: "objects: none",
|
|
128
|
+
geometry: "primitive: ring; radiusInner: 0; radiusOuter: 0",
|
|
129
|
+
material: "opacity: 0; transparent: true"
|
|
130
|
+
})
|
|
131
|
+
], -1)),
|
|
132
|
+
(l(!0), s(p, null, k(v.scenes, (t) => (l(), s("a-videosphere", {
|
|
133
|
+
key: t.id,
|
|
134
|
+
src: `#video${v.scenes[m.value].id}`
|
|
135
|
+
}, null, 8, N))), 128)),
|
|
136
|
+
(l(!0), s(p, null, k(v.scenes[m.value].pins, (t) => (l(), s("a-entity", {
|
|
137
|
+
key: t.id,
|
|
138
|
+
position: g(t.x, t.y),
|
|
139
|
+
cursor: "rayOrigin: mouse"
|
|
140
|
+
}, [
|
|
141
|
+
n("a-circle", {
|
|
142
|
+
class: "pin-marker",
|
|
143
|
+
color: S(t),
|
|
144
|
+
radius: "0.25",
|
|
145
|
+
shader: "flat",
|
|
146
|
+
material: `opacity: ${D(
|
|
147
|
+
t.id
|
|
148
|
+
)}; transparent: true`,
|
|
149
|
+
onClick: (i) => E(t, i),
|
|
150
|
+
onMouseenter: (i) => M(t),
|
|
151
|
+
onMouseleave: (i) => w(t, i)
|
|
152
|
+
}, null, 40, G)
|
|
153
|
+
], 8, z))), 128)),
|
|
154
|
+
r.value ? (l(), s("a-entity", {
|
|
155
|
+
key: 0,
|
|
156
|
+
position: g(r.value.x, r.value.y),
|
|
157
|
+
class: "frame interactive-area",
|
|
158
|
+
cursor: "rayOrigin: mouse",
|
|
159
|
+
onMouseleave: o[1] || (o[1] = (t) => w(r.value, t))
|
|
160
|
+
}, [
|
|
161
|
+
o[2] || (o[2] = n("a-plane", {
|
|
162
|
+
color: "white",
|
|
163
|
+
opacity: 1,
|
|
164
|
+
width: "4",
|
|
165
|
+
height: "1.5",
|
|
166
|
+
material: "shader: standard; side: double;",
|
|
167
|
+
position: "0 0 0",
|
|
168
|
+
geometry: "primitive: plane; height: 1.5; width: 4;"
|
|
169
|
+
}, null, -1)),
|
|
170
|
+
n("a-text", {
|
|
171
|
+
value: r.value.title,
|
|
172
|
+
color: "#2c3e50",
|
|
173
|
+
font: "dejavu",
|
|
174
|
+
align: "center",
|
|
175
|
+
width: "3.8",
|
|
176
|
+
position: "0 0.3 0.01"
|
|
177
|
+
}, null, 8, K),
|
|
178
|
+
n("a-text", {
|
|
179
|
+
value: r.value.description,
|
|
180
|
+
color: "#34495e",
|
|
181
|
+
font: "dejavu",
|
|
182
|
+
align: "center",
|
|
183
|
+
width: "3.5",
|
|
184
|
+
position: "0 -0.3 0.01"
|
|
185
|
+
}, null, 8, U)
|
|
186
|
+
], 40, J)) : j("", !0),
|
|
187
|
+
a.value ? (l(), s("a-entity", {
|
|
188
|
+
key: 1,
|
|
189
|
+
position: g(a.value.x, a.value.y),
|
|
190
|
+
class: "frame interactive-area",
|
|
191
|
+
cursor: "rayOrigin: mouse"
|
|
192
|
+
}, [
|
|
193
|
+
o[3] || (o[3] = n("a-plane", {
|
|
194
|
+
color: "white",
|
|
195
|
+
opacity: 1,
|
|
196
|
+
width: "4",
|
|
197
|
+
height: "1.5",
|
|
198
|
+
material: "shader: standard; side: double;",
|
|
199
|
+
position: "0 0 0",
|
|
200
|
+
geometry: "primitive: plane; height: 1.5; width: 4;"
|
|
201
|
+
}, null, -1)),
|
|
202
|
+
n("a-plane", {
|
|
203
|
+
class: "close-frame",
|
|
204
|
+
color: "red",
|
|
205
|
+
width: "0.4",
|
|
206
|
+
height: "0.4",
|
|
207
|
+
position: "1.8 0.55 0.01",
|
|
208
|
+
material: "shader: flat; side: double; transparent: true;",
|
|
209
|
+
geometry: "primitive: plane; height: 0.4; width: 0.4;",
|
|
210
|
+
onClick: O
|
|
211
|
+
}),
|
|
212
|
+
n("a-text", {
|
|
213
|
+
value: a.value.title,
|
|
214
|
+
color: "#2c3e50",
|
|
215
|
+
font: "dejavu",
|
|
216
|
+
align: "center",
|
|
217
|
+
width: "3.8",
|
|
218
|
+
position: "0 0.3 0.01"
|
|
219
|
+
}, null, 8, Y),
|
|
220
|
+
n("a-text", {
|
|
221
|
+
value: a.value.description,
|
|
222
|
+
color: "#34495e",
|
|
223
|
+
font: "dejavu",
|
|
224
|
+
align: "center",
|
|
225
|
+
width: "3.5",
|
|
226
|
+
position: "0 -0.3 0.01"
|
|
227
|
+
}, null, 8, Z)
|
|
228
|
+
], 8, X)) : j("", !0)
|
|
229
|
+
])
|
|
230
|
+
]));
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
export {
|
|
234
|
+
oe as default
|
|
235
|
+
};
|
package/dist/{EpAvatar-Dmpg0PFj.js → EpAvatar.vue_vue_type_script_setup_true_lang-IeQ9W4tD.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as x, computed as t,
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as x, computed as t, createElementBlock as r, openBlock as n, createCommentVNode as f, createElementVNode as s, normalizeClass as o, toDisplayString as h } from "vue";
|
|
2
|
+
const _ = {
|
|
3
3
|
circle: {
|
|
4
4
|
small: " rounded-full w-12 h-12 text-5xl ",
|
|
5
5
|
middle: "rounded-full w-14 h-14 text-6xl",
|
|
@@ -15,7 +15,7 @@ const p = {
|
|
|
15
15
|
middle: "rounded w-14 h-14 text-6xl",
|
|
16
16
|
big: "rounded w-16 h-16 text-7xl"
|
|
17
17
|
}
|
|
18
|
-
},
|
|
18
|
+
}, p = { key: 0 }, v = ["src", "alt"], w = { key: 1 }, b = /* @__PURE__ */ x({
|
|
19
19
|
__name: "EpAvatar",
|
|
20
20
|
props: {
|
|
21
21
|
src: { default: "" },
|
|
@@ -28,23 +28,23 @@ const p = {
|
|
|
28
28
|
setup(c) {
|
|
29
29
|
const e = c, d = t(() => e.variant), u = t(() => e.size), a = t(() => {
|
|
30
30
|
var l;
|
|
31
|
-
return `${(l =
|
|
31
|
+
return `${(l = _[d.value]) == null ? void 0 : l[u.value]}`;
|
|
32
32
|
}), i = t(() => " bg-" + e.color), m = t(() => e.name.length > 2 ? e.name.slice(0, 2) : e.name);
|
|
33
|
-
return (l, g) => (
|
|
34
|
-
e.src != "" ? (
|
|
33
|
+
return (l, g) => (n(), r("div", null, [
|
|
34
|
+
e.src != "" ? (n(), r("div", p, [
|
|
35
35
|
s("img", {
|
|
36
36
|
src: e.src,
|
|
37
37
|
alt: e.alt,
|
|
38
38
|
class: o(`${a.value} `)
|
|
39
|
-
}, null, 10,
|
|
40
|
-
])) : e.src == "" ? (
|
|
39
|
+
}, null, 10, v)
|
|
40
|
+
])) : e.src == "" ? (n(), r("div", w, [
|
|
41
41
|
s("div", {
|
|
42
42
|
class: o(`${a.value} ${i.value} justify-center font-bold text-white flex items-center`)
|
|
43
|
-
},
|
|
44
|
-
])) :
|
|
43
|
+
}, h(m.value), 3)
|
|
44
|
+
])) : f("", !0)
|
|
45
45
|
]));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
b as
|
|
49
|
+
b as _
|
|
50
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as t,
|
|
1
|
+
import { defineComponent as u, computed as t, createElementBlock as f, openBlock as s, renderSlot as b, createElementVNode as c, normalizeClass as h, toDisplayString as m } from "vue";
|
|
2
2
|
const x = {
|
|
3
3
|
top_left: {
|
|
4
4
|
default: "-top-2 -left-2 absolute inline-flex items-center justify-center w-6 h-6 text-xs font-bold text-white border-2 border-white rounded-full dark:border-gray-900",
|
|
@@ -42,7 +42,7 @@ const x = {
|
|
|
42
42
|
var r;
|
|
43
43
|
return `${(r = x[l.value]) == null ? void 0 : r[d.value]}`;
|
|
44
44
|
});
|
|
45
|
-
return (r, y) => (
|
|
45
|
+
return (r, y) => (s(), f("div", p, [
|
|
46
46
|
b(r.$slots, "default"),
|
|
47
47
|
c("div", {
|
|
48
48
|
class: h(`${a.value} ${i.value}`)
|