+
+
- {{ trans('theme_settings') }}
+
+ {{ trans("theme_settings") }}
@@ -236,4 +295,4 @@ emitter.on('globalSave', () => {
#rightPanel {
transition: all 0.5s ease;
}
-
+
\ No newline at end of file
diff --git a/_dev/src/components/Slider.vue b/_dev/src/components/Slider.vue
new file mode 100644
index 00000000..60230010
--- /dev/null
+++ b/_dev/src/components/Slider.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+ {{ props.modelValue }}
+
+
+
+
+
\ No newline at end of file
diff --git a/_dev/src/components/SortableList.vue b/_dev/src/components/SortableList.vue
index 1dc7b4bf..ea4a4d9d 100644
--- a/_dev/src/components/SortableList.vue
+++ b/_dev/src/components/SortableList.vue
@@ -2,8 +2,11 @@
import draggable from "vuedraggable";
import { HttpClient } from "../services/HttpClient";
import emitter from "tiny-emitter/instance";
-import { contextShop, useStore } from "../store/currentBlock";
+import { contextShop, useStore, usePrettyBlocksContext } from "../store/pinia";
import { createToaster } from "@meforma/vue-toaster";
+import { trans } from "../scripts/trans";
+
+const prettyBlocksContext = usePrettyBlocksContext()
const toaster = createToaster({
position: "top",
@@ -24,9 +27,11 @@ defineProps({
*/
const onStart = async (evt, group) => {
let id_prettyblocks = group[evt.oldDraggableIndex].id_prettyblocks;
- let currentBlock = useStore();
- await currentBlock.$patch({
- id_prettyblocks: id_prettyblocks,
+
+ await prettyBlocksContext.$patch({
+ currentBlock: {
+ id_prettyblocks: id_prettyblocks,
+ }
});
// emitter.emit('displayState', id_prettyblocks)
};
@@ -35,7 +40,7 @@ const onStart = async (evt, group) => {
* Save positions in DB after
*/
const onEnd = async (event, items) => {
- let context = contextShop();
+ let context = prettyBlocksContext.psContext
if (items[0].is_child) {
const params = {
items: items,
@@ -46,11 +51,12 @@ const onEnd = async (event, items) => {
ajax_token: security_app.ajax_token,
};
await HttpClient.post(ajax_urls.state, params);
- emitter.emit("initStates");
- emitter.emit("displayBlockConfig", items[0]);
- emitter.emit("stateUpdated", items[0].id_prettyblocks);
+ // emitter.emit("initStates");
+ await prettyBlocksContext.initStates()
if (items[0].need_reload) {
- emitter.emit("reloadIframe", items[0].id_prettyblocks);
+ prettyBlocksContext.reloadIframe()
+ }else{
+ prettyBlocksContext.sendPrettyBlocksEvents('reloadBlock', {id_prettyblocks: items[0].id_prettyblocks})
}
}
@@ -62,14 +68,10 @@ const onEnd = async (event, items) => {
ajax_token: security_app.ajax_token,
};
await HttpClient.post(ajax_urls.state, params);
- emitter.emit("initStates");
- console.log('items 0', items[0].id_prettyblocks)
- emitter.emit("reloadIframe", items[0].id_prettyblocks);
+ prettyBlocksContext.reloadIframe()
}
- toaster.show("Position modifiée avec succèss", {
- position: "top",
- });
+ prettyBlocksContext.displayMessage(trans('position_updated'));
};
diff --git a/_dev/src/components/Title.vue b/_dev/src/components/Title.vue
new file mode 100644
index 00000000..56bb2c52
--- /dev/null
+++ b/_dev/src/components/Title.vue
@@ -0,0 +1,18 @@
+
+
+
+
+ {{ title }}
+
+
diff --git a/_dev/src/components/_partials/SpacingSection.vue b/_dev/src/components/_partials/SpacingSection.vue
new file mode 100644
index 00000000..20358f80
--- /dev/null
+++ b/_dev/src/components/_partials/SpacingSection.vue
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+ {{ trans(props.section_key+"_section_help") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/_dev/src/components/_partials/index.php b/_dev/src/components/_partials/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/_dev/src/components/_partials/index.php
@@ -0,0 +1,11 @@
+ {
+
{
/>
Upload a file
diff --git a/_dev/src/components/form/Input.vue b/_dev/src/components/form/Input.vue
index 3445b3ae..e4003487 100644
--- a/_dev/src/components/form/Input.vue
+++ b/_dev/src/components/form/Input.vue
@@ -1,10 +1,14 @@
@@ -30,8 +47,13 @@ function onInput(event) {
-
diff --git a/_dev/src/components/form/ShopSelect.vue b/_dev/src/components/form/ShopSelect.vue
index 497aa0db..91e0f89a 100644
--- a/_dev/src/components/form/ShopSelect.vue
+++ b/_dev/src/components/form/ShopSelect.vue
@@ -2,8 +2,8 @@
import { defineComponent, ref, watch } from 'vue'
import { Listbox, ListboxButton, ListboxLabel, ListboxOption, ListboxOptions } from '@headlessui/vue'
import { ChevronUpDownIcon } from '@heroicons/vue/24/solid'
-import { storedZones, currentZone } from '../../store/currentBlock'
-import emitter from 'tiny-emitter/instance'
+import { usePrettyBlocksContext } from '../../store/pinia'
+
import { trans } from '../../scripts/trans'
defineComponent({
@@ -11,7 +11,7 @@ defineComponent({
ChevronUpDownIcon
})
let items = ref(ajax_urls.shops);
-
+let prettyBlocksContext = usePrettyBlocksContext()
const props = defineProps({
// api url to get the data
@@ -23,7 +23,17 @@ const props = defineProps({
const changetItem = (item) => {
props.modelValue.shop_name = item.name
- emitter.emit('changeUrl', item)
+
+ prettyBlocksContext.$patch({
+ psContext: {
+ id_lang: item.id_lang,
+ id_shop: item.id_shop,
+ shop_name: item.name,
+ current_url: item.base_url + (item.base_url.includes('?prettyblocks=1') ? '' : '?prettyblocks=1'),
+ href: item.base_url,
+ }
+ })
+ prettyBlocksContext.changeUrl(item.base_url)
}
const emit = defineEmits(['update:modelValue.shop_name'])
diff --git a/_dev/src/components/form/ZoneSelect.vue b/_dev/src/components/form/ZoneSelect.vue
index 88ed7e3f..21310571 100644
--- a/_dev/src/components/form/ZoneSelect.vue
+++ b/_dev/src/components/form/ZoneSelect.vue
@@ -1,65 +1,84 @@
@@ -68,9 +87,9 @@ watch(() => props.modelValue, onInput)
-
+
- {{ trans('current_zone') }}: {{ props.modelValue.name }}
+ {{ trans('current_zone') }}: {{ props.modelValue.alias !== '' ? props.modelValue.alias : props.modelValue.name }}
@@ -86,7 +105,7 @@ watch(() => props.modelValue, onInput)
:class="[active ? 'text-white bg-indigo' : 'text-gray-900', 'cursor-default select-none relative py-2 pl-3 pr-9']">
- {{ item }}
+ {{ item.alias !== '' ? item.alias : item.name }}
diff --git a/_dev/src/main.js b/_dev/src/main.js
index 757adfce..a8f5fdd0 100644
--- a/_dev/src/main.js
+++ b/_dev/src/main.js
@@ -1,9 +1,8 @@
import { createApp } from 'vue'
import App from './App.vue'
import { createPinia } from 'pinia'
-const pinia = createPinia()
import './index.css'
-const app = createApp(App).use(pinia)
+const app = createApp(App).use(createPinia())
app.mount('#app')
window.vueInstance = app
diff --git a/_dev/src/scripts/block.js b/_dev/src/scripts/block.js
index 001eb6cf..33798932 100644
--- a/_dev/src/scripts/block.js
+++ b/_dev/src/scripts/block.js
@@ -1,5 +1,5 @@
-import emitter from 'tiny-emitter/instance'
-import { contextShop, useStore } from '../store/currentBlock'
+
+import { contextShop, useStore, usePrettyBlocksContext } from '../store/pinia'
import { HttpClient } from "../services/HttpClient";
import { ref } from 'vue'
export default class Block {
@@ -11,10 +11,11 @@ export default class Block {
states = ref([])
id_shop = 0;
id_lang = 0;
+ render = ''
constructor(element) {
- let context = contextShop()
+ let context = usePrettyBlocksContext().psContext
this.id_prettyblocks = element.id_prettyblocks
this.instance_id = element.instance_id
this.code = element.code
@@ -22,6 +23,7 @@ export default class Block {
this.need_reload = element.need_reload
this.id_shop = context.id_shop
this.id_lang = context.id_lang
+ this.render = element.render
}
@@ -47,7 +49,7 @@ export default class Block {
getCurrentBlock()
{
- return useStore()
+ return usePrettyBlocksContext().currentBlock
}
async saveConfig(configState) {
@@ -86,7 +88,17 @@ export default class Block {
{
let key_formatted = 0
this.subSelected = this.getCurrentBlock().subSelected
- key_formatted = this.subSelected.split('-')[1]
+ if(typeof this.subSelected !== 'undefined'){
+ key_formatted = this.subSelected.split('-')[1]
+ } else {
+ let maxKey = 0
+ if(this.states.length == 0){
+ let keys = Object.keys(this.states).map(Number);
+ maxKey = Math.max(...keys);
+ }
+ maxKey = maxKey + 1
+ key_formatted = this.id_prettyblocks + '-' + maxKey;
+ }
return key_formatted
}
@@ -127,6 +139,11 @@ export default class Block {
emitter.emit('displayStates')
}
+ focusOnBlock()
+ {
+ emitter.emit('focusOnBlock', this.id_prettyblocks)
+ }
+
focusOnIframe()
{
emitter.emit('scrollInIframe', this.id_prettyblocks)
@@ -152,4 +169,11 @@ export default class Block {
return block
}
+
+ async reloadBlock()
+ {
+ let block = await Block.loadById(this.id_prettyblocks);
+
+ }
+
}
\ No newline at end of file
diff --git a/_dev/src/scripts/eventHandler.js b/_dev/src/scripts/eventHandler.js
new file mode 100644
index 00000000..5bd82b89
--- /dev/null
+++ b/_dev/src/scripts/eventHandler.js
@@ -0,0 +1,103 @@
+/*
+ * RECEPETION HANDLER ON FRONT OFFICE
+ */
+import { usePrettyBlocksContext } from '../store/pinia'
+import { getBlockRender, updateTitleComponent } from './helper'
+import { trans } from './trans'
+
+
+/**
+ * Event Handler for PrettyBlocks FRONT
+ * @param {Event} event
+ */
+export const eventHandler = async (event) => {
+ let prettyBlocksContext = usePrettyBlocksContext()
+ if (event.data.type == 'zones') {
+ let zones = event.data.data
+ prettyBlocksContext.$patch({
+ zones: zones
+ })
+ }
+
+ if(event.data.type == 'setNewUrl' || event.data.type == 'setForceNewUrl')
+ {
+ let context = event.data.params.context
+ let custom_url = event.data.params.url
+ let force_reload = event.data.type == 'setForceNewUrl' ? true : false
+
+
+ prettyBlocksContext.$patch({
+ psContext: {
+ ...prettyBlocksContext.psContext,
+ ...context,
+ current_url: custom_url
+ }
+ });
+ if(force_reload) {
+ window.location.reload()
+ }else{
+ prettyBlocksContext.changeUrl(custom_url)
+ }
+ }
+
+
+
+ if (event.data.type == 'updateTitleComponent') {
+ let params = event.data.data.params
+ updateTitleComponent(JSON.parse(event.data.data.value), params.id_prettyblocks, params.field, params.index)
+
+ }
+ // if(event.data.type == 'moveBlockToZone')
+ // {
+ // let id_prettyblocks = event.data.params.id_prettyblocks
+ // let zone_name = event.data.params.zone_name
+ // let context = contextShop()
+ // HttpClient.post(ajax_urls.api, {
+ // action: 'moveBlockToZone',
+ // id_prettyblocks: id_prettyblocks,
+ // zone_name: zone_name,
+ // ajax: true,
+ // ajax_token: security_app.ajax_token,
+ // ctx_id_lang: context.id_lang,
+ // ctx_id_shop: context.id_shop,
+ // }).then((response) => {
+ // if (response.success) {
+ // toaster.show(response.message);
+ // // emitter.emit('initStates')
+ // }
+ // })
+
+ // }
+
+
+
+
+
+ if (event.data.type == 'reloadBlock') {
+ let id_prettyblocks = event.data.data.data.id_prettyblocks
+ getBlockRender(id_prettyblocks).then((html) => {
+
+ prettyBlocksContext.sendPrettyBlocksEvents('updateHTMLBlock', {
+ id_prettyblocks: id_prettyblocks,
+ html: html
+ })
+
+ })
+
+ }
+ if (event.data.type == 'setContext') {
+
+ let iwindow = event.data.data.data
+ await prettyBlocksContext.$patch({
+ psContext: {
+ id_lang: iwindow.id_lang,
+ id_shop: iwindow.id_shop,
+ shop_name: iwindow.shop_name,
+ // current_url: iwindow.current_url,
+ href: iwindow.href,
+ }
+ })
+ }
+
+}
+
diff --git a/_dev/src/scripts/helper.js b/_dev/src/scripts/helper.js
new file mode 100644
index 00000000..7c560bb3
--- /dev/null
+++ b/_dev/src/scripts/helper.js
@@ -0,0 +1,68 @@
+
+import { usePrettyBlocksContext } from '../store/pinia';
+import { HttpClient } from '../services/HttpClient';
+
+
+export function getZoneDetailsByDom(domElement) {
+ return {
+ name: domElement.getAttribute('data-zone-name'),
+ alias: domElement.getAttribute('data-zone-alias') || '',
+ priority: domElement.getAttribute('data-zone-priority') || false,
+ }
+}
+
+export async function getBlockRender(id_prettyblocks) {
+ let prettyBlocksContext = usePrettyBlocksContext()
+ let responseData = {}
+ const params = {
+ ajax: true,
+ id_prettyblocks: id_prettyblocks,
+ action: 'GetBlockRender',
+ ctx_id_lang: prettyBlocksContext.psContext.id_lang,
+ ctx_id_shop: prettyBlocksContext.psContext.id_shop,
+ ajax_token: security_app.ajax_token
+ }
+ try {
+ const data = await HttpClient.get(ajax_urls.block_url, params);
+ responseData = data.html;
+ } catch (error) {
+ console.log('Error fetching block render:', error);
+ responseData = ''; // Set empty string as fallback
+ }
+
+ return responseData;
+}
+
+export async function updateTitleComponent(newValue, id_block = null, field = null, index = null) {
+ if (!id_block) {
+ id_block = newValue.html.closest('[data-id-prettyblocks]').getAttribute('data-id-prettyblocks')
+ }
+ if (!field) {
+ field = newValue.html.getAttribute('data-field')
+ }
+ if (!index) {
+ index = null
+ }
+
+ let prettyBlocksContext = usePrettyBlocksContext()
+ let context = prettyBlocksContext.psContext
+ let data = {
+ id_prettyblocks: id_block,
+ element: newValue,
+ ctx_id_lang: context.id_lang,
+ ctx_id_shop: context.id_shop,
+ field: field,
+ ajax: true,
+ index: index,
+ action: 'updateTitleComponent',
+ ajax_token: security_app.ajax_token
+ }
+
+ try {
+ const response = await HttpClient.post(ajax_urls.api, data);
+ prettyBlocksContext.displayMessage(response.message);
+ } catch (error) {
+ console.error(error);
+ }
+
+}
\ No newline at end of file
diff --git a/_dev/src/scripts/iframe.js b/_dev/src/scripts/iframe.js
deleted file mode 100644
index f674dcb0..00000000
--- a/_dev/src/scripts/iframe.js
+++ /dev/null
@@ -1,352 +0,0 @@
-import { ref } from 'vue'
-import { HttpClient } from "../services/HttpClient";
-import emitter from 'tiny-emitter/instance'
-
-import { useStore, storedZones, contextShop, storedBlocks } from '../store/currentBlock'
-import Block from './block'
-
-
-import { createToaster } from "@meforma/vue-toaster";
-const toaster = createToaster({
- position: 'top',
-});
-window.hasEventListener = false;
-export default class Iframe {
- current_url = ref();
- id_lang = ref(0);
- id_shop = ref(0);
- loader = ref(false)
- events = ['dragenter', 'dragover', 'dragleave', 'drop']
- preventDefaults = (e) => {
- e.preventDefault()
- }
-
- constructor(current_url, id_lang, id_shop) {
- this.current_url.value = current_url
- this.id_lang.value = id_lang
- this.id_shop.value = id_shop
- this.loader.value = false
- this.constructEvent()
- }
-
- constructEvent() {
- // Définir l'eventHandler
- let eventHandler = async (event) => {
- if (event.data.type == 'zones') {
- let zones = event.data.data
- let piniazones = storedZones()
- piniazones.$patch({
- zones: zones
- })
- emitter.emit('loadZones', zones)
- }
- if(event.data.type == 'iframeInit')
- {
- this.loader.value = false
- }
- if (event.data.type == 'loadStateConfig') {
- let id_prettyblocks = event.data.data
- emitter.emit('loadStateConfig', id_prettyblocks)
-
- }
- // test
- if(event.data.type == 'setNewUrl')
- {
- let context = event.data.params.context
- let custom_url = event.data.params.url
- emitter.emit('changeUrl', context, custom_url)
- }
-
- if (event.data.type == 'updateTitleComponent') {
- let params = event.data.data.params
- this.updateTitleComponent(JSON.parse(event.data.data.value), params.id_prettyblocks, params.field, params.index)
-
- }
- if(event.data.type == 'moveBlockToZone')
- {
- let id_prettyblocks = event.data.params.id_prettyblocks
- let zone_name = event.data.params.zone_name
- let context = contextShop()
- HttpClient.post(ajax_urls.api, {
- action: 'moveBlockToZone',
- id_prettyblocks: id_prettyblocks,
- zone_name: zone_name,
- ajax: true,
- ajax_token: security_app.ajax_token,
- ctx_id_lang: context.id_lang,
- ctx_id_shop: context.id_shop,
- }).then((response) => {
- if (response.success) {
- toaster.show(response.message);
- emitter.emit('initStates')
- }
- })
-
- }
- if(event.data.type == 'focusBlock')
- {
- let id_prettyblocks = event.data.data.id_prettyblocks
- let zone_name = event.data.data.zone_name
- let piniaBlocks = await storedBlocks().blocks
-
- let element = await piniaBlocks.find(b => {
- return b.id_prettyblocks == id_prettyblocks
- });
- emitter.emit('selectZone', zone_name)
-
- emitter.emit('displayBlockConfig', element)
- emitter.emit('setSelectedElement', element.formatted.id)
- }
-
- if (event.data.type == 'setContext') {
- let iwindow = event.data.data.data
- let context = contextShop()
- await context.$patch({
- id_lang: iwindow.id_lang,
- id_shop: iwindow.id_shop,
- shop_name: iwindow.shop_name,
- current_url: iwindow.current_url,
- href: iwindow.href,
- })
- this.id_lang.value = iwindow.id_lang
- this.id_shop.value = iwindow.id_shop
- this.loader.value = false
- emitter.emit('initStates')
-
-
- }
-
- }
-
- if (!window.hasEventListener) {
- window.addEventListener("message", eventHandler, false);
- window.hasEventListener = true;
- }
- }
-
- /**
- *
- * @param {*} url
- * For set URL in input
- */
- setUrl(url) {
- this.loader.value = true
- this.current_url.value = url
- }
- setIdLang(id_lang) {
- this.id_lang.value = id_lang
- }
- setIdShop(id_shop) {
- this.id_shop.value = id_shop
- }
-
- async reloadIframe() {
- this.loader.value = true
- let iframe = document.getElementById('website-iframe')
- iframe.src = this.updateFilteredURL(this.current_url.value)
- // this.loadIframe()
- // this.loader.value = false
- }
- updateFilteredURL(url) {
- let hashIndex = url.indexOf('#');
- if (hashIndex !== -1) {
- url = url.substring(0, hashIndex) + '?prettyblocks=1' + url.substring(hashIndex);
- } else if (!url.includes('?')) {
- url += '?prettyblocks=1';
- } else if (!url.includes('prettyblocks')) {
- url += '&prettyblocks=1';
- }
- return url;
- }
-
- /**
- * trigger popup with blocks choice on Click
- */
- registerClickPopup(el) {
- let zone_name = el.target.getAttribute('data-zone-name')
- emitter.emit('toggleModal', zone_name)
- }
-
-
- /**
- * DragEnter Event
- */
- registerDragEnter(el) {
- el.target.classList.remove('border-dark')
- el.target.classList.add('border-danger')
- }
-
- /**
- * DragLeave event
- */
- registerDragLeave(el) {
- el.target.classList.remove('border-danger')
- el.target.classList.add('border-dark')
- }
-
- registerClick(el) {
- let id_prettyblocks = el.getAttribute('data-id-prettyblocks')
- emitter.emit('loadStateConfig', id_prettyblocks)
- }
-
- async getZones(document) {
- let els = document.querySelectorAll('[data-zone-name]')
- let zones = []
-
- await els.forEach((el) => {
- let zone_name = el.getAttribute('data-zone-name')
- if (zones.indexOf(zone_name) == -1) {
- zones.push(zone_name)
- }
- })
-
-
- let piniazones = storedZones()
- piniazones.$patch({
- zones: zones
- })
-
- return zones
- }
-
- sendPrettyBlocksEvents(eventType, data = []) {
- let message = { type: eventType, data: data };
- let iframe = document.getElementById('website-iframe')
- iframe.contentWindow.postMessage(message, "*");
- }
-
-
-
- async loadIframe() {
- // iframe
- this.loader.value = true
- let iframe = await document.getElementById('website-iframe')
-
- if (iframe) {
- await iframe.addEventListener('load', (e) => {
-
- this.sendPrettyBlocksEvents('initIframe')
- this.sendPrettyBlocksEvents('getZones')
- emitter.off('stateUpdated')
- emitter.on('stateUpdated', (id_prettyblocks) => {
- let currentBlock = useStore()
- let html = this.getBlockRender(id_prettyblocks)
- // update module in iFrame !
- html.then((data) => {
- this.sendPrettyBlocksEvents('updateHTMLBlock', { id_prettyblocks: id_prettyblocks, html: data })
- })
-
- })
-
- // when iframe loaded, get blocks
- emitter.off('scrollInIframe')
- emitter.on('scrollInIframe', (id_prettyblocks) => {
- this.sendPrettyBlocksEvents('scrollInIframe', id_prettyblocks)
- })
-
-
- emitter.off('focusOnZone')
- emitter.on('focusOnZone', (zone_name) => {
- this.sendPrettyBlocksEvents('focusOnZone', zone_name)
-
- emitter.emit('initStates')
-
- })
-
- // check if block is already selected
- let currentBlock = useStore()
- if (currentBlock.subSelected) {
- emitter.emit('scrollInIframe', currentBlock.id_prettyblocks)
- }
- this.loadContext(e)
-
- }, false)
- }
- }
-
- /**
- * Updpate title component in Config field using Toolbar
- * @param {*} newValue
- */
- async updateTitleComponent(newValue, id_block = null, field = null, index = null) {
- if (!id_block) {
- id_block = newValue.html.closest('[data-id-prettyblocks]').getAttribute('data-id-prettyblocks')
- }
- if (!field) {
- field = newValue.html.getAttribute('data-field')
- }
- if (!index) {
- index = null
- }
- // if(newValue.html.hasAttribute('data-index'))
- // {
- // index = newValue.html.getAttribute('data-index')
- // }
-
- let element = await Block.loadById(id_block)
- // emitter.emit('displayBlockConfig', element)
- let context = contextShop()
- let data = {
- id_prettyblocks: id_block,
- element: newValue,
- ctx_id_lang: context.id_lang,
- ctx_id_shop: context.id_shop,
- field: field,
- ajax: true,
- index: index,
- action: 'updateTitleComponent',
- ajax_token: security_app.ajax_token
- }
-
- try {
- const response = await HttpClient.post(ajax_urls.api, data);
- toaster.show(response.message);
- } catch (error) {
- console.error(error);
- }
-
-
-
- }
-
- loadContext(e) {
- this.sendPrettyBlocksEvents('getContext')
- }
-
- destroy() {
- // 1. Remove global event listeners
- emitter.off('triggerLoadedEvents');
- emitter.off('stateUpdated');
- emitter.off('scrollInIframe');
- emitter.off('focusOnZone');
- // 3. Reset object properties
- this.current_url.value = null;
- this.id_lang.value = 0;
- this.id_shop.value = 0;
- this.loader.value = false;
- }
-
-
-
- async getBlockRender(id_prettyblocks) {
- let context = contextShop()
- let responseData = {}
- const params = {
- ajax: true,
- id_prettyblocks: id_prettyblocks,
- action: 'GetBlockRender',
- ctx_id_lang: context.id_lang,
- ctx_id_shop: context.id_shop,
- ajax_token: security_app.ajax_token
- }
- try {
- const data = await HttpClient.get(ajax_urls.block_url, params);
- responseData = data.html;
- } catch (error) {
- console.error(error);
- }
-
- return responseData;
- }
-
-}
\ No newline at end of file
diff --git a/views/js/prettyblocks.js b/_dev/src/scripts/prettyblocks.js
similarity index 63%
rename from views/js/prettyblocks.js
rename to _dev/src/scripts/prettyblocks.js
index d9e3d36f..5510f42b 100644
--- a/views/js/prettyblocks.js
+++ b/_dev/src/scripts/prettyblocks.js
@@ -1,8 +1,9 @@
-import { toolbar } from '../../_dev/src/scripts/toolbar'
-window.hasEventListener = false;
-const unsubscribe = () => {
- window.removeEventListener("message", eventHandler, false);
-}
+import { toolbar } from './toolbar'
+import { getZoneDetailsByDom } from './helper'
+
+/**
+ * THIS EVENT HANDLER IS THE CONTROLLER BETWEEN PRETTYBLOCKS AND THE PRESTASHOP BACKEND
+ */
const getContext = () => {
@@ -14,7 +15,10 @@ const getContext = () => {
href: window.location.href
}
}
+
+// received data from prettyblocks
let eventHandler = (event) => {
+
if(event.data.type == 'getContext')
{
let context = getContext()
@@ -23,25 +27,21 @@ let eventHandler = (event) => {
}
if (event.data.type == 'initIframe') {
- // moveBlockToZone(event)
- // register block click
- // document.querySelectorAll('div[data-block]').forEach((div) => {
-
- // div.addEventListener('click', (el) => {
- // let id_prettyblocks = el.target.closest('[data-id-prettyblocks]').getAttribute('data-id-prettyblocks')
- // selectBlock(id_prettyblocks, event)
- // event.source.postMessage({ type: 'loadStateConfig', data: id_prettyblocks }, '*');
- // })
- // })
event.source.postMessage({ type: 'iframeInit', data: null }, '*');
return loadToolBar(event)
}
+ if(event.data.type == 'reloadBlock')
+ {
+ let id_prettyblocks = event.data
+ return reloadBlock(id_prettyblocks, event)
+ }
if(event.data.type == 'selectBlock')
{
let id_prettyblocks = event.data.data.id_prettyblocks
return selectBlock(id_prettyblocks,event)
}
+
// focus on zone in iframe
if (event.data.type == 'focusOnZone') {
let zone_name = event.data.data
@@ -54,16 +54,31 @@ let eventHandler = (event) => {
return el.scrollIntoView({
alignToTop: true,
behavior: 'smooth',
- block: 'center'
+ // block: 'top'
})
}
+
+ // focus on block in iframe
+ if (event.data.type == 'focusOnBlock') {
+ let id_prettyblocks = event.data.data
+ return focusBlock(id_prettyblocks)
+
+ }
+ if (event.data.type == 'getCurrentDocumentUrl') {
+ return event.source.postMessage({ type: 'currentDocumentUrl', data: document.location.href }, '*');
+ }
// update HTML block
if (event.data.type == 'updateHTMLBlock') {
let id_prettyblocks = event.data.data.id_prettyblocks
let data = event.data.data.html
let domBlock = document.querySelector('[data-id-prettyblocks="' + id_prettyblocks + '"]')
domBlock.innerHTML = data
+ document.dispatchEvent(new CustomEvent('updatePrettyBlocks', {
+ detail: { block: {
+ id_prettyblocks: id_prettyblocks
+ }}
+ }));
return loadToolBar(event)
}
@@ -73,19 +88,29 @@ let eventHandler = (event) => {
if (event.data.type == 'getZones') {
let els = document.querySelectorAll('[data-zone-name]')
let zones = []
+ let zone_name = ''
els.forEach((el) => {
- let zone_name = el.getAttribute('data-zone-name')
- if (zones.indexOf(zone_name) == -1) {
- zones.push(zone_name)
+ zone_name = el.getAttribute('data-zone-name')
+ let current_zone = {
+ name: el.getAttribute('data-zone-name'),
+ alias: el.getAttribute('data-zone-alias') || '',
+ priority: el.getAttribute('data-zone-priority') || 'false',
+ }
+
+ if (!zones.some(zone => zone.name === zone_name)) {
+ zones.push(current_zone)
}
})
return event.source.postMessage({ type: 'zones', data: zones }, '*');
}
- unsubscribe()
+ // unsubscribe()
}
+
+
+
/**
* Select block in pretty block interface
* @param {*} id_prettyblocks
@@ -95,22 +120,28 @@ let eventHandler = (event) => {
*/
const selectBlock = (id_prettyblocks, event) => {
let el = focusBlock(id_prettyblocks)
+
let zone_name = el.closest('[data-prettyblocks-zone]').getAttribute('data-prettyblocks-zone')
+ let zoneElement = getZoneDetailsByDom(document.getQuerySelector('[data-zone-name="' + zone_name + '"]'))
let params = {
id_prettyblocks: id_prettyblocks,
- zone_name: zone_name
+ zone: zoneElement
}
return event.source.postMessage({ type: 'focusBlock', data: params }, '*');
}
+const reloadBlock = (id_prettyblocks, event) => {
+ return event.source.postMessage({ type: 'reloadBlock', data: id_prettyblocks }, '*');
+}
const focusBlock = (id_prettyblocks) => {
let doc = document
let el = doc.querySelector('[data-id-prettyblocks="' + id_prettyblocks + '"]')
+
if (doc.body.contains(el) && !el.classList.contains('border-dotted')) {
el.scrollIntoView({
alignToTop: false,
behavior: 'smooth',
- block: 'center'
+ // block: 'center'
})
let tr = doc.querySelectorAll('[data-block]')
tr.forEach(bl => {
@@ -162,56 +193,44 @@ const moveBlockToZone = (event) => {
});
- // zones.forEach(zone => {
- // zone.addEventListener('dragover', function (e) {
- // e.preventDefault();
- // });
-
- // zone.addEventListener('dragenter', function (e) {
- // e.preventDefault();
- // });
- // zone.addEventListener('drop', function (e) {
- // let zone_name = zone.getAttribute('data-prettyblocks-zone')
- // let id_prettyblocks = blockDragged.getAttribute('data-id-prettyblocks')
- // let params = {
- // id_prettyblocks: id_prettyblocks,
- // zone_name: zone_name
- // }
- // event.source.postMessage({ type: 'moveBlockToZone', params: params }, '*');
- // this.appendChild(blockDragged);
- // });
- // });
}
document.addEventListener('DOMContentLoaded', (event) => {
- if (!window.hasEventListener) {
- window.addEventListener("message", eventHandler, false)
- window.hasEventListener = true;
- }
+
+
+
+ window.addEventListener("message", eventHandler, false)
+
// Sélectionnez tous les liens de la page
const links = document.querySelectorAll('a');
-
+
links.forEach(link => {
- link.addEventListener('click', function(e) {
- // Empêchez la navigation
- e.preventDefault();
-
- // Récupérez l'URL du lien
- const url = e.currentTarget.href;
- let context = getContext()
- let params = {
- context: context,
- url: url,
- }
-
- window.parent.postMessage({ type: 'setNewUrl', params: params }, '*');
+ link.addEventListener('click', function(e) {
+ e.preventDefault();
+ let href = link.getAttribute('href')
+ if (href && href !== '#' && (href.includes('http') || href.includes('https'))) {
+ let context = getContext()
+ let params = {
+ context: context,
+ url: href,
+ }
+ window.parent.postMessage({ type: 'setNewUrl', params: params }, '*');
+ }
+ });
+ });
- // À ce stade, vous pouvez faire ce que vous voulez avec l'URL récupérée
- });
+ window.navigation.addEventListener("navigate", (event) => {
+ let url = event.destination.url;
+ if (url !== 'about:blank') {
+ event.preventDefault(); // Empêche la navigation vers la nouvelle URL
+
+ let context = getContext();
+ let params = {
+ context: context,
+ url: url,
+ };
+ window.parent.postMessage({ type: 'setForceNewUrl', params: params }, '*');
+ }
});
});
-
-
-
-
-unsubscribe();
\ No newline at end of file
+
diff --git a/_dev/src/scripts/trans.js b/_dev/src/scripts/trans.js
index 21d5ece4..1f4ed096 100644
--- a/_dev/src/scripts/trans.js
+++ b/_dev/src/scripts/trans.js
@@ -1,11 +1,15 @@
import { ref } from 'vue'
-export function trans (key) {
+export function trans (key, returnKey = true) {
const trans = ref(trans_app)
if(trans.value.hasOwnProperty(key))
{
return trans.value[key]
}
+ if(returnKey)
+ {
+ return key
+ }
return ''
}
\ No newline at end of file
diff --git a/_dev/src/scripts/typings.js b/_dev/src/scripts/typings.js
new file mode 100644
index 00000000..3d3f3b7c
--- /dev/null
+++ b/_dev/src/scripts/typings.js
@@ -0,0 +1,30 @@
+
+import {reactive} from 'vue';
+
+
+export const safePaddingsAndMargins = reactive({
+ desktop: {
+ top: null,
+ left: null,
+ right: null,
+ bottom: null,
+ auto: 0,
+ use_custom_data: false,
+ },
+ tablet: {
+ top: null,
+ left: null,
+ right: null,
+ bottom: null,
+ auto: 0,
+ use_custom_data: false,
+ },
+ mobile: {
+ top: null,
+ left: null,
+ right: null,
+ bottom: null,
+ auto: 0,
+ use_custom_data: false,
+ },
+ });
\ No newline at end of file
diff --git a/_dev/src/store/currentBlock.js b/_dev/src/store/currentBlock.js
deleted file mode 100644
index b8044967..00000000
--- a/_dev/src/store/currentBlock.js
+++ /dev/null
@@ -1,76 +0,0 @@
-import { defineStore } from 'pinia'
-
-export const useStore = defineStore('currentblock', {
- state: () => {
- return {
- id_prettyblocks: null,
- instance_id: null,
- code: null,
- subSelected: null,
- need_reload: true
-
- }
- }
-})
-
-export const currentZone = defineStore('currentZone', {
- state: () => {
- return {
- name: 'displayHome',
- }
- }
-})
-
-export const contextShop = defineStore('contextStore', {
- state: () => {
- return {
- id_lang: 0,
- id_shop: 0,
- shop_name: null,
- current_url: null,
- href: null,
- }
- },
- actions: {
- async getContext() {
- // Ici, vous pouvez effectuer des opérations asynchrones
- // comme la récupération des données de l'API ou d'autres tâches asynchrones
-
- // Retourner les données sous forme de promesse
- return new Promise((resolve) => {
- resolve({
- id_lang: this.id_lang,
- id_shop: this.id_shop,
- shop_name: this.shop_name,
- });
- });
- },
- },
-})
-
-
-export const storedZones = defineStore('storedZones', {
- state: () => {
- return {
- zones: [],
- }
- },
- getters: {
- all(state){ return state.zones }
- }
-
-
-})
-
-export const storedBlocks = defineStore('storedBlocks', {
- state: () => {
- return {
- blocks: [],
- }
- },
- getters: {
- all(state){ return state.blocks }
- }
-
-
-})
\ No newline at end of file
diff --git a/_dev/src/store/pinia.js b/_dev/src/store/pinia.js
new file mode 100644
index 00000000..04e665c9
--- /dev/null
+++ b/_dev/src/store/pinia.js
@@ -0,0 +1,427 @@
+import { defineStore } from 'pinia'
+import { ref } from 'vue'
+import { eventHandler } from '../scripts/eventHandler'
+import { createToaster } from "@meforma/vue-toaster";
+import { HttpClient } from '../services/HttpClient';
+const toaster = createToaster({
+ position: "top",
+});
+
+
+export const useStore = defineStore('currentblock', {
+ state: () => {
+ return {
+ id_prettyblocks: null,
+ instance_id: null,
+ code: null,
+ subSelected: null,
+ need_reload: true
+
+ }
+ }
+})
+
+export const usePrettyBlocksContext = defineStore('prettyBlocksContext', {
+ state: () => ({
+ blocks: [],
+ blocksFormatted: [],
+ zones: [],
+ currentBlock: {
+ id_prettyblocks: null,
+ instance_id: null,
+ code: null,
+ subSelected: null,
+ need_reload: true,
+ states: []
+ },
+ currentZone: {
+ name: 'displayHome',
+ alias: '',
+ priority: true,
+ zoneToFocus: 'displayHome',
+ },
+ psContext: {
+ id_lang: 1,
+ id_shop: 1,
+ shop_name: null,
+ current_url: ajax_urls.startup_url + (ajax_urls.startup_url.includes('?prettyblocks=1') ? '' : '?prettyblocks=1'),
+ href: ajax_urls.startup_url,
+ },
+ iframe: {
+ domElement: ref(null),
+ object: null,
+ width: ref('w-full'),
+ height: ref('h-full'),
+ device: ref('desktop'),
+ loader: ref(true),
+ rightPanel: ref('default'), // should be defaut, extends or hide
+ leftPanel: ref('default'), // should be defaut, extends or hide
+ },
+ saveContext: ref('settings'),
+ eventListeners: {},
+ }),
+ getters: {
+ getDomElement(state) {
+ return state.iframe.domElement
+ },
+ getZones(state) {
+ return state.zones
+ },
+ getBlocks(state) {
+ return state.blocks
+ },
+ getCurrentBlock(state) {
+ return state.currentBlock
+ },
+ getCurrentZone(state) {
+ return state.currentZone
+ },
+ getPsContext(state) {
+ return state.psContext
+ },
+ getIframe(state) {
+ return state.iframe
+ }
+ },
+ actions: {
+ changeIframeSize(width, height, device) {
+ this.$patch((state) => {
+ state.iframe.width = ref(width)
+ state.iframe.height = ref(height)
+ state.iframe.device = ref(device)
+ })
+ },
+ initStates() {
+
+ let context = this.psContext;
+ let current_zone = this.currentZone.name;
+ // displayZoneName.value = current_zone;
+ const params = {
+ ajax: true,
+ action: "GetStates",
+ zone: current_zone,
+ ctx_id_lang: context.id_lang,
+ ctx_id_shop: context.id_shop,
+ ajax_token: security_app.ajax_token,
+ };
+
+ HttpClient.get(ajax_urls.state, params)
+ .then((data) => {
+ let blocksFormatted = Object.entries(data.blocks).map(([key, value] = block) => {
+ return value.formatted;
+ });
+ this.$patch((state) => {
+ state.blocks = data.blocks,
+ state.blocksFormatted = blocksFormatted
+ });
+ })
+ .catch((error) => console.error(error));
+ },
+ reloadZoneContent() {
+ this.sendPrettyBlocksEvents('reloadZone', {zone: this.currentZone.name})
+ },
+ setIframe() {
+ this.$patch((state) => {
+ state.iframe.domElement = ref(document.getElementById('website-iframe'))
+ this.listenIframe()
+ })
+ },
+ displaySettingsPanel() {
+ this.$patch((state) => {
+ state.saveContext = ref('settings')
+ })
+ },
+ updatePanelState(side, value) {
+ if (!['left', 'right'].includes(side)) {
+ console.error('Invalid side parameter. Must be "left" or "right".');
+ return;
+ }
+
+ if (!['default', 'extends', 'hide'].includes(value)) {
+ console.error('Invalid value parameter. Must be "default", "extends", or "hide".');
+ return;
+ }
+
+ this.$patch((state) => {
+ state.iframe[`${side}Panel`] = ref(value);
+ });
+ },
+ displayMessage(message) {
+ toaster.show(message)
+ },
+ displayError(message) {
+ toaster.error(message, {
+ duration: 5000,
+ position: "top",
+ type: "error",
+ })
+ },
+ listenIframe() {
+ window.addEventListener("message", eventHandler);
+ this.iframe.domElement.addEventListener('load', (e) => {
+ setTimeout(() => {
+ this.sendPrettyBlocksEvents('initIframe')
+ this.sendPrettyBlocksEvents('getContext')
+ this.sendPrettyBlocksEvents('getZones')
+ this.hideLoader()
+ },100)
+ })
+ },
+
+ sendPrettyBlocksEvents(eventType, data = []) {
+ let message = { type: eventType, data: data };
+ this.iframe.domElement.contentWindow.postMessage(message, "*");
+ },
+ changeUrl(url) {
+ this.$patch((state) => {
+ state.psContext.current_url = this.updateFilteredURL(url)
+ })
+ // Update the current window URL with startup_url parameter
+ this.pushUrl(url)
+ this.showLoader()
+ this.setIframe()
+
+ },
+ showLoader() {
+ this.$patch((state) => {
+ state.iframe.loader = true
+ })
+ },
+ hideLoader() {
+ this.$patch((state) => {
+ state.iframe.loader = false
+ })
+ },
+ pushUrl(url) {
+ const currentUrl = new URL(window.location.href);
+ currentUrl.searchParams.set('startup_url', this.updateFilteredURL(url));
+ window.history.replaceState({}, '', currentUrl.toString());
+ },
+ updateFilteredURL(url) {
+ let hashIndex = url.indexOf('#');
+ if (hashIndex !== -1) {
+ url = url.substring(0, hashIndex) + '?prettyblocks=1' + url.substring(hashIndex);
+ } else if (!url.includes('?')) {
+ url += '?prettyblocks=1';
+ } else if (!url.includes('prettyblocks')) {
+ url += '&prettyblocks=1';
+ }
+ return url;
+ },
+ reloadIframe(currentSrc = false) {
+ if (this.iframe.domElement) {
+ let url = this.iframe.domElement.src
+ if(currentSrc === false){
+ currentSrc = url
+ }
+ console.log('currentSrc', currentSrc)
+ this.iframe.domElement.src = '';
+ setTimeout(() => {
+ this.iframe.domElement.src = currentSrc;
+ }, 100);
+ }
+ },
+ getSubSelectedKey()
+ {
+ let key_formatted = 0
+ this.subSelected = this.currentBlock.subSelected
+ if(typeof this.subSelected !== 'undefined'){
+ key_formatted = this.subSelected.split('-')[1]
+ } else {
+ let maxKey = 0
+ if(this.states.length == 0){
+ let keys = Object.keys(this.states).map(Number);
+ maxKey = Math.max(...keys);
+ }
+ maxKey = maxKey + 1
+ key_formatted = this.id_prettyblocks + '-' + maxKey;
+ }
+ return key_formatted
+ },
+ async saveConfig(configState) {
+
+ const params = {
+ id_prettyblocks: this.currentBlock.id_prettyblocks,
+ action: 'updateBlockConfig',
+ state: JSON.stringify(configState),
+ subSelected: this.subSelected,
+ ajax: true,
+ ctx_id_lang: this.psContext.id_lang,
+ ctx_id_shop: this.psContext.id_shop,
+ ajax_token: security_app.ajax_token
+ }
+ let data = await HttpClient.post(ajax_urls.state, params);
+ return data
+
+ },
+ async updateSubSelectItem(state)
+ {
+ const params = {
+ id_prettyblocks: this.currentBlock.id_prettyblocks,
+ action: 'updateState',
+ state: JSON.stringify(state.value),
+ subSelected: this.getSubSelectedKey(),
+ ajax: true,
+ ctx_id_lang: this.psContext.id_lang,
+ ctx_id_shop: this.psContext.id_shop,
+ ajax_token: security_app.ajax_token
+ }
+ let data = await HttpClient.post(ajax_urls.state, params);
+
+ return data
+ },
+ updateCurrentZone(zone) {
+ this.$patch((state) => {
+ state.currentZone.name = zone.name
+ state.currentZone.alias = zone.alias
+ state.currentZone.priority = zone.priority
+ state.currentZone.zoneToFocus = zone.name
+ })
+ },
+ setZoneToFocus(zoneName) {
+ this.$patch((state) => {
+ state.currentZone.zoneToFocus = zoneName
+ })
+ },
+ async getContext() {
+ return new Promise((resolve) => {
+ resolve({
+ id_lang: this.psContext.id_lang,
+ id_shop: this.psContext.id_shop,
+ shop_name: this.psContext.shop_name,
+ current_url: this.psContext.current_url,
+ href: this.psContext.href,
+ });
+ });
+ },
+ emit(event, ...args) {
+ if (this.eventListeners[event]) {
+ this.eventListeners[event].forEach(callback => callback(...args));
+ }
+ },
+
+ on(event, callback) {
+ if (!this.eventListeners[event]) {
+ this.eventListeners[event] = [];
+ }
+ this.eventListeners[event].push(callback);
+ },
+
+ emitSaveContext() {
+ switch(this.saveContext) {
+ case 'config':
+ this.emit('saveConfig');
+ break;
+ case 'settings':
+ this.emit('saveSettings');
+ break;
+ case 'subState':
+ this.emit('saveSubState');
+ break;
+ default:
+ console.warn('Unknown saveContext:', this.saveContext);
+ }
+ },
+
+ updateSaveContext(newContext) {
+ this.saveContext = ref(newContext);
+ this.emitSaveContext();
+ },
+ }
+})
+
+export const useIframe = defineStore('iframe', {
+ state: () => ({
+ domElement: ref("test"),
+ object: null,
+ }),
+ actions: {
+ setDomElement() {
+ this.$patch((state) => {
+ state.domElement = ref(document.getElementById('website-iframe'))
+ })
+ },
+
+ },
+ getters: {
+ getDomElement(state) {
+ return state.domElement
+ }
+ }
+})
+
+export const useCurrentZone = defineStore('currentZone', {
+ state: () => ({
+ name: 'displayHome',
+ alias: '',
+ priority: false,
+ zoneToFocus: '',
+ }),
+ actions: {
+ updateZone(zone) {
+ this.name = zone.name
+ this.alias = zone.alias
+ this.priority = zone.priority
+ this.zoneToFocus = zone.name
+ },
+ setZoneToFocus(zoneName) {
+ this.zoneToFocus = zoneName
+ }
+ }
+})
+
+export const contextShop = defineStore('contextStore', {
+ state: () => {
+ return {
+ id_lang: 0,
+ id_shop: 0,
+ shop_name: null,
+ current_url: null,
+ href: null,
+ }
+ },
+ actions: {
+ async getContext() {
+ return new Promise((resolve) => {
+ resolve({
+ id_lang: this.id_lang,
+ id_shop: this.id_shop,
+ shop_name: this.shop_name,
+ current_url: this.current_url,
+ href: this.href,
+ });
+ });
+ },
+ },
+})
+
+
+export const useStoredZones = defineStore('useStoredZones', {
+ state: () => {
+ return {
+ zones: [],
+ }
+ },
+ getters: {
+ all(state) {
+ return state.zones
+ }
+ }
+
+
+})
+
+export const storedBlocks = defineStore('storedBlocks', {
+ state: () => {
+ return {
+ blocks: [],
+ }
+ },
+ getters: {
+ all(state) {
+ return state.blocks
+ }
+ }
+
+
+})
\ No newline at end of file
diff --git a/_dev/vite.config.prettyblocks.js b/_dev/vite.config.prettyblocks.js
index f4629390..e9fdc225 100644
--- a/_dev/vite.config.prettyblocks.js
+++ b/_dev/vite.config.prettyblocks.js
@@ -1,16 +1,32 @@
import { defineConfig } from 'vite';
+import vue from '@vitejs/plugin-vue'
export default defineConfig({
+ plugins: [vue()],
build: {
- outDir: '../views/js/',
+ minify: false,
+ outDir: '../views/js/build/',
assetsDir: '',
-
+ emptyOutDir: true,
+ lib: {
+ entry: './src/scripts/prettyblocks.js',
+ name: 'Module2',
+ formats: ['iife'],
+ },
rollupOptions: {
output: {
entryFileNames: 'build.js',
chunkFileNames: 'build.js',
+ format: 'iife',
+ name: 'Module2',
},
- input: '../views/js/prettyblocks.js' // Remplacez par le chemin correct vers votre fichier
+ input: './src/scripts/prettyblocks.js'
}
+ },
+ esbuild: {
+ keepNames: true,
+ },
+ define: {
+ 'process.env': {}
}
});
diff --git a/_dev/yarn.lock b/_dev/yarn.lock
index 4c6723cd..14517a03 100644
--- a/_dev/yarn.lock
+++ b/_dev/yarn.lock
@@ -7,62 +7,71 @@
resolved "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz"
integrity sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==
-"@babel/parser@^7.23.6":
- version "7.23.6"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.23.6.tgz#ba1c9e512bda72a47e285ae42aff9d2a635a9e3b"
- integrity sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==
+"@babel/parser@^7.24.7":
+ version "7.24.8"
+ resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.24.8.tgz"
+ integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==
-"@esbuild/linux-loong64@0.14.54":
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz#de2a4be678bd4d0d1ffbb86e6de779cde5999028"
- integrity sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw==
+"@esbuild/darwin-arm64@0.21.5":
+ version "0.21.5"
+ resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz"
+ integrity sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==
-"@headlessui/vue@^1.7.16":
- version "1.7.16"
- resolved "https://registry.npmjs.org/@headlessui/vue/-/vue-1.7.16.tgz"
- integrity sha512-nKT+nf/q6x198SsyK54mSszaQl/z+QxtASmgMEJtpxSX2Q0OPJX0upS/9daDyiECpeAsvjkoOrm2O/6PyBQ+Qg==
+"@headlessui/vue@^1.7.19":
+ version "1.7.22"
+ resolved "https://registry.npmjs.org/@headlessui/vue/-/vue-1.7.22.tgz"
+ integrity sha512-Hoffjoolq1rY+LOfJ+B/OvkhuBXXBFgd8oBlN+l1TApma2dB0En0ucFZrwQtb33SmcCqd32EQd0y07oziXWNYg==
+ dependencies:
+ "@tanstack/vue-virtual" "^3.0.0-beta.60"
"@heroicons/vue@^2.1.1":
- version "2.1.1"
- resolved "https://registry.yarnpkg.com/@heroicons/vue/-/vue-2.1.1.tgz#76299d6607a7a1164e3e06a037d7cf721c53b223"
- integrity sha512-Yi5nh/89L193ALgHyJUQUdNLsKXPrrE3yj5yiR8WAlo7nZyXGxGauQcEAmBsa2XJGMhBMuEdoOiuZ8wEwTBxVQ==
+ version "2.1.5"
+ resolved "https://registry.npmjs.org/@heroicons/vue/-/vue-2.1.5.tgz"
+ integrity sha512-IpqR72sFqFs55kyKfFS7tN+Ww6odFNeH/7UxycIOrlVYfj4WUGAdzQtLBnJspucSeqWFQsKM0g0YrgU655BEfA==
+
+"@isaacs/cliui@^8.0.2":
+ version "8.0.2"
+ resolved "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz"
+ integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==
+ dependencies:
+ string-width "^5.1.2"
+ string-width-cjs "npm:string-width@^4.2.0"
+ strip-ansi "^7.0.1"
+ strip-ansi-cjs "npm:strip-ansi@^6.0.1"
+ wrap-ansi "^8.1.0"
+ wrap-ansi-cjs "npm:wrap-ansi@^7.0.0"
"@jridgewell/gen-mapping@^0.3.2":
- version "0.3.3"
- resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz"
- integrity sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==
+ version "0.3.5"
+ resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz"
+ integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==
dependencies:
- "@jridgewell/set-array" "^1.0.1"
+ "@jridgewell/set-array" "^1.2.1"
"@jridgewell/sourcemap-codec" "^1.4.10"
- "@jridgewell/trace-mapping" "^0.3.9"
-
-"@jridgewell/resolve-uri@3.1.0":
- version "3.1.0"
- resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz"
- integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==
+ "@jridgewell/trace-mapping" "^0.3.24"
-"@jridgewell/set-array@^1.0.1":
- version "1.1.2"
- resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz"
- integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==
+"@jridgewell/resolve-uri@^3.1.0":
+ version "3.1.2"
+ resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz"
+ integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==
-"@jridgewell/sourcemap-codec@1.4.14":
- version "1.4.14"
- resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz"
- integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==
+"@jridgewell/set-array@^1.2.1":
+ version "1.2.1"
+ resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz"
+ integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==
-"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.15":
- version "1.4.15"
- resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz"
- integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==
+"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15":
+ version "1.5.0"
+ resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz"
+ integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==
-"@jridgewell/trace-mapping@^0.3.9":
- version "0.3.18"
- resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz"
- integrity sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==
+"@jridgewell/trace-mapping@^0.3.24":
+ version "0.3.25"
+ resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz"
+ integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==
dependencies:
- "@jridgewell/resolve-uri" "3.1.0"
- "@jridgewell/sourcemap-codec" "1.4.14"
+ "@jridgewell/resolve-uri" "^3.1.0"
+ "@jridgewell/sourcemap-codec" "^1.4.14"
"@meforma/vue-toaster@^1.3.0":
version "1.3.0"
@@ -80,7 +89,7 @@
"@nodelib/fs.stat" "2.0.5"
run-parallel "^1.1.9"
-"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2":
+"@nodelib/fs.stat@^2.0.2", "@nodelib/fs.stat@2.0.5":
version "2.0.5"
resolved "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz"
integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==
@@ -93,6 +102,16 @@
"@nodelib/fs.scandir" "2.1.5"
fastq "^1.6.0"
+"@pkgjs/parseargs@^0.11.0":
+ version "0.11.0"
+ resolved "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz"
+ integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==
+
+"@rollup/rollup-darwin-arm64@4.19.0":
+ version "4.19.0"
+ resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.19.0.tgz"
+ integrity sha512-emvKHL4B15x6nlNTBMtIaC9tLPRpeA5jMvRLXVbl/W9Ie7HhkrE7KQjvgS9uxgatL1HmHWDXk5TTS4IaNJxbAA==
+
"@swc/helpers@^0.2.13":
version "0.2.14"
resolved "https://registry.npmjs.org/@swc/helpers/-/helpers-0.2.14.tgz"
@@ -100,11 +119,23 @@
"@tailwindcss/forms@^0.5.7":
version "0.5.7"
- resolved "https://registry.yarnpkg.com/@tailwindcss/forms/-/forms-0.5.7.tgz#db5421f062a757b5f828bc9286ba626c6685e821"
+ resolved "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.7.tgz"
integrity sha512-QE7X69iQI+ZXwldE+rzasvbJiyV/ju1FGHH0Qn2W3FKbuYtqp8LKcy6iSw79fVUT5/Vvf+0XgLCeYVG+UV6hOw==
dependencies:
mini-svg-data-uri "^1.2.3"
+"@tanstack/virtual-core@3.8.3":
+ version "3.8.3"
+ resolved "https://registry.npmjs.org/@tanstack/virtual-core/-/virtual-core-3.8.3.tgz"
+ integrity sha512-vd2A2TnM5lbnWZnHi9B+L2gPtkSeOtJOAw358JqokIH1+v2J7vUAzFVPwB/wrye12RFOurffXu33plm4uQ+JBQ==
+
+"@tanstack/vue-virtual@^3.0.0-beta.60":
+ version "3.8.3"
+ resolved "https://registry.npmjs.org/@tanstack/vue-virtual/-/vue-virtual-3.8.3.tgz"
+ integrity sha512-xrFLkOiqLoGwohgr1+Q880hkNdQWqwi19EXzx38iAjVEm1Db3KIAV0aVP57/dnNXU3NO1Vx8wnIHII5J4n1LyA==
+ dependencies:
+ "@tanstack/virtual-core" "3.8.3"
+
"@tinymce/tinymce-vue@^5.1.1":
version "5.1.1"
resolved "https://registry.npmjs.org/@tinymce/tinymce-vue/-/tinymce-vue-5.1.1.tgz"
@@ -112,99 +143,142 @@
dependencies:
tinymce "^6.0.0 || ^5.5.1"
-"@vitejs/plugin-vue@^2.3.4":
- version "2.3.4"
- resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-2.3.4.tgz"
- integrity sha512-IfFNbtkbIm36O9KB8QodlwwYvTEsJb4Lll4c2IwB3VHc2gie2mSPtSzL0eYay7X2jd/2WX02FjSGTWR6OPr/zg==
+"@types/estree@1.0.5":
+ version "1.0.5"
+ resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz"
+ integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==
-"@vue/compiler-core@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.4.3.tgz#8e8f88273f061cf0a49bf958255f5f0621f12d8b"
- integrity sha512-u8jzgFg0EDtSrb/hG53Wwh1bAOQFtc1ZCegBpA/glyvTlgHl+tq13o1zvRfLbegYUw/E4mSTGOiCnAJ9SJ+lsg==
+"@vitejs/plugin-vue@^5.0.4":
+ version "5.1.0"
+ resolved "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.1.0.tgz"
+ integrity sha512-QMRxARyrdiwi1mj3AW4fLByoHTavreXq0itdEW696EihXglf1MB3D4C2gBvE0jMPH29ZjC3iK8aIaUMLf4EOGA==
+
+"@vue/compiler-core@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.34.tgz"
+ integrity sha512-Z0izUf32+wAnQewjHu+pQf1yw00EGOmevl1kE+ljjjMe7oEfpQ+BI3/JNK7yMB4IrUsqLDmPecUrpj3mCP+yJQ==
dependencies:
- "@babel/parser" "^7.23.6"
- "@vue/shared" "3.4.3"
+ "@babel/parser" "^7.24.7"
+ "@vue/shared" "3.4.34"
entities "^4.5.0"
estree-walker "^2.0.2"
- source-map-js "^1.0.2"
-
-"@vue/compiler-dom@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.4.3.tgz#bea8acde9585d5ce92a3f11c062c863fb33e44d7"
- integrity sha512-oGF1E9/htI6JWj/lTJgr6UgxNCtNHbM6xKVreBWeZL9QhRGABRVoWGAzxmtBfSOd+w0Zi5BY0Es/tlJrN6WgEg==
- dependencies:
- "@vue/compiler-core" "3.4.3"
- "@vue/shared" "3.4.3"
-
-"@vue/compiler-sfc@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.4.3.tgz#a9d35b2deef38576dedd9938851c032fb2ca8617"
- integrity sha512-NuJqb5is9I4uzv316VRUDYgIlPZCG8D+ARt5P4t5UDShIHKL25J3TGZAUryY/Aiy0DsY7srJnZL5ryB6DD63Zw==
- dependencies:
- "@babel/parser" "^7.23.6"
- "@vue/compiler-core" "3.4.3"
- "@vue/compiler-dom" "3.4.3"
- "@vue/compiler-ssr" "3.4.3"
- "@vue/shared" "3.4.3"
+ source-map-js "^1.2.0"
+
+"@vue/compiler-dom@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.34.tgz"
+ integrity sha512-3PUOTS1h5cskdOJMExCu2TInXuM0j60DRPpSCJDqOCupCfUZCJoyQmKtRmA8EgDNZ5kcEE7vketamRZfrEuVDw==
+ dependencies:
+ "@vue/compiler-core" "3.4.34"
+ "@vue/shared" "3.4.34"
+
+"@vue/compiler-sfc@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.34.tgz"
+ integrity sha512-x6lm0UrM03jjDXTPZgD9Ad8bIVD1ifWNit2EaWQIZB5CULr46+FbLQ5RpK7AXtDHGjx9rmvC7QRCTjsiGkAwRw==
+ dependencies:
+ "@babel/parser" "^7.24.7"
+ "@vue/compiler-core" "3.4.34"
+ "@vue/compiler-dom" "3.4.34"
+ "@vue/compiler-ssr" "3.4.34"
+ "@vue/shared" "3.4.34"
estree-walker "^2.0.2"
- magic-string "^0.30.5"
- postcss "^8.4.32"
- source-map-js "^1.0.2"
+ magic-string "^0.30.10"
+ postcss "^8.4.39"
+ source-map-js "^1.2.0"
-"@vue/compiler-ssr@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.4.3.tgz#c3f641a15a04893b5bc3278f3dac65bed44dce1d"
- integrity sha512-wnYQtMBkeFSxgSSQbYGQeXPhQacQiog2c6AlvMldQH6DB+gSXK/0F6DVXAJfEiuBSgBhUc8dwrrG5JQcqwalsA==
+"@vue/compiler-ssr@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.34.tgz"
+ integrity sha512-8TDBcLaTrFm5rnF+Qm4BlliaopJgqJ28Nsrc80qazynm5aJO+Emu7y0RWw34L8dNnTRdcVBpWzJxhGYzsoVu4g==
dependencies:
- "@vue/compiler-dom" "3.4.3"
- "@vue/shared" "3.4.3"
+ "@vue/compiler-dom" "3.4.34"
+ "@vue/shared" "3.4.34"
"@vue/devtools-api@^6.5.0":
- version "6.5.0"
- resolved "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.0.tgz"
- integrity sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q==
+ version "6.6.3"
+ resolved "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.3.tgz"
+ integrity sha512-0MiMsFma/HqA6g3KLKn+AGpL1kgKhFWszC9U29NfpWK5LE7bjeXxySWJrOJ77hBz+TBrBQ7o4QJqbPbqbs8rJw==
-"@vue/reactivity@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/reactivity/-/reactivity-3.4.3.tgz#95287b5950b328df4a942a7cf14a0e13487f1eac"
- integrity sha512-q5f9HLDU+5aBKizXHAx0w4whkIANs1Muiq9R5YXm0HtorSlflqv9u/ohaMxuuhHWCji4xqpQ1eL04WvmAmGnFg==
+"@vue/reactivity@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.34.tgz"
+ integrity sha512-ua+Lo+wBRlBEX9TtgPOShE2JwIO7p6BTZ7t1KZVPoaBRfqbC7N3c8Mpzicx173fXxx5VXeU6ykiHo7WgLzJQDA==
dependencies:
- "@vue/shared" "3.4.3"
+ "@vue/shared" "3.4.34"
-"@vue/runtime-core@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/runtime-core/-/runtime-core-3.4.3.tgz#fe7649a93d9b20b9b351cd699f69f0e34a26e3ab"
- integrity sha512-C1r6QhB1qY7D591RCSFhMULyzL9CuyrGc+3PpB0h7dU4Qqw6GNyo4BNFjHZVvsWncrUlKX3DIKg0Y7rNNr06NQ==
+"@vue/runtime-core@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.34.tgz"
+ integrity sha512-PXhkiRPwcPGJ1BnyBZFI96GfInCVskd0HPNIAZn7i3YOmLbtbTZpB7/kDTwC1W7IqdGPkTVC63IS7J2nZs4Ebg==
dependencies:
- "@vue/reactivity" "3.4.3"
- "@vue/shared" "3.4.3"
+ "@vue/reactivity" "3.4.34"
+ "@vue/shared" "3.4.34"
-"@vue/runtime-dom@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/runtime-dom/-/runtime-dom-3.4.3.tgz#54a6115cfba364f20cdf5a44c2ff87337a57def8"
- integrity sha512-wrsprg7An5Ec+EhPngWdPuzkp0BEUxAKaQtN9dPU/iZctPyD9aaXmVtehPJerdQxQale6gEnhpnfywNw3zOv2A==
+"@vue/runtime-dom@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.34.tgz"
+ integrity sha512-dXqIe+RqFAK2Euak4UsvbIupalrhc67OuQKpD7HJ3W2fv8jlqvI7szfBCsAEcE8o/wyNpkloxB6J8viuF/E3gw==
dependencies:
- "@vue/runtime-core" "3.4.3"
- "@vue/shared" "3.4.3"
+ "@vue/reactivity" "3.4.34"
+ "@vue/runtime-core" "3.4.34"
+ "@vue/shared" "3.4.34"
csstype "^3.1.3"
-"@vue/server-renderer@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/server-renderer/-/server-renderer-3.4.3.tgz#c508f58b9f83f0959085d5aa6854eac9141b4bc6"
- integrity sha512-BUxt8oVGMKKsqSkM1uU3d3Houyfy4WAc2SpSQRebNd+XJGATVkW/rO129jkyL+kpB/2VRKzE63zwf5RtJ3XuZw==
+"@vue/server-renderer@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.34.tgz"
+ integrity sha512-GeyEUfMVRZMD/mZcNONEqg7MiU10QQ1DB3O/Qr6+8uXpbwdlmVgQ5Qs1/ZUAFX1X2UUtqMoGrDRbxdWfOJFT7Q==
dependencies:
- "@vue/compiler-ssr" "3.4.3"
- "@vue/shared" "3.4.3"
+ "@vue/compiler-ssr" "3.4.34"
+ "@vue/shared" "3.4.34"
-"@vue/shared@3.4.3":
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.4.3.tgz#01d54b32b9796c85c853c670d9395a813f23a8c2"
- integrity sha512-rIwlkkP1n4uKrRzivAKPZIEkHiuwY5mmhMJ2nZKCBLz8lTUlE73rQh4n1OnnMurXt1vcUNyH4ZPfdh8QweTjpQ==
+"@vue/shared@3.4.34":
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/@vue/shared/-/shared-3.4.34.tgz"
+ integrity sha512-x5LmiRLpRsd9KTjAB8MPKf0CDPMcuItjP0gbNqFCIgL1I8iYp4zglhj9w9FPCdIbHG2M91RVeIbArFfFTz9I3A==
"@vueform/multiselect@^2.6.6":
- version "2.6.6"
- resolved "https://registry.yarnpkg.com/@vueform/multiselect/-/multiselect-2.6.6.tgz#d8541f0eb6d03a53024461cfd54fb67f910b57cb"
- integrity sha512-JDWesVRmyGz9HmHp2Ooy1cb8XgKohiztwMDtjm8c0/Th+7wEZENZuYa0iY5CTvaJNANl3LVqh9BNnCc/YlM/Bg==
+ version "2.6.8"
+ resolved "https://registry.npmjs.org/@vueform/multiselect/-/multiselect-2.6.8.tgz"
+ integrity sha512-vu1bkFkViuLbrtSfyWgw11ecNPK7mlBDFe5X9WdsZj3gri3PiZ3OvlfJ920Ebysf7rgiN/+mHJDY2/Y1ITnGEg==
+
+"@vuepic/vue-datepicker@^8.1.1":
+ version "8.8.1"
+ resolved "https://registry.npmjs.org/@vuepic/vue-datepicker/-/vue-datepicker-8.8.1.tgz"
+ integrity sha512-8ehfUz1m69Vuc16Pm4ukgb3Mg1VT14x4EsG1ag4O/qbSNRWztTo+pUV4JnFt0FGLl5gGb6NXlxIvR7EjLgD7Gg==
+ dependencies:
+ date-fns "^3.6.0"
+
+"@vueup/vue-quill@^1.2.0":
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/@vueup/vue-quill/-/vue-quill-1.2.0.tgz"
+ integrity sha512-kd5QPSHMDpycklojPXno2Kw2JSiKMYduKYQckTm1RJoVDA557MnyUXgcuuDpry4HY/Rny9nGNcK+m3AHk94wag==
+ dependencies:
+ quill "^1.3.7"
+ quill-delta "^4.2.2"
+
+ansi-regex@^5.0.1:
+ version "5.0.1"
+ resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz"
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
+
+ansi-regex@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz"
+ integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==
+
+ansi-styles@^4.0.0:
+ version "4.3.0"
+ resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz"
+ integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==
+ dependencies:
+ color-convert "^2.0.1"
+
+ansi-styles@^6.1.0:
+ version "6.2.1"
+ resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz"
+ integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==
any-promise@^1.0.0:
version "1.3.0"
@@ -229,14 +303,14 @@ atob@^2.1.2:
resolved "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz"
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
-autoprefixer@^10.4.16:
- version "10.4.16"
- resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz"
- integrity sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==
+autoprefixer@^10.4.17:
+ version "10.4.19"
+ resolved "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.19.tgz"
+ integrity sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==
dependencies:
- browserslist "^4.21.10"
- caniuse-lite "^1.0.30001538"
- fraction.js "^4.3.6"
+ browserslist "^4.23.0"
+ caniuse-lite "^1.0.30001599"
+ fraction.js "^4.3.7"
normalize-range "^0.1.2"
picocolors "^1.0.0"
postcss-value-parser "^4.2.0"
@@ -252,9 +326,9 @@ big.js@^5.2.2:
integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==
binary-extensions@^2.0.0:
- version "2.2.0"
- resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz"
- integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
+ version "2.3.0"
+ resolved "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz"
+ integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==
brace-expansion@^1.1.7:
version "1.1.11"
@@ -264,37 +338,55 @@ brace-expansion@^1.1.7:
balanced-match "^1.0.0"
concat-map "0.0.1"
-braces@^3.0.2, braces@~3.0.2:
- version "3.0.2"
- resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz"
- integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==
+brace-expansion@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz"
+ integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
dependencies:
- fill-range "^7.0.1"
+ balanced-match "^1.0.0"
+
+braces@^3.0.3, braces@~3.0.2:
+ version "3.0.3"
+ resolved "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz"
+ integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==
+ dependencies:
+ fill-range "^7.1.1"
-browserslist@^4.21.10:
- version "4.21.10"
- resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.10.tgz"
- integrity sha512-bipEBdZfVH5/pwrvqc+Ub0kUPVfGUhlKxbvfD+z1BDnPEO/X98ruXGA1WP5ASpAFKan7Qr6j736IacbZQuAlKQ==
+browserslist@^4.23.0, "browserslist@>= 4.21.0":
+ version "4.23.2"
+ resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.23.2.tgz"
+ integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA==
dependencies:
- caniuse-lite "^1.0.30001517"
- electron-to-chromium "^1.4.477"
- node-releases "^2.0.13"
- update-browserslist-db "^1.0.11"
+ caniuse-lite "^1.0.30001640"
+ electron-to-chromium "^1.4.820"
+ node-releases "^2.0.14"
+ update-browserslist-db "^1.1.0"
+
+call-bind@^1.0.2, call-bind@^1.0.6, call-bind@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz"
+ integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==
+ dependencies:
+ es-define-property "^1.0.0"
+ es-errors "^1.3.0"
+ function-bind "^1.1.2"
+ get-intrinsic "^1.2.4"
+ set-function-length "^1.2.1"
camelcase-css@^2.0.1:
version "2.0.1"
resolved "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz"
integrity sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==
-caniuse-lite@^1.0.30001517, caniuse-lite@^1.0.30001538:
- version "1.0.30001551"
- resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001551.tgz"
- integrity sha512-vtBAez47BoGMMzlbYhfXrMV1kvRF2WP/lqiMuDu1Sb4EE4LKEgjopFDSRtZfdVnslNRpOqV/woE+Xgrwj6VQlg==
+caniuse-lite@^1.0.30001599, caniuse-lite@^1.0.30001640:
+ version "1.0.30001643"
+ resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001643.tgz"
+ integrity sha512-ERgWGNleEilSrHM6iUz/zJNSQTP8Mr21wDWpdgvRwcTXGAq6jMtOUPP4dqFPTdKqZ2wKTdtB+uucZ3MRpAUSmg==
chokidar@^3.5.3:
- version "3.5.3"
- resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz"
- integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==
+ version "3.6.0"
+ resolved "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz"
+ integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==
dependencies:
anymatch "~3.1.2"
braces "~3.0.2"
@@ -306,6 +398,28 @@ chokidar@^3.5.3:
optionalDependencies:
fsevents "~2.3.2"
+classnames@^2.2.5:
+ version "2.5.1"
+ resolved "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz"
+ integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==
+
+clone@^2.1.1:
+ version "2.1.2"
+ resolved "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz"
+ integrity sha512-3Pe/CF1Nn94hyhIYpjtiLhdCoEoz0DqQ+988E9gmeEdQZlojxnOb74wctFyuwWQHzqyf9X7C7MG8juUpqBJT8w==
+
+color-convert@^2.0.1:
+ version "2.0.1"
+ resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz"
+ integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==
+ dependencies:
+ color-name "~1.1.4"
+
+color-name@~1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz"
+ integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
+
commander@^4.0.0:
version "4.1.1"
resolved "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz"
@@ -316,6 +430,20 @@ concat-map@0.0.1:
resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz"
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
+core-js@^3.1.3:
+ version "3.37.1"
+ resolved "https://registry.npmjs.org/core-js/-/core-js-3.37.1.tgz"
+ integrity sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw==
+
+cross-spawn@^7.0.0:
+ version "7.0.3"
+ resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz"
+ integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
+ dependencies:
+ path-key "^3.1.0"
+ shebang-command "^2.0.0"
+ which "^2.0.1"
+
css-parse@~2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/css-parse/-/css-parse-2.0.0.tgz"
@@ -340,9 +468,14 @@ cssesc@^3.0.0:
csstype@^3.1.3:
version "3.1.3"
- resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"
+ resolved "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz"
integrity sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==
+date-fns@^3.6.0:
+ version "3.6.0"
+ resolved "https://registry.npmjs.org/date-fns/-/date-fns-3.6.0.tgz"
+ integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==
+
debug@~3.1.0:
version "3.1.0"
resolved "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz"
@@ -355,6 +488,36 @@ decode-uri-component@^0.2.0:
resolved "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz"
integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==
+deep-equal@^1.0.1:
+ version "1.1.2"
+ resolved "https://registry.npmjs.org/deep-equal/-/deep-equal-1.1.2.tgz"
+ integrity sha512-5tdhKF6DbU7iIzrIOa1AOUt39ZRm13cmL1cGEh//aqR8x9+tNfbywRf0n5FD/18OKMdo7DNEtrX2t22ZAkI+eg==
+ dependencies:
+ is-arguments "^1.1.1"
+ is-date-object "^1.0.5"
+ is-regex "^1.1.4"
+ object-is "^1.1.5"
+ object-keys "^1.1.1"
+ regexp.prototype.flags "^1.5.1"
+
+define-data-property@^1.0.1, define-data-property@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz"
+ integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==
+ dependencies:
+ es-define-property "^1.0.0"
+ es-errors "^1.3.0"
+ gopd "^1.0.1"
+
+define-properties@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz"
+ integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==
+ dependencies:
+ define-data-property "^1.0.1"
+ has-property-descriptors "^1.0.0"
+ object-keys "^1.1.1"
+
didyoumean@^1.2.2:
version "1.2.2"
resolved "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz"
@@ -373,10 +536,25 @@ dropzone@^6.0.0-beta.2:
"@swc/helpers" "^0.2.13"
just-extend "^5.0.0"
-electron-to-chromium@^1.4.477:
- version "1.4.508"
- resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.508.tgz"
- integrity sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg==
+eastasianwidth@^0.2.0:
+ version "0.2.0"
+ resolved "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz"
+ integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
+
+electron-to-chromium@^1.4.820:
+ version "1.5.1"
+ resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.1.tgz"
+ integrity sha512-FKbOCOQ5QRB3VlIbl1LZQefWIYwszlBloaXcY2rbfpu9ioJnNh3TK03YtIDKDo3WKBi8u+YV4+Fn2CkEozgf4w==
+
+emoji-regex@^8.0.0:
+ version "8.0.0"
+ resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz"
+ integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
+
+emoji-regex@^9.2.2:
+ version "9.2.2"
+ resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz"
+ integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
emojis-list@^3.0.0:
version "3.0.0"
@@ -385,149 +563,83 @@ emojis-list@^3.0.0:
entities@^4.5.0:
version "4.5.0"
- resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48"
+ resolved "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz"
integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==
-esbuild-android-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz#505f41832884313bbaffb27704b8bcaa2d8616be"
- integrity sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ==
-
-esbuild-android-arm64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz#8ce69d7caba49646e009968fe5754a21a9871771"
- integrity sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg==
-
-esbuild-darwin-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz"
- integrity sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug==
-
-esbuild-darwin-arm64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz#3f7cdb78888ee05e488d250a2bdaab1fa671bf73"
- integrity sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw==
-
-esbuild-freebsd-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz#09250f997a56ed4650f3e1979c905ffc40bbe94d"
- integrity sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg==
-
-esbuild-freebsd-arm64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz#bafb46ed04fc5f97cbdb016d86947a79579f8e48"
- integrity sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q==
-
-esbuild-linux-32@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz#e2a8c4a8efdc355405325033fcebeb941f781fe5"
- integrity sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw==
-
-esbuild-linux-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz#de5fdba1c95666cf72369f52b40b03be71226652"
- integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg==
-
-esbuild-linux-arm64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz#dae4cd42ae9787468b6a5c158da4c84e83b0ce8b"
- integrity sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig==
-
-esbuild-linux-arm@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz#a2c1dff6d0f21dbe8fc6998a122675533ddfcd59"
- integrity sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw==
-
-esbuild-linux-mips64le@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz#d9918e9e4cb972f8d6dae8e8655bf9ee131eda34"
- integrity sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw==
-
-esbuild-linux-ppc64le@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz#3f9a0f6d41073fb1a640680845c7de52995f137e"
- integrity sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ==
-
-esbuild-linux-riscv64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz#618853c028178a61837bc799d2013d4695e451c8"
- integrity sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg==
-
-esbuild-linux-s390x@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz#d1885c4c5a76bbb5a0fe182e2c8c60eb9e29f2a6"
- integrity sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA==
-
-esbuild-netbsd-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz#69ae917a2ff241b7df1dbf22baf04bd330349e81"
- integrity sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w==
-
-esbuild-openbsd-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz#db4c8495287a350a6790de22edea247a57c5d47b"
- integrity sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw==
-
-esbuild-sunos-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz#54287ee3da73d3844b721c21bc80c1dc7e1bf7da"
- integrity sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw==
-
-esbuild-windows-32@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz#f8aaf9a5667630b40f0fb3aa37bf01bbd340ce31"
- integrity sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w==
-
-esbuild-windows-64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz#bf54b51bd3e9b0f1886ffdb224a4176031ea0af4"
- integrity sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ==
-
-esbuild-windows-arm64@0.14.54:
- version "0.14.54"
- resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz#937d15675a15e4b0e4fafdbaa3a01a776a2be982"
- integrity sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg==
-
-esbuild@^0.14.27:
- version "0.14.54"
- resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.14.54.tgz"
- integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA==
+es-define-property@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz"
+ integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==
+ dependencies:
+ get-intrinsic "^1.2.4"
+
+es-errors@^1.3.0:
+ version "1.3.0"
+ resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz"
+ integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==
+
+esbuild@^0.21.3:
+ version "0.21.5"
+ resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz"
+ integrity sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==
optionalDependencies:
- "@esbuild/linux-loong64" "0.14.54"
- esbuild-android-64 "0.14.54"
- esbuild-android-arm64 "0.14.54"
- esbuild-darwin-64 "0.14.54"
- esbuild-darwin-arm64 "0.14.54"
- esbuild-freebsd-64 "0.14.54"
- esbuild-freebsd-arm64 "0.14.54"
- esbuild-linux-32 "0.14.54"
- esbuild-linux-64 "0.14.54"
- esbuild-linux-arm "0.14.54"
- esbuild-linux-arm64 "0.14.54"
- esbuild-linux-mips64le "0.14.54"
- esbuild-linux-ppc64le "0.14.54"
- esbuild-linux-riscv64 "0.14.54"
- esbuild-linux-s390x "0.14.54"
- esbuild-netbsd-64 "0.14.54"
- esbuild-openbsd-64 "0.14.54"
- esbuild-sunos-64 "0.14.54"
- esbuild-windows-32 "0.14.54"
- esbuild-windows-64 "0.14.54"
- esbuild-windows-arm64 "0.14.54"
-
-escalade@^3.1.1:
- version "3.1.1"
- resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz"
- integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
+ "@esbuild/aix-ppc64" "0.21.5"
+ "@esbuild/android-arm" "0.21.5"
+ "@esbuild/android-arm64" "0.21.5"
+ "@esbuild/android-x64" "0.21.5"
+ "@esbuild/darwin-arm64" "0.21.5"
+ "@esbuild/darwin-x64" "0.21.5"
+ "@esbuild/freebsd-arm64" "0.21.5"
+ "@esbuild/freebsd-x64" "0.21.5"
+ "@esbuild/linux-arm" "0.21.5"
+ "@esbuild/linux-arm64" "0.21.5"
+ "@esbuild/linux-ia32" "0.21.5"
+ "@esbuild/linux-loong64" "0.21.5"
+ "@esbuild/linux-mips64el" "0.21.5"
+ "@esbuild/linux-ppc64" "0.21.5"
+ "@esbuild/linux-riscv64" "0.21.5"
+ "@esbuild/linux-s390x" "0.21.5"
+ "@esbuild/linux-x64" "0.21.5"
+ "@esbuild/netbsd-x64" "0.21.5"
+ "@esbuild/openbsd-x64" "0.21.5"
+ "@esbuild/sunos-x64" "0.21.5"
+ "@esbuild/win32-arm64" "0.21.5"
+ "@esbuild/win32-ia32" "0.21.5"
+ "@esbuild/win32-x64" "0.21.5"
+
+escalade@^3.1.2:
+ version "3.1.2"
+ resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz"
+ integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==
estree-walker@^2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz"
integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
+eventemitter3@^2.0.3:
+ version "2.0.3"
+ resolved "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz"
+ integrity sha512-jLN68Dx5kyFHaePoXWPsCGW5qdyZQtLYHkxkg02/Mz6g0kYpDx4FyP6XfArhQdlOC4b8Mv+EMxPo/8La7Tzghg==
+
+extend@^3.0.2:
+ version "3.0.2"
+ resolved "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz"
+ integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==
+
+fast-diff@1.1.2:
+ version "1.1.2"
+ resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz"
+ integrity sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==
+
+fast-diff@1.2.0:
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz"
+ integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
+
fast-glob@^3.3.0:
version "3.3.2"
- resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129"
+ resolved "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz"
integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==
dependencies:
"@nodelib/fs.stat" "^2.0.2"
@@ -537,20 +649,36 @@ fast-glob@^3.3.0:
micromatch "^4.0.4"
fastq@^1.6.0:
- version "1.15.0"
- resolved "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz"
- integrity sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==
+ version "1.17.1"
+ resolved "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz"
+ integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==
dependencies:
reusify "^1.0.4"
-fill-range@^7.0.1:
- version "7.0.1"
- resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz"
- integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==
+feather-icons@^4.28.0:
+ version "4.29.2"
+ resolved "https://registry.npmjs.org/feather-icons/-/feather-icons-4.29.2.tgz"
+ integrity sha512-0TaCFTnBTVCz6U+baY2UJNKne5ifGh7sMG4ZC2LoBWCZdIyPa+y6UiR4lEYGws1JOFWdee8KAsAIvu0VcXqiqA==
+ dependencies:
+ classnames "^2.2.5"
+ core-js "^3.1.3"
+
+fill-range@^7.1.1:
+ version "7.1.1"
+ resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz"
+ integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==
dependencies:
to-regex-range "^5.0.1"
-fraction.js@^4.3.6:
+foreground-child@^3.1.0:
+ version "3.2.1"
+ resolved "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz"
+ integrity sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==
+ dependencies:
+ cross-spawn "^7.0.0"
+ signal-exit "^4.0.1"
+
+fraction.js@^4.3.7:
version "4.3.7"
resolved "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz"
integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==
@@ -560,17 +688,33 @@ fs.realpath@^1.0.0:
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
-fsevents@~2.3.2:
- version "2.3.2"
- resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
- integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==
+fsevents@~2.3.2, fsevents@~2.3.3:
+ version "2.3.3"
+ resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
+ integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
-function-bind@^1.1.1:
- version "1.1.1"
- resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
- integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==
+function-bind@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
+ integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
+
+functions-have-names@^1.2.3:
+ version "1.2.3"
+ resolved "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz"
+ integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==
+
+get-intrinsic@^1.1.3, get-intrinsic@^1.2.4:
+ version "1.2.4"
+ resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz"
+ integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==
+ dependencies:
+ es-errors "^1.3.0"
+ function-bind "^1.1.2"
+ has-proto "^1.0.1"
+ has-symbols "^1.0.3"
+ hasown "^2.0.0"
-glob-parent@^5.1.2, glob-parent@~5.1.2:
+glob-parent@^5.1.2:
version "5.1.2"
resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
@@ -584,17 +728,24 @@ glob-parent@^6.0.2:
dependencies:
is-glob "^4.0.3"
-glob@7.1.6:
- version "7.1.6"
- resolved "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz"
- integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==
+glob-parent@~5.1.2:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz"
+ integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==
dependencies:
- fs.realpath "^1.0.0"
- inflight "^1.0.4"
- inherits "2"
- minimatch "^3.0.4"
- once "^1.3.0"
- path-is-absolute "^1.0.0"
+ is-glob "^4.0.1"
+
+glob@^10.3.10:
+ version "10.4.5"
+ resolved "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz"
+ integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==
+ dependencies:
+ foreground-child "^3.1.0"
+ jackspeak "^3.1.2"
+ minimatch "^9.0.4"
+ minipass "^7.1.2"
+ package-json-from-dist "^1.0.0"
+ path-scurry "^1.11.1"
glob@^7.1.6:
version "7.2.3"
@@ -608,12 +759,43 @@ glob@^7.1.6:
once "^1.3.0"
path-is-absolute "^1.0.0"
-has@^1.0.3:
+gopd@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz"
+ integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==
+ dependencies:
+ get-intrinsic "^1.1.3"
+
+has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz"
+ integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==
+ dependencies:
+ es-define-property "^1.0.0"
+
+has-proto@^1.0.1:
version "1.0.3"
- resolved "https://registry.npmjs.org/has/-/has-1.0.3.tgz"
- integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==
+ resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz"
+ integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==
+
+has-symbols@^1.0.3:
+ version "1.0.3"
+ resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz"
+ integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==
+
+has-tostringtag@^1.0.0:
+ version "1.0.2"
+ resolved "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz"
+ integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==
dependencies:
- function-bind "^1.1.1"
+ has-symbols "^1.0.3"
+
+hasown@^2.0.0, hasown@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz"
+ integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
+ dependencies:
+ function-bind "^1.1.2"
inflight@^1.0.4:
version "1.0.6"
@@ -623,11 +805,19 @@ inflight@^1.0.4:
once "^1.3.0"
wrappy "1"
-inherits@2, inherits@^2.0.3:
+inherits@^2.0.3, inherits@2:
version "2.0.4"
resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
+is-arguments@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz"
+ integrity sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
is-binary-path@~2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz"
@@ -635,18 +825,30 @@ is-binary-path@~2.1.0:
dependencies:
binary-extensions "^2.0.0"
-is-core-module@^2.11.0:
- version "2.12.1"
- resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz"
- integrity sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==
+is-core-module@^2.13.0:
+ version "2.15.0"
+ resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.0.tgz"
+ integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA==
+ dependencies:
+ hasown "^2.0.2"
+
+is-date-object@^1.0.5:
+ version "1.0.5"
+ resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz"
+ integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==
dependencies:
- has "^1.0.3"
+ has-tostringtag "^1.0.0"
is-extglob@^2.1.1:
version "2.1.1"
resolved "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz"
integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==
+is-fullwidth-code-point@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz"
+ integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
+
is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
version "4.0.3"
resolved "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz"
@@ -659,10 +861,32 @@ is-number@^7.0.0:
resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
-jiti@^1.19.1:
- version "1.21.0"
- resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d"
- integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==
+is-regex@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz"
+ integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==
+ dependencies:
+ call-bind "^1.0.2"
+ has-tostringtag "^1.0.0"
+
+isexe@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz"
+ integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
+
+jackspeak@^3.1.2:
+ version "3.4.3"
+ resolved "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz"
+ integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==
+ dependencies:
+ "@isaacs/cliui" "^8.0.2"
+ optionalDependencies:
+ "@pkgjs/parseargs" "^0.11.0"
+
+jiti@^1.21.0:
+ version "1.21.6"
+ resolved "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz"
+ integrity sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==
json5@^1.0.1:
version "1.0.2"
@@ -676,11 +900,16 @@ just-extend@^5.0.0:
resolved "https://registry.npmjs.org/just-extend/-/just-extend-5.1.1.tgz"
integrity sha512-b+z6yF1d4EOyDgylzQo5IminlUmzSeqR1hs/bzjBNjuGras4FXq/6TrzjxfN0j+TmI0ltJzTNlqXUMCniciwKQ==
-lilconfig@^2.0.5, lilconfig@^2.1.0:
+lilconfig@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz"
integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==
+lilconfig@^3.0.0:
+ version "3.1.2"
+ resolved "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.2.tgz"
+ integrity sha512-eop+wDAvpItUys0FWkHIKeC9ybYrTGbU41U5K7+bttZZeohvnY7M9dZ5kB21GNWiFT2q1OoPTvncPCgSOVO5ow==
+
lines-and-columns@^1.1.6:
version "1.2.4"
resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz"
@@ -700,10 +929,20 @@ lodash.clonedeep@^4.5.0:
resolved "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz"
integrity sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==
-magic-string@^0.30.5:
- version "0.30.5"
- resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.5.tgz#1994d980bd1c8835dc6e78db7cbd4ae4f24746f9"
- integrity sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==
+lodash.isequal@^4.5.0:
+ version "4.5.0"
+ resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz"
+ integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==
+
+lru-cache@^10.2.0:
+ version "10.4.3"
+ resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz"
+ integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==
+
+magic-string@^0.30.10:
+ version "0.30.10"
+ resolved "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz"
+ integrity sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==
dependencies:
"@jridgewell/sourcemap-codec" "^1.4.15"
@@ -713,11 +952,11 @@ merge2@^1.3.0:
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
micromatch@^4.0.4, micromatch@^4.0.5:
- version "4.0.5"
- resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz"
- integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==
+ version "4.0.7"
+ resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz"
+ integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==
dependencies:
- braces "^3.0.2"
+ braces "^3.0.3"
picomatch "^2.3.1"
mini-svg-data-uri@^1.2.3:
@@ -725,18 +964,30 @@ mini-svg-data-uri@^1.2.3:
resolved "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz"
integrity sha512-r9deDe9p5FJUPZAk3A59wGH7Ii9YrjjWw0jmw/liSbHl2CHiyXj6FcDXDu2K3TjVAXqiJdaw3xxwlZZr9E6nHg==
-minimatch@^3.0.4, minimatch@^3.1.1:
+minimatch@^3.1.1:
version "3.1.2"
resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
+minimatch@^9.0.4:
+ version "9.0.5"
+ resolved "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz"
+ integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==
+ dependencies:
+ brace-expansion "^2.0.1"
+
minimist@^1.2.0:
version "1.2.8"
resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
+"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.1.2:
+ version "7.1.2"
+ resolved "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz"
+ integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==
+
mkdirp@~1.0.4:
version "1.0.4"
resolved "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz"
@@ -758,18 +1009,13 @@ mz@^2.7.0:
nanoid@^3.3.7:
version "3.3.7"
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
+ resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz"
integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
-nanoid@^3.3.7:
- version "3.3.7"
- resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
- integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
-
-node-releases@^2.0.13:
- version "2.0.13"
- resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz"
- integrity sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==
+node-releases@^2.0.14:
+ version "2.0.18"
+ resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.18.tgz"
+ integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==
normalize-path@^3.0.0, normalize-path@~3.0.0:
version "3.0.0"
@@ -791,6 +1037,19 @@ object-hash@^3.0.0:
resolved "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz"
integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==
+object-is@^1.1.5:
+ version "1.1.6"
+ resolved "https://registry.npmjs.org/object-is/-/object-is-1.1.6.tgz"
+ integrity sha512-F8cZ+KfGlSGi09lJT7/Nd6KJZ9ygtvYC0/UYYLI9nmQKLMnydpB9yvbv9K1uSkEu7FU9vYPmVwLg328tX+ot3Q==
+ dependencies:
+ call-bind "^1.0.7"
+ define-properties "^1.2.1"
+
+object-keys@^1.1.1:
+ version "1.1.1"
+ resolved "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz"
+ integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
+
once@^1.3.0:
version "1.4.0"
resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz"
@@ -798,20 +1057,43 @@ once@^1.3.0:
dependencies:
wrappy "1"
+package-json-from-dist@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz"
+ integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==
+
+parchment@^1.1.4:
+ version "1.1.4"
+ resolved "https://registry.npmjs.org/parchment/-/parchment-1.1.4.tgz"
+ integrity sha512-J5FBQt/pM2inLzg4hEWmzQx/8h8D0CiDxaG3vyp9rKrQRSDgBlhjdP5jQGgosEajXPSQouXGHOmVdgo7QmJuOg==
+
path-is-absolute@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz"
integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==
+path-key@^3.1.0:
+ version "3.1.1"
+ resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz"
+ integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==
+
path-parse@^1.0.7:
version "1.0.7"
resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz"
integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
-picocolors@^1.0.0:
- version "1.0.0"
- resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz"
- integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
+path-scurry@^1.11.1:
+ version "1.11.1"
+ resolved "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz"
+ integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==
+ dependencies:
+ lru-cache "^10.2.0"
+ minipass "^5.0.0 || ^6.0.2 || ^7.0.0"
+
+picocolors@^1.0.0, picocolors@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz"
+ integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==
picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1:
version "2.3.1"
@@ -825,7 +1107,7 @@ pify@^2.3.0:
pinia@^2.1.7:
version "2.1.7"
- resolved "https://registry.yarnpkg.com/pinia/-/pinia-2.1.7.tgz#4cf5420d9324ca00b7b4984d3fbf693222115bbc"
+ resolved "https://registry.npmjs.org/pinia/-/pinia-2.1.7.tgz"
integrity sha512-+C2AHFtcFqjPih0zpYuvof37SFxMQ7OEG2zV9jRI12i9BOy3YQVAHwdKtyyc8pDcDyIc33WCIsZaCFWU7WWxGQ==
dependencies:
"@vue/devtools-api" "^6.5.0"
@@ -853,24 +1135,24 @@ postcss-js@^4.0.1:
camelcase-css "^2.0.1"
postcss-load-config@^4.0.1:
- version "4.0.1"
- resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz"
- integrity sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==
+ version "4.0.2"
+ resolved "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz"
+ integrity sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==
dependencies:
- lilconfig "^2.0.5"
- yaml "^2.1.1"
+ lilconfig "^3.0.0"
+ yaml "^2.3.4"
postcss-nested@^6.0.1:
- version "6.0.1"
- resolved "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz"
- integrity sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==
+ version "6.2.0"
+ resolved "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz"
+ integrity sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==
dependencies:
- postcss-selector-parser "^6.0.11"
+ postcss-selector-parser "^6.1.1"
-postcss-selector-parser@^6.0.11:
- version "6.0.13"
- resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz"
- integrity sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==
+postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.1.1:
+ version "6.1.1"
+ resolved "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.1.tgz"
+ integrity sha512-b4dlw/9V8A71rLIDsSwVmak9z2DuBUB7CA1/wSdelNEzqsjoSPeADTWNO09lpH49Diy3/JIZ2bSPB1dI3LJCHg==
dependencies:
cssesc "^3.0.0"
util-deprecate "^1.0.2"
@@ -880,29 +1162,50 @@ postcss-value-parser@^4.0.0, postcss-value-parser@^4.2.0:
resolved "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz"
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
-postcss@^8.4.13, postcss@^8.4.23, postcss@^8.4.31, postcss@^8.4.32:
- version "8.4.32"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.32.tgz#1dac6ac51ab19adb21b8b34fd2d93a86440ef6c9"
- integrity sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==
- dependencies:
- nanoid "^3.3.7"
- picocolors "^1.0.0"
- source-map-js "^1.0.2"
-
-postcss@^8.4.32:
- version "8.4.32"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.32.tgz#1dac6ac51ab19adb21b8b34fd2d93a86440ef6c9"
- integrity sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==
+postcss@^8.0.0, postcss@^8.1.0, postcss@^8.2.14, postcss@^8.4.21, postcss@^8.4.23, postcss@^8.4.35, postcss@^8.4.39, postcss@>=8.0.9:
+ version "8.4.40"
+ resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.40.tgz"
+ integrity sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==
dependencies:
nanoid "^3.3.7"
- picocolors "^1.0.0"
- source-map-js "^1.0.2"
+ picocolors "^1.0.1"
+ source-map-js "^1.2.0"
queue-microtask@^1.2.2:
version "1.2.3"
resolved "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz"
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
+quill-delta@^3.6.2:
+ version "3.6.3"
+ resolved "https://registry.npmjs.org/quill-delta/-/quill-delta-3.6.3.tgz"
+ integrity sha512-wdIGBlcX13tCHOXGMVnnTVFtGRLoP0imqxM696fIPwIf5ODIYUHIvHbZcyvGlZFiFhK5XzDC2lpjbxRhnM05Tg==
+ dependencies:
+ deep-equal "^1.0.1"
+ extend "^3.0.2"
+ fast-diff "1.1.2"
+
+quill-delta@^4.2.2:
+ version "4.2.2"
+ resolved "https://registry.npmjs.org/quill-delta/-/quill-delta-4.2.2.tgz"
+ integrity sha512-qjbn82b/yJzOjstBgkhtBjN2TNK+ZHP/BgUQO+j6bRhWQQdmj2lH6hXG7+nwwLF41Xgn//7/83lxs9n2BkTtTg==
+ dependencies:
+ fast-diff "1.2.0"
+ lodash.clonedeep "^4.5.0"
+ lodash.isequal "^4.5.0"
+
+quill@^1.3.7:
+ version "1.3.7"
+ resolved "https://registry.npmjs.org/quill/-/quill-1.3.7.tgz"
+ integrity sha512-hG/DVzh/TiknWtE6QmWAF/pxoZKYxfe3J/d/+ShUWkDvvkZQVTPeVmUJVu1uE6DDooC4fWTiCLh84ul89oNz5g==
+ dependencies:
+ clone "^2.1.1"
+ deep-equal "^1.0.1"
+ eventemitter3 "^2.0.3"
+ extend "^3.0.2"
+ parchment "^1.1.4"
+ quill-delta "^3.6.2"
+
read-cache@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz"
@@ -917,17 +1220,27 @@ readdirp@~3.6.0:
dependencies:
picomatch "^2.2.1"
+regexp.prototype.flags@^1.5.1:
+ version "1.5.2"
+ resolved "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz"
+ integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==
+ dependencies:
+ call-bind "^1.0.6"
+ define-properties "^1.2.1"
+ es-errors "^1.3.0"
+ set-function-name "^2.0.1"
+
resolve-url@^0.2.1:
version "0.2.1"
resolved "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz"
integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==
-resolve@^1.1.7, resolve@^1.22.0, resolve@^1.22.2:
- version "1.22.2"
- resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz"
- integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==
+resolve@^1.1.7, resolve@^1.22.2:
+ version "1.22.8"
+ resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz"
+ integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
dependencies:
- is-core-module "^2.11.0"
+ is-core-module "^2.13.0"
path-parse "^1.0.7"
supports-preserve-symlinks-flag "^1.0.0"
@@ -936,11 +1249,29 @@ reusify@^1.0.4:
resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz"
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
-"rollup@>=2.59.0 <2.78.0":
- version "2.77.3"
- resolved "https://registry.npmjs.org/rollup/-/rollup-2.77.3.tgz"
- integrity sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g==
+rollup@^4.13.0:
+ version "4.19.0"
+ resolved "https://registry.npmjs.org/rollup/-/rollup-4.19.0.tgz"
+ integrity sha512-5r7EYSQIowHsK4eTZ0Y81qpZuJz+MUuYeqmmYmRMl1nwhdmbiYqt5jwzf6u7wyOzJgYqtCRMtVRKOtHANBz7rA==
+ dependencies:
+ "@types/estree" "1.0.5"
optionalDependencies:
+ "@rollup/rollup-android-arm-eabi" "4.19.0"
+ "@rollup/rollup-android-arm64" "4.19.0"
+ "@rollup/rollup-darwin-arm64" "4.19.0"
+ "@rollup/rollup-darwin-x64" "4.19.0"
+ "@rollup/rollup-linux-arm-gnueabihf" "4.19.0"
+ "@rollup/rollup-linux-arm-musleabihf" "4.19.0"
+ "@rollup/rollup-linux-arm64-gnu" "4.19.0"
+ "@rollup/rollup-linux-arm64-musl" "4.19.0"
+ "@rollup/rollup-linux-powerpc64le-gnu" "4.19.0"
+ "@rollup/rollup-linux-riscv64-gnu" "4.19.0"
+ "@rollup/rollup-linux-s390x-gnu" "4.19.0"
+ "@rollup/rollup-linux-x64-gnu" "4.19.0"
+ "@rollup/rollup-linux-x64-musl" "4.19.0"
+ "@rollup/rollup-win32-arm64-msvc" "4.19.0"
+ "@rollup/rollup-win32-ia32-msvc" "4.19.0"
+ "@rollup/rollup-win32-x64-msvc" "4.19.0"
fsevents "~2.3.2"
run-parallel@^1.1.9:
@@ -965,20 +1296,59 @@ semver@^6.3.0:
resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz"
integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==
+set-function-length@^1.2.1:
+ version "1.2.2"
+ resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz"
+ integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==
+ dependencies:
+ define-data-property "^1.1.4"
+ es-errors "^1.3.0"
+ function-bind "^1.1.2"
+ get-intrinsic "^1.2.4"
+ gopd "^1.0.1"
+ has-property-descriptors "^1.0.2"
+
+set-function-name@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz"
+ integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==
+ dependencies:
+ define-data-property "^1.1.4"
+ es-errors "^1.3.0"
+ functions-have-names "^1.2.3"
+ has-property-descriptors "^1.0.2"
+
+shebang-command@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz"
+ integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==
+ dependencies:
+ shebang-regex "^3.0.0"
+
+shebang-regex@^3.0.0:
+ version "3.0.0"
+ resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz"
+ integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
+
+signal-exit@^4.0.1:
+ version "4.1.0"
+ resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz"
+ integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==
+
+sortablejs@^1.15.2:
+ version "1.15.2"
+ resolved "https://registry.npmjs.org/sortablejs/-/sortablejs-1.15.2.tgz"
+ integrity sha512-FJF5jgdfvoKn1MAKSdGs33bIqLi3LmsgVTliuX6iITj834F+JRQZN90Z93yql8h0K2t0RwDPBmxwlbZfDcxNZA==
+
sortablejs@1.14.0:
version "1.14.0"
resolved "https://registry.npmjs.org/sortablejs/-/sortablejs-1.14.0.tgz"
integrity sha512-pBXvQCs5/33fdN1/39pPL0NZF20LeRbLQ5jtnheIPN9JQAaufGjKdWduZn4U7wCtVuzKhmRkI0DFYHYRbB2H1w==
-sortablejs@^1.15.1:
- version "1.15.1"
- resolved "https://registry.yarnpkg.com/sortablejs/-/sortablejs-1.15.1.tgz#9a35f52cdff449fb42ea8ecf222f3468d76e0a47"
- integrity sha512-P5Cjvb0UG1ZVNiDPj/n4V+DinttXG6K8n7vM/HQf0C25K3YKQTQY6fsr/sEGsJGpQ9exmPxluHxKBc0mLKU1lQ==
-
-source-map-js@^1.0.2:
- version "1.0.2"
- resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz"
- integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==
+source-map-js@^1.2.0:
+ version "1.2.0"
+ resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz"
+ integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==
source-map-resolve@^0.5.2:
version "0.5.3"
@@ -1006,6 +1376,54 @@ source-map@^0.7.3:
resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz"
integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==
+"string-width-cjs@npm:string-width@^4.2.0":
+ version "4.2.3"
+ resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^4.1.0:
+ version "4.2.3"
+ resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz"
+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
+ dependencies:
+ emoji-regex "^8.0.0"
+ is-fullwidth-code-point "^3.0.0"
+ strip-ansi "^6.0.1"
+
+string-width@^5.0.1, string-width@^5.1.2:
+ version "5.1.2"
+ resolved "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz"
+ integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==
+ dependencies:
+ eastasianwidth "^0.2.0"
+ emoji-regex "^9.2.2"
+ strip-ansi "^7.0.1"
+
+"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-ansi@^6.0.0, strip-ansi@^6.0.1:
+ version "6.0.1"
+ resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz"
+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
+ dependencies:
+ ansi-regex "^5.0.1"
+
+strip-ansi@^7.0.1:
+ version "7.1.0"
+ resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz"
+ integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==
+ dependencies:
+ ansi-regex "^6.0.1"
+
stylus-loader@~3.0.2:
version "3.0.2"
resolved "https://registry.npmjs.org/stylus-loader/-/stylus-loader-3.0.2.tgz"
@@ -1015,7 +1433,7 @@ stylus-loader@~3.0.2:
lodash.clonedeep "^4.5.0"
when "~3.6.x"
-stylus@~0.54.8:
+stylus@*, stylus@>=0.52.4, stylus@~0.54.8:
version "0.54.8"
resolved "https://registry.npmjs.org/stylus/-/stylus-0.54.8.tgz"
integrity sha512-vr54Or4BZ7pJafo2mpf0ZcwA74rpuYCZbxrHBsH8kbcXOwSfvBFwsRfpGO5OD5fhG5HDCFW737PKaawI7OqEAg==
@@ -1030,13 +1448,13 @@ stylus@~0.54.8:
source-map "^0.7.3"
sucrase@^3.32.0:
- version "3.34.0"
- resolved "https://registry.npmjs.org/sucrase/-/sucrase-3.34.0.tgz"
- integrity sha512-70/LQEZ07TEcxiU2dz51FKaE6hCTWC6vr7FOk3Gr0U60C3shtAN+H+BFr9XlYe5xqf3RA8nrc+VIwzCfnxuXJw==
+ version "3.35.0"
+ resolved "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz"
+ integrity sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==
dependencies:
"@jridgewell/gen-mapping" "^0.3.2"
commander "^4.0.0"
- glob "7.1.6"
+ glob "^10.3.10"
lines-and-columns "^1.1.6"
mz "^2.7.0"
pirates "^4.0.1"
@@ -1047,10 +1465,10 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
-tailwindcss@^3.4.0:
- version "3.4.0"
- resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.0.tgz#045a9c474e6885ebd0436354e611a76af1c76839"
- integrity sha512-VigzymniH77knD1dryXbyxR+ePHihHociZbXnLZHUyzf2MMs2ZVqlUrZ3FvpXP8pno9JzmILt1sZPD19M3IxtA==
+tailwindcss@^3.4.1, "tailwindcss@>=3.0.0 || >= 3.0.0-alpha.1":
+ version "3.4.6"
+ resolved "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.6.tgz"
+ integrity sha512-1uRHzPB+Vzu57ocybfZ4jh5Q3SdlH7XW23J5sQoM9LhE9eIOlzxer/3XPSsycvih3rboRsvt0QCmzSrqyOYUIA==
dependencies:
"@alloc/quick-lru" "^5.2.0"
arg "^5.0.2"
@@ -1060,7 +1478,7 @@ tailwindcss@^3.4.0:
fast-glob "^3.3.0"
glob-parent "^6.0.2"
is-glob "^4.0.3"
- jiti "^1.19.1"
+ jiti "^1.21.0"
lilconfig "^2.1.0"
micromatch "^4.0.5"
normalize-path "^3.0.0"
@@ -1100,9 +1518,9 @@ tinycolor2@^1.4.2:
integrity sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==
"tinymce@^6.0.0 || ^5.5.1":
- version "6.7.1"
- resolved "https://registry.npmjs.org/tinymce/-/tinymce-6.7.1.tgz"
- integrity sha512-SIGJgWk2d/X59VbO+i81QfNx2EP1P5t+sza2/1So3OLGtmMBhEJMag7sN/Mo8sq4s0niwb65Z51yLju32jP11g==
+ version "6.8.4"
+ resolved "https://registry.npmjs.org/tinymce/-/tinymce-6.8.4.tgz"
+ integrity sha512-okoJyxuPv1gzASxQDNgQbnUXOdAIyoOSXcXcZZu7tiW0PSKEdf3SdASxPBupRj+64/E3elHwVRnzSdo82Emqbg==
to-regex-range@^5.0.1:
version "5.0.1"
@@ -1116,13 +1534,13 @@ ts-interface-checker@^0.1.9:
resolved "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz"
integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==
-update-browserslist-db@^1.0.11:
- version "1.0.11"
- resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.11.tgz"
- integrity sha512-dCwEFf0/oT85M1fHBg4F0jtLwJrutGoHSQXCh7u4o2t1drG+c0a9Flnqww6XUKSfQMPpJBRjU8d4RXB09qtvaA==
+update-browserslist-db@^1.1.0:
+ version "1.1.0"
+ resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz"
+ integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ==
dependencies:
- escalade "^3.1.1"
- picocolors "^1.0.0"
+ escalade "^3.1.2"
+ picocolors "^1.0.1"
urix@^0.1.0:
version "0.1.0"
@@ -1139,45 +1557,44 @@ uuid@^9.0.1:
resolved "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz"
integrity sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==
-vite@^2.9.16:
- version "2.9.16"
- resolved "https://registry.npmjs.org/vite/-/vite-2.9.16.tgz"
- integrity sha512-X+6q8KPyeuBvTQV8AVSnKDvXoBMnTx8zxh54sOwmmuOdxkjMmEJXH2UEchA+vTMps1xw9vL64uwJOWryULg7nA==
+vite@^5.0.0, vite@^5.1.4:
+ version "5.3.5"
+ resolved "https://registry.npmjs.org/vite/-/vite-5.3.5.tgz"
+ integrity sha512-MdjglKR6AQXQb9JGiS7Rc2wC6uMjcm7Go/NHNO63EwiJXfuk9PgqiP/n5IDJCziMkfw9n4Ubp7lttNwz+8ZVKA==
dependencies:
- esbuild "^0.14.27"
- postcss "^8.4.13"
- resolve "^1.22.0"
- rollup ">=2.59.0 <2.78.0"
+ esbuild "^0.21.3"
+ postcss "^8.4.39"
+ rollup "^4.13.0"
optionalDependencies:
- fsevents "~2.3.2"
+ fsevents "~2.3.3"
vue-color-input@^1.0.8:
- version "1.0.8"
- resolved "https://registry.npmjs.org/vue-color-input/-/vue-color-input-1.0.8.tgz"
- integrity sha512-oGYv4utF7ihKrMw3l6tQMgTsaVF+y6oDd37nP8r8K5od8/nVG0p9HOme8IHgw6Q6P0Pa9d9zYmLqT0DWFEBHQA==
+ version "1.0.9"
+ resolved "https://registry.npmjs.org/vue-color-input/-/vue-color-input-1.0.9.tgz"
+ integrity sha512-nZUbcZ5NOxxhtVZLF1ik2R6pTQUngApiU2ByUSoEDuIBxRJgrP75jEkd9kIMap1HoL9AdEJBePmiLH+jKAFETw==
dependencies:
tinycolor2 "^1.4.2"
vue-demi@>=0.14.5:
- version "0.14.5"
- resolved "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.5.tgz"
- integrity sha512-o9NUVpl/YlsGJ7t+xuqJKx8EBGf1quRhCiT6D/J0pfwmk9zUwYkC7yrF4SZCe6fETvSM3UNL2edcbYrSyc4QHA==
+ version "0.14.9"
+ resolved "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.9.tgz"
+ integrity sha512-dC1TJMODGM8lxhP6wLToncaDPPNB3biVxxRDuNCYpuXwi70ou7NsGd97KVTJ2omepGId429JZt8oaZKeXbqxwg==
vue-feather@2:
version "2.0.0"
resolved "https://registry.npmjs.org/vue-feather/-/vue-feather-2.0.0.tgz"
integrity sha512-GBvxJWu2ycGTpB8duYWnc5S/TwWPPb2G5Ft2NbkwK1vZkUDUOTYqIb4Nh1HOL6A37Isfrd0Guun0lesS97PfxA==
-vue@^3.4.3:
- version "3.4.3"
- resolved "https://registry.yarnpkg.com/vue/-/vue-3.4.3.tgz#e1ba36a64134dcedc12cfb2c28e7cd15ba121f04"
- integrity sha512-GjN+culMAGv/mUbkIv8zMKItno8npcj5gWlXkSxf1SPTQf8eJ4A+YfHIvQFyL1IfuJcMl3soA7SmN1fRxbf/wA==
+"vue@^2.6.14 || ^3.3.0", "vue@^2.7.0 || ^3.0.0", vue@^3.0.0, "vue@^3.0.0-0 || ^2.6.0", vue@^3.0.1, vue@^3.0.5, vue@^3.2.0, vue@^3.2.25, vue@^3.2.41, vue@^3.4.19, "vue@>= 3", vue@>=3.2.0, vue@3.4.34:
+ version "3.4.34"
+ resolved "https://registry.npmjs.org/vue/-/vue-3.4.34.tgz"
+ integrity sha512-VZze05HWlA3ItreQ/ka7Sx7PoD0/3St8FEiSlSTVgb6l4hL+RjtP2/8g5WQBzZgyf8WG2f+g1bXzC7zggLhAJA==
dependencies:
- "@vue/compiler-dom" "3.4.3"
- "@vue/compiler-sfc" "3.4.3"
- "@vue/runtime-dom" "3.4.3"
- "@vue/server-renderer" "3.4.3"
- "@vue/shared" "3.4.3"
+ "@vue/compiler-dom" "3.4.34"
+ "@vue/compiler-sfc" "3.4.34"
+ "@vue/runtime-dom" "3.4.34"
+ "@vue/server-renderer" "3.4.34"
+ "@vue/shared" "3.4.34"
vuedraggable@^4.1.0:
version "4.1.0"
@@ -1191,12 +1608,37 @@ when@~3.6.x:
resolved "https://registry.npmjs.org/when/-/when-3.6.4.tgz"
integrity sha512-d1VUP9F96w664lKINMGeElWdhhb5sC+thXM+ydZGU3ZnaE09Wv6FaS+mpM9570kcDs/xMfcXJBTLsMdHEFYY9Q==
+which@^2.0.1:
+ version "2.0.2"
+ resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz"
+ integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
+ dependencies:
+ isexe "^2.0.0"
+
+"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz"
+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
+ dependencies:
+ ansi-styles "^4.0.0"
+ string-width "^4.1.0"
+ strip-ansi "^6.0.0"
+
+wrap-ansi@^8.1.0:
+ version "8.1.0"
+ resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz"
+ integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==
+ dependencies:
+ ansi-styles "^6.1.0"
+ string-width "^5.0.1"
+ strip-ansi "^7.0.1"
+
wrappy@1:
version "1.0.2"
resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz"
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
-yaml@^2.1.1:
- version "2.3.1"
- resolved "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz"
- integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==
+yaml@^2.3.4:
+ version "2.5.0"
+ resolved "https://registry.npmjs.org/yaml/-/yaml-2.5.0.tgz"
+ integrity sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==
diff --git a/classes/BlockPresenter.php b/classes/BlockPresenter.php
index 2dba14f1..a2b9dee0 100644
--- a/classes/BlockPresenter.php
+++ b/classes/BlockPresenter.php
@@ -33,6 +33,8 @@ public function present($block)
'id_prettyblocks' => $block['id_prettyblocks'],
'templateSelected' => $block['templateSelected'],
'templates' => $block['templates'],
+ 'classes' => $block['classes'],
+ 'styles' => $block['styles'],
];
return $present;
diff --git a/classes/HelperBuilder.php b/classes/HelperBuilder.php
index 55963f3e..922faa59 100644
--- a/classes/HelperBuilder.php
+++ b/classes/HelperBuilder.php
@@ -1,6 +1,10 @@
select('COUNT(*)');
+ $query->from('prettyblocks');
+ $query->where('zone_name = "' . pSQL($zone_name) . '"');
+ $query->where('id_lang = ' . (int) $contextPS->language->id);
+ $query->where('id_shop = ' . (int) $contextPS->shop->id);
+ $count = Db::getInstance()->getValue($query);
+
+ // Fin de la sélection
+ return $count > 0;
+ }
+
+ /**
+ * Merge 2 array recusivly
+ *
+ * @param $array1 will receive data fomr $array2
+ * @param $array2 array to merge in $array1
+ *
+ * @return void
+ */
+ public static function mergeArraysRecursively(&$array1, $array2)
+ {
+ foreach ($array2 as $key => $value) {
+ if (isset($array1[$key]) && is_array($array1[$key]) && is_array($value)) {
+ HelperBuilder::mergeArraysRecursively($array1[$key], $value);
+ } else {
+ $array1[$key] = $value;
+ }
+ }
+ }
+
+ /**
+ * Get products from category
+ *
+ * @param int $id_category
+ * @param int $nProducts
+ *
+ * @return array
+ */
+ public static function getProductsCategory($id_category, $nProducts = 8)
+ {
+ $context = Context::getContext();
+ $category = new Category((int) $id_category);
+
+ $searchProvider = new CategoryProductSearchProvider(
+ $context->getTranslator(),
+ $category
+ );
+
+ $searchContext = new ProductSearchContext($context);
+
+ $query = new ProductSearchQuery();
+
+ $query
+ ->setResultsPerPage($nProducts)
+ ->setPage(1);
+
+ $query->setSortOrder(new SortOrder('product', 'position', 'asc'));
+
+ $result = $searchProvider->runQuery(
+ $searchContext,
+ $query
+ );
+
+ $assembler = new ProductAssembler($context);
+ $presenterFactory = new ProductPresenterFactory($context);
+ $presentationSettings = $presenterFactory->getPresentationSettings();
+ $presenter = $presenterFactory->getPresenter();
+
+ $products_for_template = [];
+
+ foreach ($result->getProducts() as $rawProduct) {
+ $products_for_template[] = $presenter->present(
+ $presentationSettings,
+ $assembler->assembleProduct($rawProduct),
+ $context->language
+ );
+ }
+
+ return $products_for_template;
+ }
+
+ /**
+ * Generate css classes for blocks spacings
+ * classes are imported from tailwindcss with tw_ prefix by default
+ * ex: tw_xs_p-10 tw_md_p-20 tw_lg_p-30
+ *
+ * @see tailwindimport.tpl
+ *
+ * @param array $values
+ * @param string $type
+ *
+ * @return string
+ */
+ public static function generateBlocksSpacings($values, $type = 'paddings')
+ {
+ $cssClasses = '';
+ $stylesCss = '';
+ // mobile first : mobile / tablet / desktop
+ $devices = [
+ 'mobile' => '',
+ 'tablet' => 'lg:',
+ 'desktop' => 'xl:',
+ ];
+ $sides = ['top', 'right', 'bottom', 'left'];
+
+ $alias = [
+ 'paddings' => 'padding',
+ 'margins' => 'margin',
+ ];
+ $classesPrefix = [];
+ $stylesArray = [];
+ foreach ($devices as $device => $prefix) {
+ if (isset($values[$device]['use_custom_data']) && $values[$device]['use_custom_data'] == true) {
+ // generate styles
+ foreach ($sides as $side) {
+ $value = $values[$device][$side];
+ if ($value !== '') {
+ if (!preg_match('/(px|rem|em|%|vh|vw|vmin|vmax)$/', $value)) {
+ $value .= 'px';
+ }
+ $stylesArray[$device][$side] = $alias[$type] . '-' . $side . ':' . $value;
+ }
+ }
+ } else {
+ // generate classes
+ foreach ($sides as $side) {
+ $value = $values[$device][$side];
+ // return a format for tailwindcss prefixed with tw_ ex: _xs_t-10
+ if ($value !== '' && $value !== null) {
+ $classesPrefix[$device][$side] = $prefix . 'tw_' . substr($type, 0, 1) . substr($side, 0, 1) . '-' . $value;
+ }
+ }
+ }
+ }
+
+ foreach ($devices as $breakpoint => $prefix) {
+ if (!empty($classesPrefix[$breakpoint])) {
+ $cssClasses .= implode(' ', $classesPrefix[$breakpoint]) . ' ';
+ }
+ }
+
+ foreach ($devices as $breakpoint => $prefix) {
+ if (!empty($stylesArray[$breakpoint])) {
+ $pfx = rtrim($prefix, ':');
+ if ($pfx == '') {
+ $pfx = 'sm';
+ }
+ $style = 'style-' . $pfx;
+ $stylesCss .= $style . '=' . implode(';', $stylesArray[$breakpoint]) . ' ';
+ }
+ }
+
+ return [
+ 'classes' => rtrim($cssClasses),
+ 'styles' => $stylesCss,
+ ];
+ }
}
diff --git a/classes/PrettyBlocksMigrate.php b/classes/PrettyBlocksMigrate.php
index 9f6f2472..8ae584cf 100644
--- a/classes/PrettyBlocksMigrate.php
+++ b/classes/PrettyBlocksMigrate.php
@@ -111,25 +111,14 @@ public static function migrateLangTable()
Db::getInstance()->execute($sql);
}
- $blocks_lang = Db::getInstance()->executeS('SELECT * FROM ' . _DB_PREFIX_ . 'prettyblocks_lang');
+ $blocks_lang = Db::getInstance()->executeS('SELECT ' . _DB_PREFIX_ . 'prettyblocks_lang.* FROM ' . _DB_PREFIX_ . 'prettyblocks_lang INNER JOIN ' . _DB_PREFIX_ . 'prettyblocks ON ' . _DB_PREFIX_ . 'prettyblocks_lang.id_prettyblocks = ' . _DB_PREFIX_ . 'prettyblocks.id_prettyblocks');
+
foreach ($blocks_lang as $block) {
- $existingBlock = new PrettyBlocksModel($block['id_prettyblocks']);
- $newBlocks = new PrettyBlocksModel();
- $newBlocks->instance_id = $existingBlock->instance_id;
- $newBlocks->id_shop = (int) $block['id_shop'];
- $newBlocks->id_lang = (int) $block['id_lang'];
- $newBlocks->state = $block['state'];
- $newBlocks->code = $existingBlock->code;
- $newBlocks->zone_name = $existingBlock->zone_name;
- $newBlocks->position = $existingBlock->position;
-
- $newBlocks->name = $existingBlock->name;
- $newBlocks->config = $existingBlock->config;
- $newBlocks->template = $existingBlock->template;
- $newBlocks->default_params = $existingBlock->default_params;
- $newBlocks->save();
-
- $existingBlock->delete();
+ Db::getInstance()->update('prettyblocks', [
+ 'id_shop' => (int) $block['id_shop'],
+ 'id_lang' => (int) $block['id_lang'],
+ 'state' => pSQL($block['state']),
+ ], 'id_prettyblocks = ' . $block['id_prettyblocks']);
}
$sql = 'DROP TABLE IF EXISTS ' . _DB_PREFIX_ . 'prettyblocks_lang';
diff --git a/classes/PrettyBlocksModel.php b/classes/PrettyBlocksModel.php
index dbce8333..9e610d83 100644
--- a/classes/PrettyBlocksModel.php
+++ b/classes/PrettyBlocksModel.php
@@ -236,6 +236,34 @@ public function mergeStateWithFields()
$block['id_lang'] = $this->id_lang;
$block['code'] = $this->code;
$block['settings'] = $this->_formatGetConfig($block);
+
+ $paddings = (isset($block['settings']['default']['paddings'])) ? HelperBuilder::generateBlocksSpacings($block['settings']['default']['paddings'], 'paddings')['classes'] : '';
+ $margins = (isset($block['settings']['default']['margins'])) ? HelperBuilder::generateBlocksSpacings($block['settings']['default']['margins'], 'margins')['classes'] : '';
+
+ $paddingStyles = (isset($block['settings']['default']['paddings'])) ? HelperBuilder::generateBlocksSpacings($block['settings']['default']['paddings'], 'paddings')['styles'] : '';
+ $marginStyles = (isset($block['settings']['default']['margins'])) ? HelperBuilder::generateBlocksSpacings($block['settings']['default']['margins'], 'margins')['styles'] : '';
+ // if($block['id_prettyblocks'] == 51) {
+ // dump(HelperBuilder::generateBlocksSpacings($block['settings']['default']['paddings'], 'paddings'));
+ // dump(HelperBuilder::generateBlocksSpacings($block['settings']['default']['margins'], 'margins'));
+ // die();
+ // }
+
+ $block['classes'] = '';
+ if ($paddings !== '') {
+ $block['classes'] .= $paddings;
+ }
+ if ($margins !== '') {
+ $block['classes'] .= ' ' . $margins;
+ }
+
+ $block['styles'] = '';
+ if ($paddingStyles !== '') {
+ $block['styles'] .= $paddingStyles;
+ }
+ if ($marginStyles !== '') {
+ $block['styles'] .= ' ' . $marginStyles;
+ }
+
$block['settings_formatted'] = $this->_formatConfig($block, 'back');
$block['repeater_db'] = $this->_formatRepeaterDb($states, $repeaterDefault);
@@ -251,11 +279,16 @@ public function mergeStateWithFields()
'settings' => $block['settings'],
], null, true);
$res = [];
+
if (is_array($extraContent)) {
foreach ($extraContent as $moduleName => $additionnalFormFields) {
$res = $additionnalFormFields;
}
}
+ if (isset($res['config'])) {
+ HelperBuilder::mergeArraysRecursively($block['config'], $res['config']);
+ $block['settings_formatted'] = $this->_formatConfig($block, 'back');
+ }
$block['extra'] = $res;
$block['templates'] = $this->_getBlockTemplate($block);
@@ -272,6 +305,7 @@ public function _formatConfig($block, $context = 'front')
foreach ($this->configFields as $name => $field) {
$formatted[$name] = (new FieldCore($field))->compile();
}
+
// is settings_formatted section block
$formatted['templates'] = $this->_getBlockTemplate($block);
$formatted['templateSelected'] = $this->_getTemplateSelected($block);
@@ -584,9 +618,63 @@ private function _getBlockTemplate($block)
private function _getDefaultParams($block)
{
$options = [
- 'container' => true,
+ 'container' => false,
+ 'force_full_width' => false,
'load_ajax' => false,
+ 'is_cached' => false,
'bg_color' => '',
+ 'paddings' => [
+ 'desktop' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ 'tablet' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ 'mobile' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ ],
+ 'margins' => [
+ 'desktop' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ 'tablet' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ 'mobile' => [
+ 'auto' => 0,
+ 'top' => null,
+ 'right' => null,
+ 'bottom' => null,
+ 'left' => null,
+ 'use_custom_data' => false,
+ ],
+ ],
];
$defaultParams = $this->getDefaultParams();
if (!$defaultParams) {
@@ -701,6 +789,7 @@ public static function getBlocksAvailable()
private static function formatBlock($block)
{
$formatted = [];
+
$id = (isset($block['id_prettyblocks'])) ? '-' . $block['id_prettyblocks'] : '';
$formatted['id'] = $block['code'] . $id;
$formatted['id_prettyblocks'] = $block['id_prettyblocks'] ?? '';
@@ -921,13 +1010,18 @@ public function add($auto_date = true, $null_values = false)
*/
public static function getThemeSettings($with_tabs = true, $context = 'front', $id_shop = null)
{
- $context = Context::getContext();
- $id_shop = ($id_shop !== null) ? (int) $id_shop : $context->shop->id;
+ $contextPS = Context::getContext();
+ $id_shop = ($id_shop !== null) ? (int) $id_shop : $contextPS->shop->id;
$theme_settings = HelperBuilder::hookToArray('ActionRegisterThemeSettings');
- $settingsDB = PrettyBlocksSettingsModel::getSettings($context->shop->theme_name, $id_shop);
+ $settingsDB = PrettyBlocksSettingsModel::getSettings($contextPS->shop->theme_name, $id_shop);
$res = [];
$no_tabs = [];
+
foreach ($theme_settings as $key => $settings) {
+ if (isset($settings['private']) && $settings['private'] === true && $context == 'front') {
+ continue;
+ }
+
$tab = $settings['tab'] ?? 'general';
$fieldCore = (new FieldCore($settings));
if (isset($settingsDB[$key]['value'])) {
diff --git a/classes/TplSettings.php b/classes/TplSettings.php
index 6a21e2b1..2ca3cb99 100644
--- a/classes/TplSettings.php
+++ b/classes/TplSettings.php
@@ -22,8 +22,8 @@ class TplSettings
public static function getSettings($key, $default = '')
{
$smarty_vars = self::getVars();
- $result = (isset($smarty_vars['prettyblocks']['theme_settings'][$key]))
- ? $smarty_vars['prettyblocks']['theme_settings'][$key]
+ $result = (isset($smarty_vars[$key]))
+ ? $smarty_vars[$key]
: $default;
return $result;
@@ -33,9 +33,7 @@ public static function getVars()
{
$cache_id = 'PrettyBlocks::getVars';
if (!Cache::isStored($cache_id)) {
- // $smarty_vars = Context::getContext()->smarty->getTemplateVars();
- $smarty_vars = Hook::exec('ActionFrontControllerSetVariables', [], null, true);
- // dump($smarty_vars);
+ $smarty_vars = PrettyBlocksModel::getThemeSettings(false);
Cache::store($cache_id, $smarty_vars);
}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksCategoryDescriptionBlock.php b/classes/prettyblocks/blocks/PrettyBlocksCategoryDescriptionBlock.php
new file mode 100644
index 00000000..e71970e6
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksCategoryDescriptionBlock.php
@@ -0,0 +1,48 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksCategoryDescriptionBlock implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Category description block'),
+ 'description' => $this->module->l('Render category description in a block'),
+ 'code' => 'prettyblocks_category_description',
+ 'tab' => 'product',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/category/category_description_block.tpl',
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksCmsContentBlock.php b/classes/prettyblocks/blocks/PrettyBlocksCmsContentBlock.php
new file mode 100644
index 00000000..f50e1056
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksCmsContentBlock.php
@@ -0,0 +1,48 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksCmsContentBlock implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Cms content block'),
+ 'description' => $this->module->l('Render CMS description in a block'),
+ 'code' => 'prettyblocks_cms_content',
+ 'tab' => 'product',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/cms/cms_content_block.tpl',
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksCustomImage.php b/classes/prettyblocks/blocks/PrettyBlocksCustomImage.php
new file mode 100644
index 00000000..fa965d9d
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksCustomImage.php
@@ -0,0 +1,74 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksCustomImage implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ $context = Context::getContext();
+
+ return [
+ 'name' => $this->module->l('PrettyBlocks Custom Image Block'),
+ 'description' => $this->module->l('Display custom text anywhere'),
+ 'code' => 'prettyblocks_custom_image_block', // unique code
+ 'tab' => 'general', // for future use
+ 'icon' => 'DocumentTextIcon', // heroicons v2
+ 'insert_default_values' => true, // insert default values on new block
+ 'need_reload' => false, // reload iframe on save
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/customimage/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'image' => [
+ 'type' => 'fileupload',
+ 'force_default_value' => true,
+ 'label' => $this->module->l('Image first banner'),
+ 'path' => '$/modules/' . $this->module->name . '/views/images/',
+ 'default' => [
+ 'url' => 'https://placehold.co/600x400',
+ ],
+ ],
+
+ 'alignment' => [
+ 'type' => 'select',
+ 'label' => $this->module->l('Choose alignment'),
+ 'default' => 'left',
+ 'choices' => [
+ 'left' => 'left',
+ 'center' => 'center',
+ 'right' => 'right',
+ ],
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksCustomText.php b/classes/prettyblocks/blocks/PrettyBlocksCustomText.php
new file mode 100644
index 00000000..4df8db62
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksCustomText.php
@@ -0,0 +1,57 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksCustomText implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks custom text'),
+ 'description' => $this->module->l('Render a simple custom text block'),
+ 'code' => 'prettyblocks_custom_text',
+ 'tab' => 'sliders',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/custom_text/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'content' => [
+ 'type' => 'editor',
+ 'label' => $this->module->l('Content'),
+ 'default' => ' lorem ipsum
',
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksFAQ.php b/classes/prettyblocks/blocks/PrettyBlocksFAQ.php
new file mode 100644
index 00000000..6c6fc51a
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksFAQ.php
@@ -0,0 +1,74 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksFAQ implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks FAQ Block'),
+ 'description' => $this->module->l('Render a simple faq'),
+ 'code' => 'prettyblocks_faq',
+ 'tab' => 'sliders',
+ 'icon' => 'RectangleStackIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/faq/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'title' => [
+ 'type' => 'text',
+ 'label' => $this->module->l('Title'),
+ 'default' => 'FAQ',
+ ],
+ ],
+ ],
+
+ 'repeater' => [
+ 'name' => 'Q&A',
+ 'nameFrom' => 'question',
+ 'groups' => [
+ 'question' => [
+ 'type' => 'text',
+ 'label' => $this->module->l('Question'),
+ 'default' => 'Question',
+ ],
+ 'answer' => [
+ 'type' => 'editor',
+ 'label' => $this->module->l('Answer'),
+ 'default' => 'Answer
',
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksFeaturedProducts.php b/classes/prettyblocks/blocks/PrettyBlocksFeaturedProducts.php
new file mode 100644
index 00000000..3c47035d
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksFeaturedProducts.php
@@ -0,0 +1,78 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksFeaturedProducts implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Featured products blocks'),
+ 'description' => $this->module->l('Render featured block'),
+ 'code' => 'prettyblocks_featured_product',
+ 'tab' => 'general',
+ 'icon' => 'GiftIcon',
+ 'need_reload' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/featured_products/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'category' => [
+ 'type' => 'selector',
+ 'label' => 'Category',
+ 'collection' => 'Category',
+ 'default' => HelperBuilder::getRandomCategory(Context::getContext()->language->id, Context::getContext()->shop->id),
+ 'selector' => '{id} - {name}',
+ ],
+ 'number' => [
+ 'type' => 'text',
+ 'label' => $this->module->l('Number of products'),
+ 'default' => 8,
+ ],
+ 'title' => [
+ 'type' => 'text',
+ 'default' => $this->module->l('Our products'),
+ 'label' => 'Title to display',
+ ],
+ 'display_title' => [
+ 'type' => 'checkbox',
+ 'default' => true,
+ 'label' => $this->module->l('Display title of block'),
+ ],
+ 'display_link' => [
+ 'type' => 'checkbox',
+ 'default' => true,
+ 'label' => $this->module->l('Display links to category'),
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionBlock.php b/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionBlock.php
new file mode 100644
index 00000000..bd86014b
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionBlock.php
@@ -0,0 +1,48 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksProductDescriptionBlock implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Product description block'),
+ 'description' => $this->module->l('Render product description in a block'),
+ 'code' => 'prettyblocks_product_description',
+ 'tab' => 'product',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/products/product_description_block.tpl',
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionShortBlock.php b/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionShortBlock.php
new file mode 100644
index 00000000..6846d91a
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksProductDescriptionShortBlock.php
@@ -0,0 +1,48 @@
+
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksProductDescriptionShortBlock implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Product description short block'),
+ 'description' => $this->module->l('Render product description short in a block'),
+ 'code' => 'prettyblocks_product_description_short',
+ 'tab' => 'product',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => false,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/products/product_description_short_block.tpl',
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksRenderHook.php b/classes/prettyblocks/blocks/PrettyBlocksRenderHook.php
new file mode 100644
index 00000000..72778f5a
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksRenderHook.php
@@ -0,0 +1,57 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksRenderHook implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Render Hook'),
+ 'description' => $this->module->l('Render any hook'),
+ 'code' => 'prettyblocks_render_hook',
+ 'tab' => 'general',
+ 'icon' => 'CommandLineIcon',
+ 'insert_default_values' => true,
+ 'need_reload' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/renderhook/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'hook_name' => [
+ 'type' => 'text', // type of field
+ 'label' => $this->module->l('Hook to render'),
+ 'default' => '',
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksRenderModule.php b/classes/prettyblocks/blocks/PrettyBlocksRenderModule.php
new file mode 100644
index 00000000..cc2a7b6e
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksRenderModule.php
@@ -0,0 +1,57 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksRenderModule implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Render Module'),
+ 'description' => $this->module->l('Render any module'),
+ 'code' => 'prettyblocks_render_module',
+ 'tab' => 'general',
+ 'icon' => 'CommandLineIcon',
+ 'insert_default_values' => true,
+ 'need_reload' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/rendermodule/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'module_name' => [
+ 'type' => 'text', // type of field
+ 'label' => $this->module->l('Module to render'),
+ 'default' => '',
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksTinySlider.php b/classes/prettyblocks/blocks/PrettyBlocksTinySlider.php
new file mode 100644
index 00000000..1e62d980
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksTinySlider.php
@@ -0,0 +1,68 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksTinySlider implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Tiny Slider'),
+ 'description' => $this->module->l('Render a simple and nice slider'),
+ 'code' => 'prettyblocks_tiny_slider',
+ 'tab' => 'sliders',
+ 'icon' => 'RectangleStackIcon',
+ 'need_reload' => true,
+ 'insert_default_values' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/tinyslider/default.tpl',
+ ],
+
+ 'repeater' => [
+ 'name' => 'Slides',
+ 'nameFrom' => 'alt_image',
+ 'groups' => [
+ 'image' => [
+ 'type' => 'fileupload',
+ 'label' => $this->module->l('File upload'),
+ 'path' => '$/modules/' . $this->module->name . '/views/images/',
+ 'default' => [
+ 'url' => 'https://placehold.co/1110x522',
+ ],
+ ],
+ 'alt_image' => [
+ 'type' => 'text',
+ 'label' => $this->module->l('Image Alt'),
+ 'default' => 'Image alt',
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/PrettyBlocksTitle.php b/classes/prettyblocks/blocks/PrettyBlocksTitle.php
new file mode 100644
index 00000000..97bf022c
--- /dev/null
+++ b/classes/prettyblocks/blocks/PrettyBlocksTitle.php
@@ -0,0 +1,74 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+
+use PrestaSafe\PrettyBlocks\Interfaces\BlockInterface;
+
+class PrettyBlocksTitle implements BlockInterface
+{
+ private $module;
+
+ public function __construct($module)
+ {
+ $this->module = $module;
+ }
+
+ public function registerBlocks(): array
+ {
+ return [
+ 'name' => $this->module->l('PrettyBlocks Title blocks'),
+ 'description' => $this->module->l('Render title block'),
+ 'code' => 'prettyblocks_title',
+ 'tab' => 'general',
+ 'icon' => 'DocumentTextIcon',
+ 'need_reload' => true,
+ 'templates' => [
+ 'default' => 'module:' . $this->module->name . '/views/templates/blocks/title/default.tpl',
+ ],
+ 'config' => [
+ 'fields' => [
+ 'tag' => [
+ 'type' => 'select', // type of field
+ 'label' => $this->module->l('Choose a tag'), // label to display
+ 'default' => 'h2', // default value (String)
+ 'choices' => [
+ 'h1' => 'h1',
+ 'h2' => 'h2',
+ 'h3' => 'h3',
+ 'h4' => 'h4',
+ 'h5' => 'h5',
+ 'h6' => 'h6',
+ ],
+ ],
+ 'title' => [
+ 'type' => 'text',
+ 'default' => $this->module->l('Your title'),
+ 'label' => $this->module->l('You can use HTML tags to customize your title.'),
+ ],
+ 'classes' => [
+ 'type' => 'text',
+ 'default' => '',
+ 'label' => $this->module->l('Add classes to your title'),
+ ],
+ ],
+ ],
+ ];
+ }
+}
diff --git a/classes/prettyblocks/blocks/index.php b/classes/prettyblocks/blocks/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/classes/prettyblocks/blocks/index.php
@@ -0,0 +1,11 @@
+type) {
$data['type'] = $this->type;
}
+ if ($this->legend) {
+ $data['legend'] = $this->legend;
+ }
+ if ($this->provider) {
+ $data['provider'] = $this->provider;
+ }
if ($this->label) {
$data['label'] = $this->label;
}
@@ -140,6 +149,9 @@ public function compile()
if ($this->force_default_value) {
$data['force_default_value'] = $this->force_default_value;
}
+ if ($this->options) {
+ $data['options'] = $this->options;
+ }
$data['value'] = $this->format();
@@ -192,7 +204,6 @@ public function getFormattedValue()
public function format()
{
$method = 'formatField' . ucwords(str_replace('_', '', $this->type));
-
if (method_exists($this, $method)) {
return $this->{$method}();
}
@@ -223,6 +234,59 @@ public function formatForFront()
|
*/
+ /**
+ * formatFieldSlider
+ * use for display field type slider in PrettyBlocks
+ *
+ * @return int
+ */
+ public function formatFieldSlider()
+ {
+ // if value exists in DB and new_value is empty
+ if (!is_null($this->value) && is_null($this->new_value)) {
+ return (int) $this->value;
+ }
+ // if value doesn't exists in DB and new value is set
+ if ($this->force_default_value && is_null($this->new_value)) {
+ return (int) $this->default;
+ }
+
+ return (int) $this->new_value;
+ }
+
+ /**
+ * formatFieldDatePicker
+ *
+ * @return DateTime
+ */
+ public function formatFieldDatepicker()
+ {
+ $format = 'Y-m-d';
+ // if(isset($this->options['dateFormat'])) {
+ // $format = $this->options['dateFormat'];
+ // }
+ // if value exists in DB and new_value is empty
+ if (!is_null($this->value) && is_null($this->new_value)) {
+ $date = \DateTime::createFromFormat($format, $this->value);
+
+ return $date ? $date->format($format) : date($format);
+ }
+ // if value doesn't exists in DB and new value is set
+ if ($this->force_default_value && is_null($this->new_value)) {
+ $date = \DateTime::createFromFormat($format, $this->default);
+
+ return $date ? $date->format($format) : date($format);
+ }
+
+ // Y-m-d\TH:i:s.u\Z is vuedatepicker default format
+ $date = \DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $this->new_value);
+ if (!$date) {
+ $date = \DateTime::createFromFormat($format, $this->new_value);
+ }
+
+ return $date ? $date->format($format) : date($format);
+ }
+
/**
* formatFieldTitle
*
diff --git a/composer.lock b/composer.lock
index 66d29250..b5f99503 100644
--- a/composer.lock
+++ b/composer.lock
@@ -8,16 +8,16 @@
"packages": [
{
"name": "scssphp/scssphp",
- "version": "v1.12.0",
+ "version": "v1.12.1",
"source": {
"type": "git",
"url": "https://github.com/scssphp/scssphp.git",
- "reference": "a6b20c170ddb95f116b3d148a466a7bed1e85c35"
+ "reference": "394ed1e960138710a60d035c1a85d43d0bf0faeb"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/scssphp/scssphp/zipball/a6b20c170ddb95f116b3d148a466a7bed1e85c35",
- "reference": "a6b20c170ddb95f116b3d148a466a7bed1e85c35",
+ "url": "https://api.github.com/repos/scssphp/scssphp/zipball/394ed1e960138710a60d035c1a85d43d0bf0faeb",
+ "reference": "394ed1e960138710a60d035c1a85d43d0bf0faeb",
"shasum": ""
},
"require": {
@@ -82,24 +82,24 @@
],
"support": {
"issues": "https://github.com/scssphp/scssphp/issues",
- "source": "https://github.com/scssphp/scssphp/tree/v1.12.0"
+ "source": "https://github.com/scssphp/scssphp/tree/v1.12.1"
},
- "time": "2023-11-14T14:56:09+00:00"
+ "time": "2024-01-13T12:36:40+00:00"
}
],
"packages-dev": [
{
"name": "composer/pcre",
- "version": "3.1.1",
+ "version": "3.1.3",
"source": {
"type": "git",
"url": "https://github.com/composer/pcre.git",
- "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9"
+ "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/pcre/zipball/00104306927c7a0919b4ced2aaa6782c1e61a3c9",
- "reference": "00104306927c7a0919b4ced2aaa6782c1e61a3c9",
+ "url": "https://api.github.com/repos/composer/pcre/zipball/5b16e25a5355f1f3afdfc2f954a0a80aec4826a8",
+ "reference": "5b16e25a5355f1f3afdfc2f954a0a80aec4826a8",
"shasum": ""
},
"require": {
@@ -141,7 +141,7 @@
],
"support": {
"issues": "https://github.com/composer/pcre/issues",
- "source": "https://github.com/composer/pcre/tree/3.1.1"
+ "source": "https://github.com/composer/pcre/tree/3.1.3"
},
"funding": [
{
@@ -157,7 +157,7 @@
"type": "tidelift"
}
],
- "time": "2023-10-11T07:11:09+00:00"
+ "time": "2024-03-19T10:26:25+00:00"
},
{
"name": "composer/semver",
@@ -242,16 +242,16 @@
},
{
"name": "composer/xdebug-handler",
- "version": "3.0.3",
+ "version": "3.0.4",
"source": {
"type": "git",
"url": "https://github.com/composer/xdebug-handler.git",
- "reference": "ced299686f41dce890debac69273b47ffe98a40c"
+ "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c",
- "reference": "ced299686f41dce890debac69273b47ffe98a40c",
+ "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/4f988f8fdf580d53bdb2d1278fe93d1ed5462255",
+ "reference": "4f988f8fdf580d53bdb2d1278fe93d1ed5462255",
"shasum": ""
},
"require": {
@@ -262,7 +262,7 @@
"require-dev": {
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-strict-rules": "^1.1",
- "symfony/phpunit-bridge": "^6.0"
+ "phpunit/phpunit": "^8.5 || ^9.6 || ^10.5"
},
"type": "library",
"autoload": {
@@ -286,9 +286,9 @@
"performance"
],
"support": {
- "irc": "irc://irc.freenode.org/composer",
+ "irc": "ircs://irc.libera.chat:6697/composer",
"issues": "https://github.com/composer/xdebug-handler/issues",
- "source": "https://github.com/composer/xdebug-handler/tree/3.0.3"
+ "source": "https://github.com/composer/xdebug-handler/tree/3.0.4"
},
"funding": [
{
@@ -304,54 +304,54 @@
"type": "tidelift"
}
],
- "time": "2022-02-25T21:32:43+00:00"
+ "time": "2024-03-26T18:29:49+00:00"
},
{
"name": "friendsofphp/php-cs-fixer",
- "version": "v3.38.0",
+ "version": "v3.55.0",
"source": {
"type": "git",
"url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git",
- "reference": "7e6070026e76aa09d77a47519625c86593fb8e31"
+ "reference": "c9eeacb559bfa0bcc7f778cfb7b42715c83d2c7e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/7e6070026e76aa09d77a47519625c86593fb8e31",
- "reference": "7e6070026e76aa09d77a47519625c86593fb8e31",
+ "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/c9eeacb559bfa0bcc7f778cfb7b42715c83d2c7e",
+ "reference": "c9eeacb559bfa0bcc7f778cfb7b42715c83d2c7e",
"shasum": ""
},
"require": {
- "composer/semver": "^3.3",
+ "composer/semver": "^3.4",
"composer/xdebug-handler": "^3.0.3",
+ "ext-filter": "*",
"ext-json": "*",
"ext-tokenizer": "*",
"php": "^7.4 || ^8.0",
- "sebastian/diff": "^4.0 || ^5.0",
- "symfony/console": "^5.4 || ^6.0",
- "symfony/event-dispatcher": "^5.4 || ^6.0",
- "symfony/filesystem": "^5.4 || ^6.0",
- "symfony/finder": "^5.4 || ^6.0",
- "symfony/options-resolver": "^5.4 || ^6.0",
- "symfony/polyfill-mbstring": "^1.27",
- "symfony/polyfill-php80": "^1.27",
- "symfony/polyfill-php81": "^1.27",
- "symfony/process": "^5.4 || ^6.0",
- "symfony/stopwatch": "^5.4 || ^6.0"
+ "sebastian/diff": "^4.0 || ^5.0 || ^6.0",
+ "symfony/console": "^5.4 || ^6.0 || ^7.0",
+ "symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
+ "symfony/filesystem": "^5.4 || ^6.0 || ^7.0",
+ "symfony/finder": "^5.4 || ^6.0 || ^7.0",
+ "symfony/options-resolver": "^5.4 || ^6.0 || ^7.0",
+ "symfony/polyfill-mbstring": "^1.28",
+ "symfony/polyfill-php80": "^1.28",
+ "symfony/polyfill-php81": "^1.28",
+ "symfony/process": "^5.4 || ^6.0 || ^7.0",
+ "symfony/stopwatch": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"facile-it/paraunit": "^1.3 || ^2.0",
+ "infection/infection": "^0.27.11",
"justinrainbow/json-schema": "^5.2",
- "keradus/cli-executor": "^2.0",
+ "keradus/cli-executor": "^2.1",
"mikey179/vfsstream": "^1.6.11",
- "php-coveralls/php-coveralls": "^2.5.3",
+ "php-coveralls/php-coveralls": "^2.7",
"php-cs-fixer/accessible-object": "^1.1",
- "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.2",
- "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.2.1",
- "phpspec/prophecy": "^1.16",
- "phpspec/prophecy-phpunit": "^2.0",
- "phpunit/phpunit": "^9.5",
- "symfony/phpunit-bridge": "^6.2.3",
- "symfony/yaml": "^5.4 || ^6.0"
+ "php-cs-fixer/phpunit-constraint-isidenticalstring": "^1.4",
+ "php-cs-fixer/phpunit-constraint-xmlmatchesxsd": "^1.4",
+ "phpunit/phpunit": "^9.6 || ^10.5.5 || ^11.0.2",
+ "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0",
+ "symfony/yaml": "^5.4 || ^6.0 || ^7.0"
},
"suggest": {
"ext-dom": "For handling output formats in XML",
@@ -389,7 +389,7 @@
],
"support": {
"issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues",
- "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.38.0"
+ "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.55.0"
},
"funding": [
{
@@ -397,25 +397,25 @@
"type": "github"
}
],
- "time": "2023-11-07T08:44:54+00:00"
+ "time": "2024-05-06T00:10:15+00:00"
},
{
"name": "nikic/php-parser",
- "version": "v4.17.1",
+ "version": "v4.19.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d"
+ "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
- "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b",
+ "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b",
"shasum": ""
},
"require": {
"ext-tokenizer": "*",
- "php": ">=7.0"
+ "php": ">=7.1"
},
"require-dev": {
"ircmaxell/php-yacc": "^0.0.7",
@@ -451,9 +451,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
- "source": "https://github.com/nikic/PHP-Parser/tree/v4.17.1"
+ "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1"
},
- "time": "2023-08-13T19:53:39+00:00"
+ "time": "2024-03-17T08:10:35+00:00"
},
{
"name": "prestashop/autoindex",
@@ -754,16 +754,16 @@
},
{
"name": "sebastian/diff",
- "version": "5.0.3",
+ "version": "5.1.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b"
+ "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/912dc2fbe3e3c1e7873313cc801b100b6c68c87b",
- "reference": "912dc2fbe3e3c1e7873313cc801b100b6c68c87b",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/c41e007b4b62af48218231d6c2275e4c9b975b2e",
+ "reference": "c41e007b4b62af48218231d6c2275e4c9b975b2e",
"shasum": ""
},
"require": {
@@ -771,12 +771,12 @@
},
"require-dev": {
"phpunit/phpunit": "^10.0",
- "symfony/process": "^4.2 || ^5"
+ "symfony/process": "^6.4"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "5.0-dev"
+ "dev-main": "5.1-dev"
}
},
"autoload": {
@@ -809,7 +809,7 @@
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
"security": "https://github.com/sebastianbergmann/diff/security/policy",
- "source": "https://github.com/sebastianbergmann/diff/tree/5.0.3"
+ "source": "https://github.com/sebastianbergmann/diff/tree/5.1.1"
},
"funding": [
{
@@ -817,20 +817,20 @@
"type": "github"
}
],
- "time": "2023-05-01T07:48:21+00:00"
+ "time": "2024-03-02T07:15:17+00:00"
},
{
"name": "squizlabs/php_codesniffer",
- "version": "3.7.2",
+ "version": "3.9.2",
"source": {
"type": "git",
- "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
- "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879"
+ "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
+ "reference": "aac1f6f347a5c5ac6bc98ad395007df00990f480"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ed8e00df0a83aa96acf703f8c2979ff33341f879",
- "reference": "ed8e00df0a83aa96acf703f8c2979ff33341f879",
+ "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/aac1f6f347a5c5ac6bc98ad395007df00990f480",
+ "reference": "aac1f6f347a5c5ac6bc98ad395007df00990f480",
"shasum": ""
},
"require": {
@@ -840,11 +840,11 @@
"php": ">=5.4.0"
},
"require-dev": {
- "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
},
"bin": [
- "bin/phpcs",
- "bin/phpcbf"
+ "bin/phpcbf",
+ "bin/phpcs"
],
"type": "library",
"extra": {
@@ -859,35 +859,58 @@
"authors": [
{
"name": "Greg Sherwood",
- "role": "lead"
+ "role": "Former lead"
+ },
+ {
+ "name": "Juliette Reinders Folmer",
+ "role": "Current lead"
+ },
+ {
+ "name": "Contributors",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
- "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards",
"static analysis"
],
"support": {
- "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
- "source": "https://github.com/squizlabs/PHP_CodeSniffer",
- "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
+ "issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
+ "security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
+ "source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
+ "wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
},
- "time": "2023-02-22T23:07:41+00:00"
+ "funding": [
+ {
+ "url": "https://github.com/PHPCSStandards",
+ "type": "github"
+ },
+ {
+ "url": "https://github.com/jrfnl",
+ "type": "github"
+ },
+ {
+ "url": "https://opencollective.com/php_codesniffer",
+ "type": "open_collective"
+ }
+ ],
+ "time": "2024-04-23T20:25:34+00:00"
},
{
"name": "symfony/console",
- "version": "v6.3.8",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92"
+ "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/0d14a9f6d04d4ac38a8cea1171f4554e325dae92",
- "reference": "0d14a9f6d04d4ac38a8cea1171f4554e325dae92",
+ "url": "https://api.github.com/repos/symfony/console/zipball/a170e64ae10d00ba89e2acbb590dc2e54da8ad8f",
+ "reference": "a170e64ae10d00ba89e2acbb590dc2e54da8ad8f",
"shasum": ""
},
"require": {
@@ -895,7 +918,7 @@
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-mbstring": "~1.0",
"symfony/service-contracts": "^2.5|^3",
- "symfony/string": "^5.4|^6.0"
+ "symfony/string": "^5.4|^6.0|^7.0"
},
"conflict": {
"symfony/dependency-injection": "<5.4",
@@ -909,12 +932,16 @@
},
"require-dev": {
"psr/log": "^1|^2|^3",
- "symfony/config": "^5.4|^6.0",
- "symfony/dependency-injection": "^5.4|^6.0",
- "symfony/event-dispatcher": "^5.4|^6.0",
- "symfony/lock": "^5.4|^6.0",
- "symfony/process": "^5.4|^6.0",
- "symfony/var-dumper": "^5.4|^6.0"
+ "symfony/config": "^5.4|^6.0|^7.0",
+ "symfony/dependency-injection": "^5.4|^6.0|^7.0",
+ "symfony/event-dispatcher": "^5.4|^6.0|^7.0",
+ "symfony/http-foundation": "^6.4|^7.0",
+ "symfony/http-kernel": "^6.4|^7.0",
+ "symfony/lock": "^5.4|^6.0|^7.0",
+ "symfony/messenger": "^5.4|^6.0|^7.0",
+ "symfony/process": "^5.4|^6.0|^7.0",
+ "symfony/stopwatch": "^5.4|^6.0|^7.0",
+ "symfony/var-dumper": "^5.4|^6.0|^7.0"
},
"type": "library",
"autoload": {
@@ -948,7 +975,7 @@
"terminal"
],
"support": {
- "source": "https://github.com/symfony/console/tree/v6.3.8"
+ "source": "https://github.com/symfony/console/tree/v6.4.7"
},
"funding": [
{
@@ -964,20 +991,20 @@
"type": "tidelift"
}
],
- "time": "2023-10-31T08:09:35+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/deprecation-contracts",
- "version": "v3.3.0",
+ "version": "v3.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
- "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf"
+ "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/7c3aff79d10325257a001fcf92d991f24fc967cf",
- "reference": "7c3aff79d10325257a001fcf92d991f24fc967cf",
+ "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
+ "reference": "0e0d29ce1f20deffb4ab1b016a7257c4f1e789a1",
"shasum": ""
},
"require": {
@@ -986,7 +1013,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.4-dev"
+ "dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1015,7 +1042,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/deprecation-contracts/tree/v3.3.0"
+ "source": "https://github.com/symfony/deprecation-contracts/tree/v3.5.0"
},
"funding": [
{
@@ -1031,20 +1058,20 @@
"type": "tidelift"
}
],
- "time": "2023-05-23T14:45:45+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/event-dispatcher",
- "version": "v6.3.2",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e"
+ "reference": "d84384f3f67de3cb650db64d685d70395dacfc3f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/adb01fe097a4ee930db9258a3cc906b5beb5cf2e",
- "reference": "adb01fe097a4ee930db9258a3cc906b5beb5cf2e",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d84384f3f67de3cb650db64d685d70395dacfc3f",
+ "reference": "d84384f3f67de3cb650db64d685d70395dacfc3f",
"shasum": ""
},
"require": {
@@ -1061,13 +1088,13 @@
},
"require-dev": {
"psr/log": "^1|^2|^3",
- "symfony/config": "^5.4|^6.0",
- "symfony/dependency-injection": "^5.4|^6.0",
- "symfony/error-handler": "^5.4|^6.0",
- "symfony/expression-language": "^5.4|^6.0",
- "symfony/http-foundation": "^5.4|^6.0",
+ "symfony/config": "^5.4|^6.0|^7.0",
+ "symfony/dependency-injection": "^5.4|^6.0|^7.0",
+ "symfony/error-handler": "^5.4|^6.0|^7.0",
+ "symfony/expression-language": "^5.4|^6.0|^7.0",
+ "symfony/http-foundation": "^5.4|^6.0|^7.0",
"symfony/service-contracts": "^2.5|^3",
- "symfony/stopwatch": "^5.4|^6.0"
+ "symfony/stopwatch": "^5.4|^6.0|^7.0"
},
"type": "library",
"autoload": {
@@ -1095,7 +1122,7 @@
"description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/event-dispatcher/tree/v6.3.2"
+ "source": "https://github.com/symfony/event-dispatcher/tree/v6.4.7"
},
"funding": [
{
@@ -1111,20 +1138,20 @@
"type": "tidelift"
}
],
- "time": "2023-07-06T06:56:43+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/event-dispatcher-contracts",
- "version": "v3.3.0",
+ "version": "v3.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git",
- "reference": "a76aed96a42d2b521153fb382d418e30d18b59df"
+ "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/a76aed96a42d2b521153fb382d418e30d18b59df",
- "reference": "a76aed96a42d2b521153fb382d418e30d18b59df",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/8f93aec25d41b72493c6ddff14e916177c9efc50",
+ "reference": "8f93aec25d41b72493c6ddff14e916177c9efc50",
"shasum": ""
},
"require": {
@@ -1134,7 +1161,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.4-dev"
+ "dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -1171,7 +1198,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.3.0"
+ "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.5.0"
},
"funding": [
{
@@ -1187,26 +1214,27 @@
"type": "tidelift"
}
],
- "time": "2023-05-23T14:45:45+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/filesystem",
- "version": "v6.3.1",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae"
+ "reference": "78dde75f8f6dbbca4ec436a4b0087f7af02076d4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
- "reference": "edd36776956f2a6fcf577edb5b05eb0e3bdc52ae",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/78dde75f8f6dbbca4ec436a4b0087f7af02076d4",
+ "reference": "78dde75f8f6dbbca4ec436a4b0087f7af02076d4",
"shasum": ""
},
"require": {
"php": ">=8.1",
"symfony/polyfill-ctype": "~1.8",
- "symfony/polyfill-mbstring": "~1.8"
+ "symfony/polyfill-mbstring": "~1.8",
+ "symfony/process": "^5.4|^6.4"
},
"type": "library",
"autoload": {
@@ -1234,7 +1262,7 @@
"description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/filesystem/tree/v6.3.1"
+ "source": "https://github.com/symfony/filesystem/tree/v6.4.7"
},
"funding": [
{
@@ -1250,27 +1278,27 @@
"type": "tidelift"
}
],
- "time": "2023-06-01T08:30:39+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/finder",
- "version": "v6.3.5",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4"
+ "reference": "511c48990be17358c23bf45c5d71ab85d40fb764"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/a1b31d88c0e998168ca7792f222cbecee47428c4",
- "reference": "a1b31d88c0e998168ca7792f222cbecee47428c4",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/511c48990be17358c23bf45c5d71ab85d40fb764",
+ "reference": "511c48990be17358c23bf45c5d71ab85d40fb764",
"shasum": ""
},
"require": {
"php": ">=8.1"
},
"require-dev": {
- "symfony/filesystem": "^6.0"
+ "symfony/filesystem": "^6.0|^7.0"
},
"type": "library",
"autoload": {
@@ -1298,7 +1326,7 @@
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/finder/tree/v6.3.5"
+ "source": "https://github.com/symfony/finder/tree/v6.4.7"
},
"funding": [
{
@@ -1314,20 +1342,20 @@
"type": "tidelift"
}
],
- "time": "2023-09-26T12:56:25+00:00"
+ "time": "2024-04-23T10:36:43+00:00"
},
{
"name": "symfony/options-resolver",
- "version": "v6.3.0",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/options-resolver.git",
- "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd"
+ "reference": "9a3c92b490716ba6771f5beced13c6eda7183eed"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/options-resolver/zipball/a10f19f5198d589d5c33333cffe98dc9820332dd",
- "reference": "a10f19f5198d589d5c33333cffe98dc9820332dd",
+ "url": "https://api.github.com/repos/symfony/options-resolver/zipball/9a3c92b490716ba6771f5beced13c6eda7183eed",
+ "reference": "9a3c92b490716ba6771f5beced13c6eda7183eed",
"shasum": ""
},
"require": {
@@ -1365,7 +1393,7 @@
"options"
],
"support": {
- "source": "https://github.com/symfony/options-resolver/tree/v6.3.0"
+ "source": "https://github.com/symfony/options-resolver/tree/v6.4.7"
},
"funding": [
{
@@ -1381,20 +1409,20 @@
"type": "tidelift"
}
],
- "time": "2023-05-12T14:21:09+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/polyfill-ctype",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
- "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb"
+ "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
- "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4",
+ "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4",
"shasum": ""
},
"require": {
@@ -1408,9 +1436,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1447,7 +1472,7 @@
"portable"
],
"support": {
- "source": "https://github.com/symfony/polyfill-ctype/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0"
},
"funding": [
{
@@ -1463,20 +1488,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/polyfill-intl-grapheme",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-grapheme.git",
- "reference": "875e90aeea2777b6f135677f618529449334a612"
+ "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/875e90aeea2777b6f135677f618529449334a612",
- "reference": "875e90aeea2777b6f135677f618529449334a612",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f",
+ "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f",
"shasum": ""
},
"require": {
@@ -1487,9 +1512,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1528,7 +1550,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0"
},
"funding": [
{
@@ -1544,20 +1566,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/polyfill-intl-normalizer",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-intl-normalizer.git",
- "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92"
+ "reference": "bc45c394692b948b4d383a08d7753968bed9a83d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
- "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92",
+ "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d",
+ "reference": "bc45c394692b948b4d383a08d7753968bed9a83d",
"shasum": ""
},
"require": {
@@ -1568,9 +1590,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1612,7 +1631,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0"
},
"funding": [
{
@@ -1628,20 +1647,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "42292d99c55abe617799667f454222c54c60e229"
+ "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229",
- "reference": "42292d99c55abe617799667f454222c54c60e229",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
+ "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec",
"shasum": ""
},
"require": {
@@ -1655,9 +1674,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1695,7 +1711,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0"
},
"funding": [
{
@@ -1711,20 +1727,20 @@
"type": "tidelift"
}
],
- "time": "2023-07-28T09:04:16+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/polyfill-php80",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
- "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5"
+ "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
- "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5",
+ "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
+ "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b",
"shasum": ""
},
"require": {
@@ -1732,9 +1748,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1778,7 +1791,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php80/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0"
},
"funding": [
{
@@ -1794,20 +1807,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/polyfill-php81",
- "version": "v1.28.0",
+ "version": "v1.29.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php81.git",
- "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b"
+ "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/7581cd600fa9fd681b797d00b02f068e2f13263b",
- "reference": "7581cd600fa9fd681b797d00b02f068e2f13263b",
+ "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/c565ad1e63f30e7477fc40738343c62b40bc672d",
+ "reference": "c565ad1e63f30e7477fc40738343c62b40bc672d",
"shasum": ""
},
"require": {
@@ -1815,9 +1828,6 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-main": "1.28-dev"
- },
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
@@ -1857,7 +1867,7 @@
"shim"
],
"support": {
- "source": "https://github.com/symfony/polyfill-php81/tree/v1.28.0"
+ "source": "https://github.com/symfony/polyfill-php81/tree/v1.29.0"
},
"funding": [
{
@@ -1873,20 +1883,20 @@
"type": "tidelift"
}
],
- "time": "2023-01-26T09:26:14+00:00"
+ "time": "2024-01-29T20:11:03+00:00"
},
{
"name": "symfony/process",
- "version": "v6.3.4",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54"
+ "reference": "cdb1c81c145fd5aa9b0038bab694035020943381"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/0b5c29118f2e980d455d2e34a5659f4579847c54",
- "reference": "0b5c29118f2e980d455d2e34a5659f4579847c54",
+ "url": "https://api.github.com/repos/symfony/process/zipball/cdb1c81c145fd5aa9b0038bab694035020943381",
+ "reference": "cdb1c81c145fd5aa9b0038bab694035020943381",
"shasum": ""
},
"require": {
@@ -1918,7 +1928,7 @@
"description": "Executes commands in sub-processes",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/process/tree/v6.3.4"
+ "source": "https://github.com/symfony/process/tree/v6.4.7"
},
"funding": [
{
@@ -1934,25 +1944,26 @@
"type": "tidelift"
}
],
- "time": "2023-08-07T10:39:22+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/service-contracts",
- "version": "v3.3.0",
+ "version": "v3.5.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
- "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4"
+ "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/service-contracts/zipball/40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
- "reference": "40da9cc13ec349d9e4966ce18b5fbcd724ab10a4",
+ "url": "https://api.github.com/repos/symfony/service-contracts/zipball/bd1d9e59a81d8fa4acdcea3f617c581f7475a80f",
+ "reference": "bd1d9e59a81d8fa4acdcea3f617c581f7475a80f",
"shasum": ""
},
"require": {
"php": ">=8.1",
- "psr/container": "^2.0"
+ "psr/container": "^1.1|^2.0",
+ "symfony/deprecation-contracts": "^2.5|^3"
},
"conflict": {
"ext-psr": "<1.1|>=2"
@@ -1960,7 +1971,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-main": "3.4-dev"
+ "dev-main": "3.5-dev"
},
"thanks": {
"name": "symfony/contracts",
@@ -2000,7 +2011,7 @@
"standards"
],
"support": {
- "source": "https://github.com/symfony/service-contracts/tree/v3.3.0"
+ "source": "https://github.com/symfony/service-contracts/tree/v3.5.0"
},
"funding": [
{
@@ -2016,20 +2027,20 @@
"type": "tidelift"
}
],
- "time": "2023-05-23T14:45:45+00:00"
+ "time": "2024-04-18T09:32:20+00:00"
},
{
"name": "symfony/stopwatch",
- "version": "v6.3.0",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/stopwatch.git",
- "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2"
+ "reference": "ffec95ba269e541eb2232126c0c20f83086b5c68"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2",
- "reference": "fc47f1015ec80927ff64ba9094dfe8b9d48fe9f2",
+ "url": "https://api.github.com/repos/symfony/stopwatch/zipball/ffec95ba269e541eb2232126c0c20f83086b5c68",
+ "reference": "ffec95ba269e541eb2232126c0c20f83086b5c68",
"shasum": ""
},
"require": {
@@ -2062,7 +2073,7 @@
"description": "Provides a way to profile code",
"homepage": "https://symfony.com",
"support": {
- "source": "https://github.com/symfony/stopwatch/tree/v6.3.0"
+ "source": "https://github.com/symfony/stopwatch/tree/v6.4.7"
},
"funding": [
{
@@ -2078,20 +2089,20 @@
"type": "tidelift"
}
],
- "time": "2023-02-16T10:14:28+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
},
{
"name": "symfony/string",
- "version": "v6.3.8",
+ "version": "v6.4.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
- "reference": "13880a87790c76ef994c91e87efb96134522577a"
+ "reference": "ffeb9591c61f65a68d47f77d12b83fa530227a69"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/string/zipball/13880a87790c76ef994c91e87efb96134522577a",
- "reference": "13880a87790c76ef994c91e87efb96134522577a",
+ "url": "https://api.github.com/repos/symfony/string/zipball/ffeb9591c61f65a68d47f77d12b83fa530227a69",
+ "reference": "ffeb9591c61f65a68d47f77d12b83fa530227a69",
"shasum": ""
},
"require": {
@@ -2105,11 +2116,11 @@
"symfony/translation-contracts": "<2.5"
},
"require-dev": {
- "symfony/error-handler": "^5.4|^6.0",
- "symfony/http-client": "^5.4|^6.0",
- "symfony/intl": "^6.2",
+ "symfony/error-handler": "^5.4|^6.0|^7.0",
+ "symfony/http-client": "^5.4|^6.0|^7.0",
+ "symfony/intl": "^6.2|^7.0",
"symfony/translation-contracts": "^2.5|^3.0",
- "symfony/var-exporter": "^5.4|^6.0"
+ "symfony/var-exporter": "^5.4|^6.0|^7.0"
},
"type": "library",
"autoload": {
@@ -2148,7 +2159,7 @@
"utf8"
],
"support": {
- "source": "https://github.com/symfony/string/tree/v6.3.8"
+ "source": "https://github.com/symfony/string/tree/v6.4.7"
},
"funding": [
{
@@ -2164,7 +2175,7 @@
"type": "tidelift"
}
],
- "time": "2023-11-09T08:28:21+00:00"
+ "time": "2024-04-18T09:22:46+00:00"
}
],
"aliases": [],
diff --git a/config/routes.yml b/config/routes.yml
index d9d7120f..153482fb 100644
--- a/config/routes.yml
+++ b/config/routes.yml
@@ -5,6 +5,15 @@ admin_prettyblocks:
_controller: 'PrestaSafe\PrettyBlocks\Controller\AdminThemeManagerController::indexAction'
_legacy_controller: AdminThemeManagerController
_legacy_link: AdminThemeManagerController
+# route generator (for opening custom page in prettyblocks)
+
+prettyblocks_route_generator:
+ path: prettyblocks/route_generator/
+ methods: [GET,POST]
+ defaults:
+ _controller: 'PrestaSafe\PrettyBlocks\Controller\AdminThemeManagerController::routeGeneratorAction'
+ _legacy_controller: AdminThemeManagerControllerRouteGenerator
+ _legacy_link: AdminThemeManagerControllerRouteGenerator
prettyblocks_block_render:
path: prettyblocks/block/
@@ -88,4 +97,5 @@ prettyblocks_theme_settings:
defaults:
_controller: 'PrestaSafe\PrettyBlocks\Controller\AdminThemeManagerController::getSettingsAction'
_legacy_controller: AdminThemeManagerController
- _legacy_link: AdminThemeManagerController
\ No newline at end of file
+ _legacy_link: AdminThemeManagerController
+
diff --git a/controllers/front/ajax.php b/controllers/front/ajax.php
index eda84e82..6651324b 100644
--- a/controllers/front/ajax.php
+++ b/controllers/front/ajax.php
@@ -21,6 +21,7 @@
if (!defined('_PS_VERSION_')) {
exit;
}
+use Symfony\Component\Dotenv\Dotenv;
class PrettyBlocksAjaxModuleFrontController extends ModuleFrontController
{
@@ -49,6 +50,7 @@ public function init()
}
$this->ajax = $this->isAjax();
+ // $this->module->clearCache('*');
parent::init();
}
@@ -67,6 +69,19 @@ public function setHeadersForDomains()
if (!in_array($host, $shop_domains)) {
header('Access-Control-Allow-Origin: ' . $protocol . '://' . $host);
}
+ // register .env
+ $env_file = _PS_MODULE_DIR_ . '/prettyblocks/.env';
+
+ if (file_exists($env_file)) {
+ $dotenv = new Dotenv();
+ $dotenv->load($env_file);
+ }
+ if (getenv('PRETTYBLOCKS_CUSTOM_HEADERS')) {
+ $headers = explode(',', getenv('PRETTYBLOCKS_CUSTOM_HEADERS'));
+ foreach ($headers as $header) {
+ header('Access-Control-Allow-Origin: ' . $header);
+ }
+ }
}
/**
@@ -344,7 +359,12 @@ public function displayAjaxloadBlockById()
$state = new PrettyBlocksModel($id_block, $id_lang, $id_shop);
$block = $state->mergeStateWithFields();
- return exit(json_encode($block, true));
+ $block['render'] = $this->module->renderWidget(null, [
+ 'action' => 'GetBlockRender',
+ 'data' => $block,
+ ]);
+
+ return exit(json_encode($block));
}
public function displayAjaxupdateStateParentPosition()
diff --git a/prettyblocks.php b/prettyblocks.php
index c9e4aa36..8fff9a94 100755
--- a/prettyblocks.php
+++ b/prettyblocks.php
@@ -1,4 +1,5 @@
'Pretty Blocks', // One name for all langs
+ 'name' => 'PrettyBlocks', // One name for all langs
'class_name' => 'AdminThemeManagerController',
'visible' => true,
'parent_class_name' => 'IMPROVE',
@@ -53,13 +59,20 @@ class PrettyBlocks extends Module implements WidgetInterface
'actionDispatcher',
'actionFrontControllerSetVariables',
'ActionRegisterThemeSettings',
+ 'displayBackOfficeHeader',
+ 'ActionRegisterBlock',
+ 'ActionProductGridDefinitionModifier',
+ 'ActionCategoryGridDefinitionModifier',
+ 'ActionCmsPageGridDefinitionModifier',
+ 'BeforeRenderingPrettyblocksFeaturedProduct',
+ 'BeforeRenderingPrettyBlocksRenderModule',
];
public function __construct()
{
$this->name = 'prettyblocks';
$this->tab = 'administration';
- $this->version = '3.0.7';
+ $this->version = '3.1.0';
$this->author = 'PrestaSafe';
$this->need_instance = 1;
$this->js_path = $this->_path . 'views/js/';
@@ -68,18 +81,103 @@ public function __construct()
$this->bootstrap = true;
parent::__construct();
- $this->displayName = $this->trans('Pretty Blocks', [], 'Modules.Prettyblocks.Admin');
+ $this->displayName = $this->trans('PrettyBlocks', [], 'Modules.Prettyblocks.Admin');
$this->description = $this->trans('Configure your design easily', [], 'Modules.Prettyblocks.Admin');
$this->controllers = ['ajax'];
$this->ps_versions_compliancy = ['min' => '1.7', 'max' => _PS_VERSION_];
}
+ /**
+ * Add button prettyblocks to product grid
+ *
+ * @param array $params
+ *
+ * @return void
+ */
+ public function hookActionProductGridDefinitionModifier(array $params): void
+ {
+ /** @var GridDefinitionInterface $gridDefinition */
+ $gridDefinition = $params['definition'];
+ $this->_generateButtonPrettyBLocks($gridDefinition, 'product', 'id_product');
+ }
+
+ /**
+ * Add button prettyblocks to category grid
+ *
+ * @param array $params
+ *
+ * @return void
+ */
+ public function hookActionCategoryGridDefinitionModifier(array $params): void
+ {
+ /** @var GridDefinitionInterface $gridDefinition */
+ $gridDefinition = $params['definition'];
+ $this->_generateButtonPrettyBLocks($gridDefinition, 'category', 'id_category');
+ }
+
+ /**
+ * Add button prettyblocks to cms grid
+ *
+ * @param array $params
+ *
+ * @return void
+ */
+ public function hookActionCmsPageGridDefinitionModifier(array $params): void
+ {
+ /** @var GridDefinitionInterface $gridDefinition */
+ $gridDefinition = $params['definition'];
+ $this->_generateButtonPrettyBLocks($gridDefinition, 'cms', 'id_cms');
+ }
+
+ // actionCmsPageCategoryGridDefinitionModifier
+
+ /**
+ * Add button prettyblocks to product grid
+ *
+ * @param GridDefinitionInterface $definition
+ *
+ * @return GridDefinitionInterface
+ */
+ private function _generateButtonPrettyBLocks($definition, $endpoint = 'custom', $field = 'id_product')
+ {
+ /** @var RowActionCollectionInterface $actionsCollection */
+ $prettyblocksImg = HelperBuilder::pathFormattedToUrl('$/modules/prettyblocks/logo.png');
+ $columnCollection = (new PrestaSafe\PrettyBlocks\Core\Grid\Column\Type\PrettyBlocksButtonColumn('edit2'))
+ ->setName($this->trans('Open in PrettyBlocks', [], 'Modules.Prettyblocks.Admin'))
+ ->setOptions([
+ 'route' => 'admin_prettyblocks',
+ 'route_param_name' => 'id',
+ 'route_param_field' => $field,
+ 'icon' => $prettyblocksImg,
+ 'field' => $field,
+ 'endpoint' => $endpoint,
+ ]);
+
+ return $definition->getColumns()->add($columnCollection);
+ }
+
public function isUsingNewTranslationSystem()
{
return true;
}
+ /**
+ * get .env parameters
+ *
+ * @return void
+ */
+ public function loadDotEnv()
+ {
+ // register .env
+ $env_file = _PS_MODULE_DIR_ . '/prettyblocks/.env';
+
+ if (file_exists($env_file)) {
+ $dotenv = new Dotenv();
+ $dotenv->load($env_file);
+ }
+ }
+
/**
* create tables on install.
*
@@ -150,14 +248,19 @@ private function removeDb()
}
public function getContent()
+ {
+ // $this->registerHook('displayBackOfficeHeader');
+ return Tools::redirect($this->getPrettyBlocksUrl());
+ }
+
+ private function getPrettyBlocksUrl()
{
$domain = Tools::getShopDomainSsl(true);
- $symfonyUrl = $domain . Link::getUrlSmarty([
+
+ return $domain . Link::getUrlSmarty([
'entity' => 'sf',
'route' => 'admin_prettyblocks',
]);
-
- return Tools::redirect($symfonyUrl);
}
private function loadDefault()
@@ -165,6 +268,21 @@ private function loadDefault()
return Configuration::updateGlobalValue('_PRETTYBLOCKS_TOKEN_', Tools::passwdGen(25));
}
+ public function hookdisplayBackOfficeHeader($params)
+ {
+ $route = (new Link())->getAdminLink('AdminThemeManagerControllerRouteGenerator');
+ Media::addJsDef([
+ 'prettyblocks_route_generator' => $route,
+ 'prettyblocks_logo' => HelperBuilder::pathFormattedToUrl('$/modules/prettyblocks/logo.png'),
+ 'ps_version' => _PS_VERSION_,
+ 'ps17' => version_compare(_PS_VERSION_, '8.0.0', '<='),
+ 'ps8' => version_compare(_PS_VERSION_, '8.0.0', '>='),
+ ]);
+ $this->context->controller->addCSS($this->_path . 'views/css/back.css');
+
+ // $this->context->controller->addJS($this->_path . 'views/js/back.js');
+ }
+
public function install()
{
return parent::install()
@@ -206,12 +324,103 @@ public function getWidgetVariables($hookName = null, array $configuration = [])
];
}
+ private function _addDynamicZones()
+ {
+ $this->loadDotEnv();
+ $smartyVars = $this->context->smarty->getTemplateVars();
+
+ if ($this->context->controller->php_self == 'product') {
+ // product description
+ if (isset($smartyVars['product']['description'])) {
+ $product = $smartyVars['product'];
+ $zone_name = 'product-description-' . $smartyVars['product']['id_product'];
+ // if no blocks on this zone, feed product description
+ if (!HelperBuilder::zoneHasBlock($zone_name) && !filter_var(getenv('DISABLE_AUTO_FEED_ZONE_PRODUCT_DESCRIPTION'))) {
+ $this->registerBlockToZone($zone_name, 'prettyblocks_product_description');
+ }
+ $description = $this->renderZone(
+ [
+ 'zone_name' => $zone_name,
+ 'priority' => true,
+ 'alias' => $this->l('Product description'),
+ ]
+ );
+ $product['description'] = $description;
+ $this->context->smarty->assign('product', $product);
+ }
+
+ // product description short
+ if (isset($smartyVars['product']['description_short'])) {
+ $product = $smartyVars['product'];
+ $zone_name = 'product-description-short-' . $smartyVars['product']['id_product'];
+ // if no blocks on this zone, feed product description
+ if (!HelperBuilder::zoneHasBlock($zone_name) && !filter_var(getenv('DISABLE_AUTO_FEED_ZONE_PRODUCT_DESCRIPTION_SHORT'))) {
+ $this->registerBlockToZone($zone_name, 'prettyblocks_product_description_short');
+ }
+ $description_short = $this->renderZone(
+ [
+ 'zone_name' => $zone_name,
+ 'priority' => false,
+ 'alias' => $this->l('Product description short'),
+ ]
+ );
+ $product['description_short'] = $description_short;
+ $this->context->smarty->assign('product', $product);
+ }
+ }
+
+ if ($this->context->controller->php_self == 'category') {
+ // categories
+ if (isset($smartyVars['category'])) {
+ $category = $smartyVars['category'];
+ $zone_name = 'category-description-' . $smartyVars['category']['id'];
+ // if no blocks on this zone, feed product description
+ if (!HelperBuilder::zoneHasBlock($zone_name) && !filter_var(getenv('DISABLE_AUTO_FEED_ZONE_CATEGORY_DESCRIPTION'), FILTER_VALIDATE_BOOLEAN)) {
+ $this->registerBlockToZone($zone_name, 'prettyblocks_category_description');
+ }
+ $description = $this->renderZone(
+ [
+ 'zone_name' => $zone_name,
+ 'priority' => true,
+ 'alias' => $this->l('Category description'),
+ ]
+ );
+ $category['description'] = $description;
+ $this->context->smarty->assign('category', $category);
+ }
+ }
+ // cms
+ if ($this->context->controller->php_self == 'cms') {
+ if (isset($smartyVars['cms'])) {
+ $cms = $smartyVars['cms'];
+ $zone_name = 'cms-description-' . $smartyVars['cms']['id'];
+ // if no blocks on this zone, feed product description
+ if (!HelperBuilder::zoneHasBlock($zone_name) && !filter_var(getenv('DISABLE_AUTO_FEED_ZONE_CMS_CONTENT'))) {
+ $this->registerBlockToZone($zone_name, 'prettyblocks_cms_content');
+ }
+ $description = $this->renderZone(
+ [
+ 'zone_name' => $zone_name,
+ 'priority' => true,
+ 'alias' => $this->l('CMS content'),
+ ]
+ );
+ $cms['content'] = $description;
+ $this->context->smarty->assign('cms', $cms);
+ }
+ }
+ }
+
+ /**
+ * hook display Header
+ */
public function hookdisplayHeader($params)
{
+ $this->_addDynamicZones();
if ((isset($_SERVER['HTTP_SEC_FETCH_DEST']) && $_SERVER['HTTP_SEC_FETCH_DEST'] == 'iframe') || Tools::getValue('prettyblocks') === '1') {
$this->context->controller->registerJavascript(
'prettyblocks',
- 'modules/' . $this->name . '/views/js/build.js',
+ 'modules/' . $this->name . '/views/js/build/build.js',
[
'position' => 'bottom',
'priority' => 150,
@@ -219,7 +428,7 @@ public function hookdisplayHeader($params)
);
$this->context->controller->registerStylesheet(
'prettyblocks',
- 'modules/' . $this->name . '/build/iframe.css',
+ 'modules/' . $this->name . '/views/css/iframe.css',
[
'media' => 'all',
'priority' => 200,
@@ -230,6 +439,90 @@ public function hookdisplayHeader($params)
]);
// todo register css and js on iframe only from Hook
}
+ // load default blocks styles
+ if (!TplSettings::getSettings('remove_default_blocks')) {
+ $this->context->controller->registerStylesheet(
+ 'tiny-slider-css',
+ 'https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.4/tiny-slider.css',
+ [
+ 'media' => 'all',
+ 'priority' => 200,
+ 'server' => 'remote', // added remote option
+ ]
+ );
+
+ $this->context->controller->registerJavascript(
+ 'tiny-slider-js',
+ 'https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js',
+ [
+ 'media' => 'all',
+ 'priority' => 150,
+ 'server' => 'remote', // added remote option
+ ]
+ );
+
+ $this->context->controller->registerJavascript(
+ 'prettyblocks-init',
+ 'modules/' . $this->name . '/views/js/front.js',
+ [
+ 'media' => 'all',
+ 'priority' => 200,
+ ]
+ );
+
+ $this->context->controller->registerStylesheet(
+ 'prettyblocks-front',
+ 'modules/' . $this->name . '/views/css/dist/main.css',
+ [
+ 'media' => 'all',
+ 'priority' => 250,
+ ]
+ );
+ }
+ }
+
+ /**
+ * Hook before rendering prettyblocks featured product
+ *
+ * @param array $params
+ *
+ * @return array
+ */
+ public function hookBeforeRenderingPrettyblocksFeaturedProduct($params)
+ {
+ $settings = $params['block']['settings'];
+ $nProducts = (int) $settings['number'] ?? 8;
+ if ($settings) {
+ if (isset($settings['category']['id'])) {
+ $id_category = (int) $settings['category']['id'];
+
+ return ['products' => HelperBuilder::getProductsCategory($id_category, $nProducts)];
+ }
+ }
+
+ return ['products' => false];
+ }
+
+ /**
+ * Hook before rendering prettyblocks render module
+ *
+ * @param array $params
+ *
+ * @return array
+ */
+ public function hookBeforeRenderingPrettyBlocksRenderModule($params)
+ {
+ $settings = $params['block']['settings'];
+ $module_name = $settings['module_name'];
+
+ if (isset($module_name) && $module_name && Validate::isModuleName($module_name)) {
+ $module = Module::getInstanceByName($module_name);
+ if ($module && $module instanceof WidgetInterface) {
+ return ['module' => $module_name];
+ }
+ }
+
+ return ['module' => false];
}
/**
@@ -272,9 +565,39 @@ public function registerBlockToZone($zone_name, $block_code)
public function hookActionDispatcher()
{
/* @deprecated {magic_zone} is deprecated since v1.1.0. Use {prettyblocks_zone} instead. */
- $this->context->smarty->registerPlugin('function', 'magic_zone', [PrettyBlocks::class, 'renderZone']);
- $this->context->smarty->registerPlugin('function', 'prettyblocks_zone', [PrettyBlocks::class, 'renderZone']);
- $this->context->smarty->registerPlugin('function', 'prettyblocks_title', [PrettyBlocks::class, 'renderTitle']);
+ $this->context->smarty->registerPlugin('function', 'magic_zone', [$this, 'renderZone']);
+ $this->context->smarty->registerPlugin('function', 'prettyblocks_zone', [$this, 'renderZone']);
+ $this->context->smarty->registerPlugin('function', 'prettyblocks_title', [$this, 'renderTitle']);
+ // $this->context->smarty->registerPlugin('function', 'prettyblocks', [$this, 'renderBlocks']);
+ }
+
+ /**
+ * Render blocks
+ * BUG with cache
+ * $block.states is not defined
+ * Not used for now.
+ */
+ public function renderBlocks($params)
+ {
+ $template = $params['file'];
+ $instance_id = $params['instance_id'];
+ $id_prettyblocks = $params['id_prettyblocks'];
+ $data = $params['data'];
+
+ $cacheId = 'prettyblocks_' . $id_prettyblocks . '_' . $instance_id;
+ $cacheSettings = isset($block['settings']['default']['is_cached']) ? (bool) $block['settings']['default']['is_cached'] : false;
+
+ if ($cacheSettings && !$this->isCached($template, $this->getCacheId($cacheId))) {
+ $this->smarty->assign([
+ 'template' => $template,
+ 'block' => $data,
+ 'instance_id' => $instance_id,
+ 'id_prettyblocks' => $id_prettyblocks,
+ 'states' => $data['states'],
+ ]);
+ }
+
+ return $this->fetch($template, $this->getCacheId($cacheId));
}
/**
@@ -298,28 +621,36 @@ public static function renderTitle($params)
}
return $title->setValueFromBlock(true)
- ->setValue($value)->render();
+ ->setValue($value)->render();
}
- public static function renderZone($params)
+ /**
+ * Render zone
+ */
+ public function renderZone($params)
{
$zone_name = $params['zone_name'];
+ $priority = $params['priority'] ?? false;
+ $alias = $params['alias'] ?? '';
if (empty($zone_name)) {
return false;
}
-
+ $templateFile = 'module:prettyblocks/views/templates/front/zone.tpl';
$context = Context::getContext();
+
$id_lang = $context->language->id;
$id_shop = $context->shop->id;
$blocks = PrettyBlocksModel::getInstanceByZone($zone_name, 'front', $id_lang, $id_shop);
$context->smarty->assign([
'zone_name' => $zone_name,
+ 'priority' => $priority,
+ 'alias' => $alias,
'blocks' => $blocks,
]);
- return $context->smarty->fetch('module:prettyblocks/views/templates/front/zone.tpl');
+ return $this->fetch($templateFile);
}
/**
@@ -329,13 +660,64 @@ public static function renderZone($params)
public function hookActionRegisterThemeSettings()
{
return [
- 'tinymce_api_key' => [
- 'type' => 'text', // type of field
- 'label' => $this->l('TinyMCE api key'), // label to display
- 'description' => $this->l('Add your TinyMCE api key (free) https://www.tiny.cloud/pricing/'), // description to display
- 'tab' => 'Settings',
- 'default' => 'no-api-key', // default value (Boolean)
- ],
- ];
+ 'tinymce_api_key' => [
+ 'type' => 'text', // type of field
+ 'label' => $this->l('TinyMCE api key'), // label to display
+ 'description' => $this->l('Add your TinyMCE api key (free) https://www.tiny.cloud/pricing/'), // description to display
+ 'tab' => 'Settings',
+ 'default' => 'no-api-key', // default value (Boolean)
+ 'private' => true,
+ ],
+ 'remove_default_blocks' => [
+ 'type' => 'checkbox', // type of field
+ 'label' => $this->l('Remove default blocks (if you using yours custom blocks)'), // label to display
+ 'description' => $this->l('Remove default blocks (if you using yours custom blocks)'), // description to display
+ 'tab' => 'Settings',
+ 'default' => false, // default value (Boolean)
+ 'private' => true,
+ ],
+ ];
+ }
+
+ /**
+ * Register blocks into prettyblocks
+ * register smartyblock
+ */
+ public function hookActionRegisterBlock($params)
+ {
+ $defaultsBlocks = [
+ new PrettyBlocksProductDescriptionBlock($this),
+ new PrettyBlocksProductDescriptionShortBlock($this),
+ new PrettyBlocksCmsContentBlock($this),
+ new PrettyBlocksCategoryDescriptionBlock($this),
+ ];
+
+ if (!TplSettings::getSettings('remove_default_blocks')) {
+ $defaultsBlocks[] = new PrettyBlocksTinySlider($this);
+ $defaultsBlocks[] = new PrettyBlocksCustomImage($this);
+ $defaultsBlocks[] = new PrettyBlocksFAQ($this);
+ $defaultsBlocks[] = new PrettyBlocksCustomText($this);
+ $defaultsBlocks[] = new PrettyBlocksFeaturedProducts($this);
+ $defaultsBlocks[] = new PrettyBlocksTitle($this);
+ $defaultsBlocks[] = new PrettyBlocksRenderModule($this);
+ $defaultsBlocks[] = new PrettyBlocksRenderHook($this);
+ }
+
+ return HelperBuilder::renderBlocks($defaultsBlocks);
+ }
+
+ protected function getCacheId($name = null)
+ {
+ $cacheId = 'prettyblocks|' . parent::getCacheId($name);
+ /* if (!empty($this->context->customer->id)) {
+ $cacheId .= '|' . $this->context->customer->id;
+ } */
+
+ return $cacheId;
+ }
+
+ public function clearCache($var)
+ {
+ $this->_clearCache($var);
}
}
diff --git a/src/Controller/AdminThemeManagerController.php b/src/Controller/AdminThemeManagerController.php
index 0b86fb5a..d52257ea 100644
--- a/src/Controller/AdminThemeManagerController.php
+++ b/src/Controller/AdminThemeManagerController.php
@@ -120,9 +120,19 @@ private function getShops()
{
$shops = \Shop::getShops();
$results = [];
+ $link = new \Link();
foreach ($shops as $shop) {
$shop['current_url'] = $this->buildShopUri($shop);
+ $shop['base_url'] = $link->getPageLink(
+ 'index',
+ true,
+ (int) \Configuration::get('PS_LANG_DEFAULT', null, null, $shop['id_shop']),
+ [],
+ false,
+ $shop['id_shop'],
+ false
+ );
$results[] = $shop;
}
@@ -168,7 +178,7 @@ public function indexAction()
$js_entry = '';
if ($filesystem->exists($build_dir)) {
// load manifest.json
- $manifest = $build_dir . 'manifest.json';
+ $manifest = $build_dir . '.vite/manifest.json';
if (!$filesystem->exists($manifest)) {
throw new \Exception('manifest.json not exist');
@@ -208,12 +218,37 @@ public function indexAction()
// url to load at startup : provided url or shop home page
$startup_url = \Tools::getValue('startup_url', $shop_url);
+ if (\Tools::getValue('endpoint')) {
+ switch (\Tools::getValue('endpoint')) {
+ case 'product':
+ $startup_url = $link->getProductLink((int) \Tools::getValue('id'));
+ break;
+ case 'category':
+ $startup_url = $link->getCategoryLink((int) \Tools::getValue('id'));
+ break;
+ case 'cms':
+ $startup_url = $link->getCMSLink((int) \Tools::getValue('id'));
+ break;
+ case 'custom':
+ $startup_url = $startup_url;
+ break;
+ }
+ }
+ // register .env
+ $module->loadDotEnv();
+
return $this->render('@Modules/prettyblocks/views/templates/admin/index.html.twig', [
'css_back_custom' => $uri,
'base_url' => $link->getBaseLink(),
'favicon_url' => \Tools::getShopDomainSsl(true) . '/modules/' . $module->name . '/views/images/favicon.ico',
'module_name' => $module->displayName,
'shop_name' => $context->shop->name,
+ 'env' => [
+ 'vitedev' => filter_var(getenv('PRETTYBLOCKS_VITE_DEV'), FILTER_VALIDATE_BOOLEAN) ?? false,
+ 'PRETTYBLOCKS_VITE_HOST' => getenv('PRETTYBLOCKS_VITE_HOST') ? getenv('PRETTYBLOCKS_VITE_HOST') : 'http://localhost:3002/',
+ 'iframe_sandbox' => getenv('PRETTYBLOCKS_IFRAME_SANDBOX') ? getenv('PRETTYBLOCKS_IFRAME_SANDBOX') : 'allow-same-origin allow-scripts allow-forms allow-popups allow-presentation allow-top-navigation allow-pointer-lock allow-popups-to-escape-sandbox allow-modals allow-top-navigation-by-user-activation',
+ ],
+
'ajax_urls' => [
'shops' => $shops,
'simulate_home' => $symfonyUrl,
@@ -231,6 +266,7 @@ public function indexAction()
'block_action_urls' => $blockUrl,
'theme_settings' => $settingsUrls,
'startup_url' => $startup_url,
+ 'prettyblocks_route_generator' => $this->getSFUrl('prettyblocks_route_generator'),
],
'trans_app' => [
'current_shop' => $translator->trans('Shop in modification', [], 'Modules.Prettyblocks.Admin'),
@@ -247,6 +283,25 @@ public function indexAction()
'ex_color' => $translator->trans('Add a color ex: #123456', [], 'Modules.Prettyblocks.Admin'),
'theme_settings' => $translator->trans('Theme settings', [], 'Modules.Prettyblocks.Admin'),
'type_search_here' => $translator->trans('Type your search here', [], 'Modules.Prettyblocks.Admin'),
+ 'search_blocks' => $translator->trans('Search blocks', [], 'Modules.Prettyblocks.Admin'),
+ 'is_cached' => $translator->trans('Enable cache', [], 'Modules.Prettyblocks.Admin'),
+ 'paddings' => $translator->trans('Paddings', [], 'Modules.Prettyblocks.Admin'),
+ 'top' => $translator->trans('Top', [], 'Modules.Prettyblocks.Admin'),
+ 'right' => $translator->trans('Right', [], 'Modules.Prettyblocks.Admin'),
+ 'bottom' => $translator->trans('Bottom', [], 'Modules.Prettyblocks.Admin'),
+ 'left' => $translator->trans('Left', [], 'Modules.Prettyblocks.Admin'),
+ 'margins' => $translator->trans('Margins', [], 'Modules.Prettyblocks.Admin'),
+ 'use_custom_entry' => $translator->trans('Use custom entries (px, rem etc..)', [], 'Modules.Prettyblocks.Admin'),
+ 'auto_size_section' => $translator->trans('Auto sizing', [], 'Modules.Prettyblocks.Admin'),
+ 'paddings_section_help' => $translator->trans('Padding is the space inside an element, between its content and its boundary', [], 'Modules.Prettyblocks.Admin'),
+ 'margins_section_help' => $translator->trans('Margin refers to the space outside an element, separating it from other elements', [], 'Modules.Prettyblocks.Admin'),
+ 'force_full_width' => $translator->trans('Stretch section to 100%', [], 'Modules.Prettyblocks.Admin'),
+ 'position_updated' => $translator->trans('Position updated successfully', [], 'Modules.Prettyblocks.Admin'),
+ 'element_removed' => $translator->trans('Element removed successfully', [], 'Modules.Prettyblocks.Admin'),
+ 'element_added' => $translator->trans('Element added successfully', [], 'Modules.Prettyblocks.Admin'),
+ 'error_console' => $translator->trans('An error occurred while processing your request', [], 'Modules.Prettyblocks.Admin'),
+ 'duplicate_state_error' => $translator->trans('An error occurred while duplicating the element', [], 'Modules.Prettyblocks.Admin'),
+ 'get_pro' => $translator->trans('Get Pro Blocks', [], 'Modules.Prettyblocks.Admin'),
],
'security_app' => [
'ajax_token' => \Configuration::getGlobalValue('_PRETTYBLOCKS_TOKEN_'),
@@ -594,7 +649,7 @@ public function getCollectionAction(Request $request)
*
* @return string
*/
- protected function getLangLink($idLang = null, \Context $context = null, $idShop = null)
+ protected function getLangLink($idLang = null, ?\Context $context = null, $idShop = null)
{
static $psRewritingSettings = null;
if ($psRewritingSettings === null) {
@@ -615,4 +670,26 @@ protected function getLangLink($idLang = null, \Context $context = null, $idShop
return \Language::getIsoById($idLang) . '/';
}
+
+ /**
+ * Generate URL for PrettyBlocks
+ */
+ public function routeGeneratorAction(Request $request)
+ {
+ $posts = json_decode($request->getContent(), true);
+ $endpoint = $posts['endpoint'];
+ $id = (int) $posts['id'];
+ $startup_url = $posts['startup_url'] ?? '';
+
+ $router = $this->get('router');
+ $url = $router->generate('admin_prettyblocks', [
+ 'endpoint' => $endpoint,
+ 'id' => $id,
+ 'startup_url' => $startup_url,
+ ]);
+
+ return (new JsonResponse())->setData([
+ 'url' => $url,
+ ]);
+ }
}
diff --git a/src/Core/Grid/Column/Type/PrettyBlocksButtonColumn.php b/src/Core/Grid/Column/Type/PrettyBlocksButtonColumn.php
new file mode 100644
index 00000000..7f402b6c
--- /dev/null
+++ b/src/Core/Grid/Column/Type/PrettyBlocksButtonColumn.php
@@ -0,0 +1,96 @@
+
+ * @copyright Since 2007 PrestaShop SA and Contributors
+ * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
+ */
+
+namespace PrestaSafe\PrettyBlocks\Core\Grid\Column\Type;
+
+use PrestaShop\PrestaShop\Core\Grid\Column\AbstractColumn;
+use Symfony\Component\OptionsResolver\OptionsResolver;
+
+/**
+ * Class LinkColumn is used to define column which is link to record action (view, edit, add).
+ */
+final class PrettyBlocksButtonColumn extends AbstractColumn
+{
+ /**
+ * {@inheritdoc}
+ */
+ public function getType()
+ {
+ return 'prettyblocks-column-button';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function configureOptions(OptionsResolver $resolver)
+ {
+ parent::configureOptions($resolver);
+ $resolver
+ ->setDefaults([
+ 'icon' => null,
+ 'route_fragment' => null,
+ 'button_template' => false,
+ 'color_template' => 'primary',
+ 'color_template_field' => null,
+ ])
+ ->setRequired([
+ 'field',
+ 'route',
+ 'route_param_name',
+ 'route_param_field',
+ 'endpoint',
+ ])
+ ->setDefined([
+ 'icon',
+ 'target',
+ ])
+ ->setAllowedTypes('field', ['string', 'null'])
+ ->setAllowedTypes('endpoint', ['string', 'custom'])
+ ->setAllowedTypes('icon', ['string', 'null'])
+ ->setAllowedTypes('target', ['string', 'null'])
+ ->setAllowedTypes('color_template_field', ['string', 'null'])
+ ->setAllowedTypes('sortable', 'bool')
+ ->setAllowedTypes('route', 'string')
+ ->setAllowedTypes('route_fragment', ['string', 'null'])
+ ->setAllowedTypes('route_param_name', 'string')
+ ->setAllowedTypes('route_param_field', 'string')
+ ->setAllowedTypes('clickable', 'bool')
+ ->setAllowedValues('color_template', [
+ 'primary',
+ 'secondary',
+ 'success',
+ 'danger',
+ 'warning',
+ 'info',
+ ])
+ ->setAllowedValues('button_template', [
+ false,
+ 'outline',
+ 'normal',
+ ])
+ ;
+ }
+}
diff --git a/src/Core/Grid/Column/Type/index.php b/src/Core/Grid/Column/Type/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/src/Core/Grid/Column/Type/index.php
@@ -0,0 +1,11 @@
+
+ * @copyright Since 2020 PrestaSafe and contributors
+ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
+ * International Registered Trademark & Property of PrestaSafe
+ */
+if (!defined('_PS_VERSION_')) {
+ exit;
+}
+
+/**
+ * @param prettyblocks $module
+ *
+ * @return bool|string
+ *
+ * @throws PrestaShopDatabaseException
+ * @throws PrestaShopException
+ */
+function upgrade_module_3_1_0($module)
+{
+ $module->registerHook('ActionRegisterBlock');
+
+ return true;
+}
diff --git a/views/PrestaShop/Admin/Common/Grid/Columns/Content/index.php b/views/PrestaShop/Admin/Common/Grid/Columns/Content/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/views/PrestaShop/Admin/Common/Grid/Columns/Content/index.php
@@ -0,0 +1,11 @@
+
+ * @copyright Since 2007 PrestaShop SA and Contributors
+ * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
+ *#}
+
+
+
+
diff --git a/views/PrestaShop/Admin/Common/Grid/Columns/index.php b/views/PrestaShop/Admin/Common/Grid/Columns/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/views/PrestaShop/Admin/Common/Grid/Columns/index.php
@@ -0,0 +1,11 @@
+=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@isaacs/cliui": {
+ "version": "8.0.2",
+ "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",
+ "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",
+ "dev": true,
+ "dependencies": {
+ "string-width": "^5.1.2",
+ "string-width-cjs": "npm:string-width@^4.2.0",
+ "strip-ansi": "^7.0.1",
+ "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
+ "wrap-ansi": "^8.1.0",
+ "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@jridgewell/gen-mapping": {
+ "version": "0.3.5",
+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz",
+ "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==",
+ "dev": true,
+ "dependencies": {
+ "@jridgewell/set-array": "^1.2.1",
+ "@jridgewell/sourcemap-codec": "^1.4.10",
+ "@jridgewell/trace-mapping": "^0.3.24"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/resolve-uri": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/set-array": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
+ "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
+ "dev": true,
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.4.15",
+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
+ "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
+ "dev": true
+ },
+ "node_modules/@jridgewell/trace-mapping": {
+ "version": "0.3.25",
+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
+ "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
+ "dev": true,
+ "dependencies": {
+ "@jridgewell/resolve-uri": "^3.1.0",
+ "@jridgewell/sourcemap-codec": "^1.4.14"
+ }
+ },
+ "node_modules/@nodelib/fs.scandir": {
+ "version": "2.1.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
+ "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.stat": "2.0.5",
+ "run-parallel": "^1.1.9"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.stat": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
+ "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@nodelib/fs.walk": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
+ "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.scandir": "2.1.5",
+ "fastq": "^1.6.0"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/@pkgjs/parseargs": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",
+ "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",
+ "dev": true,
+ "optional": true,
+ "engines": {
+ "node": ">=14"
+ }
+ },
+ "node_modules/ansi-regex": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",
+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"
+ }
+ },
+ "node_modules/ansi-styles": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",
+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/any-promise": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",
+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",
+ "dev": true
+ },
+ "node_modules/anymatch": {
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
+ "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
+ "dev": true,
+ "dependencies": {
+ "normalize-path": "^3.0.0",
+ "picomatch": "^2.0.4"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/arg": {
+ "version": "5.0.2",
+ "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
+ "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
+ "dev": true
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "dev": true
+ },
+ "node_modules/binary-extensions": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
+ "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
+ "dev": true,
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "node_modules/braces": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
+ "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
+ "dev": true,
+ "dependencies": {
+ "fill-range": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/camelcase-css": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",
+ "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",
+ "dev": true,
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/chokidar": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
+ "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
+ "dev": true,
+ "dependencies": {
+ "anymatch": "~3.1.2",
+ "braces": "~3.0.2",
+ "glob-parent": "~5.1.2",
+ "is-binary-path": "~2.1.0",
+ "is-glob": "~4.0.1",
+ "normalize-path": "~3.0.0",
+ "readdirp": "~3.6.0"
+ },
+ "engines": {
+ "node": ">= 8.10.0"
+ },
+ "funding": {
+ "url": "https://paulmillr.com/funding/"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/chokidar/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/color-convert": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
+ "dependencies": {
+ "color-name": "~1.1.4"
+ },
+ "engines": {
+ "node": ">=7.0.0"
+ }
+ },
+ "node_modules/color-name": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
+ },
+ "node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "dev": true,
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cssesc": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
+ "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
+ "dev": true,
+ "bin": {
+ "cssesc": "bin/cssesc"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/didyoumean": {
+ "version": "1.2.2",
+ "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
+ "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",
+ "dev": true
+ },
+ "node_modules/dlv": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",
+ "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",
+ "dev": true
+ },
+ "node_modules/eastasianwidth": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",
+ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",
+ "dev": true
+ },
+ "node_modules/emoji-regex": {
+ "version": "9.2.2",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
+ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
+ "dev": true
+ },
+ "node_modules/fast-glob": {
+ "version": "3.3.2",
+ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
+ "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
+ "dev": true,
+ "dependencies": {
+ "@nodelib/fs.stat": "^2.0.2",
+ "@nodelib/fs.walk": "^1.2.3",
+ "glob-parent": "^5.1.2",
+ "merge2": "^1.3.0",
+ "micromatch": "^4.0.4"
+ },
+ "engines": {
+ "node": ">=8.6.0"
+ }
+ },
+ "node_modules/fast-glob/node_modules/glob-parent": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/fastq": {
+ "version": "1.17.1",
+ "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
+ "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
+ "dev": true,
+ "dependencies": {
+ "reusify": "^1.0.4"
+ }
+ },
+ "node_modules/fill-range": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
+ "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==",
+ "dev": true,
+ "dependencies": {
+ "to-regex-range": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/foreground-child": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz",
+ "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.0",
+ "signal-exit": "^4.0.1"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/glob": {
+ "version": "10.3.12",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.12.tgz",
+ "integrity": "sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==",
+ "dev": true,
+ "dependencies": {
+ "foreground-child": "^3.1.0",
+ "jackspeak": "^2.3.6",
+ "minimatch": "^9.0.1",
+ "minipass": "^7.0.4",
+ "path-scurry": "^1.10.2"
+ },
+ "bin": {
+ "glob": "dist/esm/bin.mjs"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/glob-parent": {
+ "version": "6.0.2",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",
+ "dev": true,
+ "dependencies": {
+ "is-glob": "^4.0.3"
+ },
+ "engines": {
+ "node": ">=10.13.0"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "dev": true,
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/is-binary-path": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
+ "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
+ "dev": true,
+ "dependencies": {
+ "binary-extensions": "^2.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-core-module": {
+ "version": "2.13.1",
+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz",
+ "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==",
+ "dev": true,
+ "dependencies": {
+ "hasown": "^2.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/is-extglob": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
+ "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-fullwidth-code-point": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/is-glob": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
+ "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
+ "dev": true,
+ "dependencies": {
+ "is-extglob": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/is-number": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
+ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.12.0"
+ }
+ },
+ "node_modules/isexe": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true
+ },
+ "node_modules/jackspeak": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-2.3.6.tgz",
+ "integrity": "sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==",
+ "dev": true,
+ "dependencies": {
+ "@isaacs/cliui": "^8.0.2"
+ },
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ },
+ "optionalDependencies": {
+ "@pkgjs/parseargs": "^0.11.0"
+ }
+ },
+ "node_modules/jiti": {
+ "version": "1.21.0",
+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.0.tgz",
+ "integrity": "sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q==",
+ "dev": true,
+ "bin": {
+ "jiti": "bin/jiti.js"
+ }
+ },
+ "node_modules/lilconfig": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",
+ "integrity": "sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/lines-and-columns": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",
+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",
+ "dev": true
+ },
+ "node_modules/lru-cache": {
+ "version": "10.2.2",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz",
+ "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==",
+ "dev": true,
+ "engines": {
+ "node": "14 || >=16.14"
+ }
+ },
+ "node_modules/merge2": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
+ "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/micromatch": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
+ "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
+ "dev": true,
+ "dependencies": {
+ "braces": "^3.0.2",
+ "picomatch": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=8.6"
+ }
+ },
+ "node_modules/minimatch": {
+ "version": "9.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
+ "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
+ "dev": true,
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/minipass": {
+ "version": "7.0.4",
+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.0.4.tgz",
+ "integrity": "sha512-jYofLM5Dam9279rdkWzqHozUo4ybjdZmCsDHePy5V/PbBcVMiSZR97gmAy45aqi8CK1lG2ECd356FU86avfwUQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/mz": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",
+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",
+ "dev": true,
+ "dependencies": {
+ "any-promise": "^1.0.0",
+ "object-assign": "^4.0.1",
+ "thenify-all": "^1.0.0"
+ }
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.7",
+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz",
+ "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/object-hash": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",
+ "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",
+ "dev": true,
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/path-key": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
+ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/path-parse": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",
+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",
+ "dev": true
+ },
+ "node_modules/path-scurry": {
+ "version": "1.10.2",
+ "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.10.2.tgz",
+ "integrity": "sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==",
+ "dev": true,
+ "dependencies": {
+ "lru-cache": "^10.2.0",
+ "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
+ "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==",
+ "dev": true
+ },
+ "node_modules/picomatch": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
+ "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
+ "dev": true,
+ "engines": {
+ "node": ">=8.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/jonschlinkert"
+ }
+ },
+ "node_modules/pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/pirates": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz",
+ "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==",
+ "dev": true,
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/postcss": {
+ "version": "8.4.38",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",
+ "integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "dependencies": {
+ "nanoid": "^3.3.7",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.2.0"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/postcss-import": {
+ "version": "15.1.0",
+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",
+ "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",
+ "dev": true,
+ "dependencies": {
+ "postcss-value-parser": "^4.0.0",
+ "read-cache": "^1.0.0",
+ "resolve": "^1.1.7"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.0.0"
+ }
+ },
+ "node_modules/postcss-js": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",
+ "integrity": "sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==",
+ "dev": true,
+ "dependencies": {
+ "camelcase-css": "^2.0.1"
+ },
+ "engines": {
+ "node": "^12 || ^14 || >= 16"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4.21"
+ }
+ },
+ "node_modules/postcss-load-config": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz",
+ "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "dependencies": {
+ "lilconfig": "^3.0.0",
+ "yaml": "^2.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ },
+ "peerDependencies": {
+ "postcss": ">=8.0.9",
+ "ts-node": ">=9.0.0"
+ },
+ "peerDependenciesMeta": {
+ "postcss": {
+ "optional": true
+ },
+ "ts-node": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/postcss-load-config/node_modules/lilconfig": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.1.tgz",
+ "integrity": "sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antonk52"
+ }
+ },
+ "node_modules/postcss-nested": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
+ "integrity": "sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==",
+ "dev": true,
+ "dependencies": {
+ "postcss-selector-parser": "^6.0.11"
+ },
+ "engines": {
+ "node": ">=12.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ "peerDependencies": {
+ "postcss": "^8.2.14"
+ }
+ },
+ "node_modules/postcss-selector-parser": {
+ "version": "6.0.16",
+ "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz",
+ "integrity": "sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw==",
+ "dev": true,
+ "dependencies": {
+ "cssesc": "^3.0.0",
+ "util-deprecate": "^1.0.2"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postcss-value-parser": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",
+ "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",
+ "dev": true
+ },
+ "node_modules/queue-microtask": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
+ "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ]
+ },
+ "node_modules/read-cache": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",
+ "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",
+ "dev": true,
+ "dependencies": {
+ "pify": "^2.3.0"
+ }
+ },
+ "node_modules/readdirp": {
+ "version": "3.6.0",
+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
+ "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
+ "dev": true,
+ "dependencies": {
+ "picomatch": "^2.2.1"
+ },
+ "engines": {
+ "node": ">=8.10.0"
+ }
+ },
+ "node_modules/resolve": {
+ "version": "1.22.8",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz",
+ "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==",
+ "dev": true,
+ "dependencies": {
+ "is-core-module": "^2.13.0",
+ "path-parse": "^1.0.7",
+ "supports-preserve-symlinks-flag": "^1.0.0"
+ },
+ "bin": {
+ "resolve": "bin/resolve"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/reusify": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
+ "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
+ "dev": true,
+ "engines": {
+ "iojs": ">=1.0.0",
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/run-parallel": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
+ "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "dependencies": {
+ "queue-microtask": "^1.2.2"
+ }
+ },
+ "node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/signal-exit": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",
+ "dev": true,
+ "engines": {
+ "node": ">=14"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
+ "integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
+ "dev": true,
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/string-width": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",
+ "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",
+ "dev": true,
+ "dependencies": {
+ "eastasianwidth": "^0.2.0",
+ "emoji-regex": "^9.2.2",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/string-width-cjs": {
+ "name": "string-width",
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/string-width-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "node_modules/string-width-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"
+ }
+ },
+ "node_modules/strip-ansi-cjs": {
+ "name": "strip-ansi",
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/sucrase": {
+ "version": "3.35.0",
+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",
+ "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",
+ "dev": true,
+ "dependencies": {
+ "@jridgewell/gen-mapping": "^0.3.2",
+ "commander": "^4.0.0",
+ "glob": "^10.3.10",
+ "lines-and-columns": "^1.1.6",
+ "mz": "^2.7.0",
+ "pirates": "^4.0.1",
+ "ts-interface-checker": "^0.1.9"
+ },
+ "bin": {
+ "sucrase": "bin/sucrase",
+ "sucrase-node": "bin/sucrase-node"
+ },
+ "engines": {
+ "node": ">=16 || 14 >=14.17"
+ }
+ },
+ "node_modules/supports-preserve-symlinks-flag": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",
+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",
+ "dev": true,
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/tailwindcss": {
+ "version": "3.4.3",
+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.3.tgz",
+ "integrity": "sha512-U7sxQk/n397Bmx4JHbJx/iSOOv5G+II3f1kpLpY2QeUv5DcPdcTsYLlusZfq1NthHS1c1cZoyFmmkex1rzke0A==",
+ "dev": true,
+ "dependencies": {
+ "@alloc/quick-lru": "^5.2.0",
+ "arg": "^5.0.2",
+ "chokidar": "^3.5.3",
+ "didyoumean": "^1.2.2",
+ "dlv": "^1.1.3",
+ "fast-glob": "^3.3.0",
+ "glob-parent": "^6.0.2",
+ "is-glob": "^4.0.3",
+ "jiti": "^1.21.0",
+ "lilconfig": "^2.1.0",
+ "micromatch": "^4.0.5",
+ "normalize-path": "^3.0.0",
+ "object-hash": "^3.0.0",
+ "picocolors": "^1.0.0",
+ "postcss": "^8.4.23",
+ "postcss-import": "^15.1.0",
+ "postcss-js": "^4.0.1",
+ "postcss-load-config": "^4.0.1",
+ "postcss-nested": "^6.0.1",
+ "postcss-selector-parser": "^6.0.11",
+ "resolve": "^1.22.2",
+ "sucrase": "^3.32.0"
+ },
+ "bin": {
+ "tailwind": "lib/cli.js",
+ "tailwindcss": "lib/cli.js"
+ },
+ "engines": {
+ "node": ">=14.0.0"
+ }
+ },
+ "node_modules/thenify": {
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",
+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",
+ "dev": true,
+ "dependencies": {
+ "any-promise": "^1.0.0"
+ }
+ },
+ "node_modules/thenify-all": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",
+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",
+ "dev": true,
+ "dependencies": {
+ "thenify": ">= 3.1.0 < 4"
+ },
+ "engines": {
+ "node": ">=0.8"
+ }
+ },
+ "node_modules/to-regex-range": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
+ "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
+ "dev": true,
+ "dependencies": {
+ "is-number": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=8.0"
+ }
+ },
+ "node_modules/ts-interface-checker": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",
+ "dev": true
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "dev": true
+ },
+ "node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/wrap-ansi": {
+ "version": "8.1.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",
+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^6.1.0",
+ "string-width": "^5.0.1",
+ "strip-ansi": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs": {
+ "name": "wrap-ansi",
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
+ "dev": true,
+ "dependencies": {
+ "ansi-styles": "^4.0.0",
+ "string-width": "^4.1.0",
+ "strip-ansi": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
+ "dependencies": {
+ "color-convert": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ },
+ "funding": {
+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
+ "dev": true
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
+ "dev": true,
+ "dependencies": {
+ "emoji-regex": "^8.0.0",
+ "is-fullwidth-code-point": "^3.0.0",
+ "strip-ansi": "^6.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
+ "dev": true,
+ "dependencies": {
+ "ansi-regex": "^5.0.1"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/yaml": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.2.tgz",
+ "integrity": "sha512-B3VqDZ+JAg1nZpaEmWtTXUlBneoGx6CPM9b0TENK6aoSu5t73dItudwdgmi6tHlIZZId4dZ9skcAQ2UbcyAeVA==",
+ "dev": true,
+ "bin": {
+ "yaml": "bin.mjs"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ }
+ }
+}
diff --git a/views/css/_dev/package.json b/views/css/_dev/package.json
new file mode 100644
index 00000000..780ee1d2
--- /dev/null
+++ b/views/css/_dev/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "prettyblocks_assets",
+ "version": "1.0.0",
+ "description": "Prettyblocks assets defaults blocks",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "dev": "npx tailwindcss -i ./main.css -o ../dist/main.css --watch"
+ },
+ "keywords": [
+ "prettyblocks"
+ ],
+ "author": "PrestaSafe",
+ "license": "AFL-3.0",
+ "devDependencies": {
+ "tailwindcss": "^3.4.3"
+ }
+}
diff --git a/views/css/_dev/tailwind.config.js b/views/css/_dev/tailwind.config.js
new file mode 100644
index 00000000..2045df44
--- /dev/null
+++ b/views/css/_dev/tailwind.config.js
@@ -0,0 +1,10 @@
+/** @type {import('tailwindcss').Config} */
+module.exports = {
+ prefix: 'tw_',
+ content: ["../../../views/**/*.{html,js,tpl,css,scss}"],
+ theme: {
+ extend: {},
+ },
+ plugins: [],
+}
+
diff --git a/views/css/back.css b/views/css/back.css
new file mode 100644
index 00000000..5981fc54
--- /dev/null
+++ b/views/css/back.css
@@ -0,0 +1,15 @@
+#subtab-AdminThemeManagerController {
+ padding: 0 4px
+}
+
+#subtab-AdminThemeManagerController i{
+ font-size: 0;
+ background-image: url(../../logo.png);
+ background-size: contain;
+ background-repeat: no-repeat;
+ background-position: left;
+ width: 19px;
+ height: 16px;
+ display: inline-block;
+ vertical-align: middle;
+}
\ No newline at end of file
diff --git a/views/css/dist/index.php b/views/css/dist/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/views/css/dist/index.php
@@ -0,0 +1,11 @@
+ :not([hidden]) ~ :not([hidden]) {
+ --tw-space-x-reverse: 0;
+ margin-right: calc(0.5rem * var(--tw-space-x-reverse));
+ margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
+}
+
+.tw_rounded {
+ border-radius: 0.25rem;
+}
+
+.tw_rounded-md {
+ border-radius: 0.375rem;
+}
+
+.tw_rounded-tl-lg {
+ border-top-left-radius: 0.5rem;
+}
+
+.tw_rounded-tr-lg {
+ border-top-right-radius: 0.5rem;
+}
+
+.tw_border {
+ border-width: 1px;
+}
+
+.tw_border-0 {
+ border-width: 0px;
+}
+
+.tw_bg-blue-500 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(59 130 246 / var(--tw-bg-opacity));
+}
+
+.tw_bg-orange-500 {
+ --tw-bg-opacity: 1;
+ background-color: rgb(249 115 22 / var(--tw-bg-opacity));
+}
+
+.tw_bg-white {
+ --tw-bg-opacity: 1;
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
+}
+
+.tw_p-4 {
+ padding: 1rem;
+}
+
+.tw_px-1 {
+ padding-left: 0.25rem;
+ padding-right: 0.25rem;
+}
+
+.tw_px-2 {
+ padding-left: 0.5rem;
+ padding-right: 0.5rem;
+}
+
+.tw_px-3 {
+ padding-left: 0.75rem;
+ padding-right: 0.75rem;
+}
+
+.tw_px-4 {
+ padding-left: 1rem;
+ padding-right: 1rem;
+}
+
+.tw_px-6 {
+ padding-left: 1.5rem;
+ padding-right: 1.5rem;
+}
+
+.tw_py-0 {
+ padding-top: 0px;
+ padding-bottom: 0px;
+}
+
+.tw_py-0\.5 {
+ padding-top: 0.125rem;
+ padding-bottom: 0.125rem;
+}
+
+.tw_py-1 {
+ padding-top: 0.25rem;
+ padding-bottom: 0.25rem;
+}
+
+.tw_py-10 {
+ padding-top: 2.5rem;
+ padding-bottom: 2.5rem;
+}
+
+.tw_py-2 {
+ padding-top: 0.5rem;
+ padding-bottom: 0.5rem;
+}
+
+.tw_py-4 {
+ padding-top: 1rem;
+ padding-bottom: 1rem;
+}
+
+.tw_pb-0 {
+ padding-bottom: 0px;
+}
+
+.tw_pb-1 {
+ padding-bottom: 0.25rem;
+}
+
+.tw_pb-10 {
+ padding-bottom: 2.5rem;
+}
+
+.tw_pb-11 {
+ padding-bottom: 2.75rem;
+}
+
+.tw_pb-12 {
+ padding-bottom: 3rem;
+}
+
+.tw_pb-2 {
+ padding-bottom: 0.5rem;
+}
+
+.tw_pb-3 {
+ padding-bottom: 0.75rem;
+}
+
+.tw_pb-4 {
+ padding-bottom: 1rem;
+}
+
+.tw_pb-5 {
+ padding-bottom: 1.25rem;
+}
+
+.tw_pb-6 {
+ padding-bottom: 1.5rem;
+}
+
+.tw_pb-7 {
+ padding-bottom: 1.75rem;
+}
+
+.tw_pb-8 {
+ padding-bottom: 2rem;
+}
+
+.tw_pb-9 {
+ padding-bottom: 2.25rem;
+}
+
+.tw_pl-0 {
+ padding-left: 0px;
+}
+
+.tw_pl-1 {
+ padding-left: 0.25rem;
+}
+
+.tw_pl-10 {
+ padding-left: 2.5rem;
+}
+
+.tw_pl-11 {
+ padding-left: 2.75rem;
+}
+
+.tw_pl-12 {
+ padding-left: 3rem;
+}
+
+.tw_pl-2 {
+ padding-left: 0.5rem;
+}
+
+.tw_pl-3 {
+ padding-left: 0.75rem;
+}
+
+.tw_pl-4 {
+ padding-left: 1rem;
+}
+
+.tw_pl-5 {
+ padding-left: 1.25rem;
+}
+
+.tw_pl-6 {
+ padding-left: 1.5rem;
+}
+
+.tw_pl-7 {
+ padding-left: 1.75rem;
+}
+
+.tw_pl-8 {
+ padding-left: 2rem;
+}
+
+.tw_pl-9 {
+ padding-left: 2.25rem;
+}
+
+.tw_pl-96 {
+ padding-left: 24rem;
+}
+
+.tw_pr-0 {
+ padding-right: 0px;
+}
+
+.tw_pr-1 {
+ padding-right: 0.25rem;
+}
+
+.tw_pr-10 {
+ padding-right: 2.5rem;
+}
+
+.tw_pr-11 {
+ padding-right: 2.75rem;
+}
+
+.tw_pr-12 {
+ padding-right: 3rem;
+}
+
+.tw_pr-2 {
+ padding-right: 0.5rem;
+}
+
+.tw_pr-3 {
+ padding-right: 0.75rem;
+}
+
+.tw_pr-4 {
+ padding-right: 1rem;
+}
+
+.tw_pr-5 {
+ padding-right: 1.25rem;
+}
+
+.tw_pr-6 {
+ padding-right: 1.5rem;
+}
+
+.tw_pr-7 {
+ padding-right: 1.75rem;
+}
+
+.tw_pr-8 {
+ padding-right: 2rem;
+}
+
+.tw_pr-9 {
+ padding-right: 2.25rem;
+}
+
+.tw_pt-0 {
+ padding-top: 0px;
+}
+
+.tw_pt-1 {
+ padding-top: 0.25rem;
+}
+
+.tw_pt-10 {
+ padding-top: 2.5rem;
+}
+
+.tw_pt-11 {
+ padding-top: 2.75rem;
+}
+
+.tw_pt-12 {
+ padding-top: 3rem;
+}
+
+.tw_pt-2 {
+ padding-top: 0.5rem;
+}
+
+.tw_pt-3 {
+ padding-top: 0.75rem;
+}
+
+.tw_pt-4 {
+ padding-top: 1rem;
+}
+
+.tw_pt-5 {
+ padding-top: 1.25rem;
+}
+
+.tw_pt-6 {
+ padding-top: 1.5rem;
+}
+
+.tw_pt-7 {
+ padding-top: 1.75rem;
+}
+
+.tw_pt-8 {
+ padding-top: 2rem;
+}
+
+.tw_pt-9 {
+ padding-top: 2.25rem;
+}
+
+.tw_text-center {
+ text-align: center;
+}
+
+.tw_text-lg {
+ font-size: 1.125rem;
+ line-height: 1.75rem;
+}
+
+.tw_font-bold {
+ font-weight: 700;
+}
+
+.tw_font-semibold {
+ font-weight: 600;
+}
+
+.tw_uppercase {
+ text-transform: uppercase;
+}
+
+.tw_text-red-600 {
+ --tw-text-opacity: 1;
+ color: rgb(220 38 38 / var(--tw-text-opacity));
+}
+
+.tw_text-white {
+ --tw-text-opacity: 1;
+ color: rgb(255 255 255 / var(--tw-text-opacity));
+}
+
+.tw_line-through {
+ text-decoration-line: line-through;
+}
+
+.tw_shadow {
+ --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
+ --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
+}
+
+.img-flexible {
+ max-width: 100%;
+ height: auto;
+ display: inline-block;
+}
+
+.title-center {
+ text-align: center;
+}
+
+:root {
+ --pd-s: 5px;
+ --pd-m: 10px;
+ --pd-l: 15px;
+ --pd-xl: 20px;
+ --pd-2xl: 25px;
+ --pd-3xl: 30px;
+ --pd-4xl: 35px;
+ --pd-5xl: 40px;
+ --bg: #fff;
+ --text: #7288a2;
+ --gray: #4d5974;
+ --lightgray: #e5e5e5;
+ --blue: #03b5d2;
+}
+
+.pd-s {
+ padding: var(--pd-s);
+}
+
+.pd-m {
+ padding: var(--pd-m);
+}
+
+.pd-l {
+ padding: var(--pd-l);
+}
+
+.pd-xl {
+ padding: var(--pd-xl);
+}
+
+.pd-2xl {
+ padding: var(--pd-2xl);
+}
+
+.pd-3xl {
+ padding: var(--pd-3xl);
+}
+
+.pd-4xl {
+ padding: var(--pd-4xl);
+}
+
+.pd-5xl {
+ padding: var(--pd-5xl);
+}
+
+/* FAQ */
+
+.accordion .accordion-item {
+ border-bottom: 1px solid var(--lightgray);
+}
+
+.accordion .accordion-item button[aria-expanded='true'] {
+ border-bottom: 1px solid var(--blue);
+}
+
+.accordion button {
+ position: relative;
+ display: block;
+ text-align: left;
+ width: 100%;
+ padding: 1em 0;
+ color: var(--text);
+ font-size: 1.15rem;
+ font-weight: 400;
+ border: none;
+ background: none;
+ outline: none;
+}
+
+.accordion button:hover, .accordion button:focus {
+ cursor: pointer;
+ color: var(--blue);
+}
+
+.accordion button:hover::after, .accordion button:focus::after {
+ cursor: pointer;
+ color: var(--blue);
+ border: 1px solid var(--blue);
+}
+
+.accordion .accordion-title {
+ padding: 1em 1.5em 1em 0;
+}
+
+.accordion .icon {
+ display: inline-block;
+ position: absolute;
+ top: 18px;
+ right: 0;
+ width: 22px;
+ height: 22px;
+ border: 1px solid;
+ border-radius: 22px;
+}
+
+.accordion .icon::before {
+ display: block;
+ position: absolute;
+ content: '';
+ top: 9px;
+ left: 5px;
+ width: 10px;
+ height: 2px;
+ background: currentColor;
+}
+
+.accordion .icon::after {
+ display: block;
+ position: absolute;
+ content: '';
+ top: 5px;
+ left: 9px;
+ width: 2px;
+ height: 10px;
+ background: currentColor;
+}
+
+.accordion button[aria-expanded='true'] {
+ color: var(--blue);
+}
+
+.accordion button[aria-expanded='true'] .icon::after {
+ width: 0;
+}
+
+.accordion button[aria-expanded='true'] + .accordion-content {
+ opacity: 1;
+ max-height: 9em;
+ transition: all 200ms linear;
+ will-change: opacity, max-height;
+ background-color: white;
+}
+
+.accordion .accordion-content {
+ opacity: 0;
+ max-height: 0;
+ overflow: hidden;
+ transition: opacity 200ms linear, max-height 200ms linear;
+ will-change: opacity, max-height;
+}
+
+.accordion .accordion-content p {
+ font-size: 1rem;
+ margin: 0.5em 0;
+ padding: 0 0.5em;
+}
+
+.container_force-full,
+._force-full{
+ width: 100vw;
+ position: relative;
+ left: 50%;
+ right: 50%;
+ transform: translateX(-50%);
+}
+
+.hover\:tw_bg-blue-700:hover {
+ --tw-bg-opacity: 1;
+ background-color: rgb(29 78 216 / var(--tw-bg-opacity));
+}
+
+@media (min-width: 640px) {
+ .sm\:tw_grid-cols-2 {
+ grid-template-columns: repeat(2, minmax(0, 1fr));
+ }
+}
+
+@media (min-width: 1024px) {
+ .lg\:tw_mb-0 {
+ margin-bottom: 0px;
+ }
+
+ .lg\:tw_mb-1 {
+ margin-bottom: 0.25rem;
+ }
+
+ .lg\:tw_mb-10 {
+ margin-bottom: 2.5rem;
+ }
+
+ .lg\:tw_mb-11 {
+ margin-bottom: 2.75rem;
+ }
+
+ .lg\:tw_mb-12 {
+ margin-bottom: 3rem;
+ }
+
+ .lg\:tw_mb-2 {
+ margin-bottom: 0.5rem;
+ }
+
+ .lg\:tw_mb-3 {
+ margin-bottom: 0.75rem;
+ }
+
+ .lg\:tw_mb-4 {
+ margin-bottom: 1rem;
+ }
+
+ .lg\:tw_mb-5 {
+ margin-bottom: 1.25rem;
+ }
+
+ .lg\:tw_mb-6 {
+ margin-bottom: 1.5rem;
+ }
+
+ .lg\:tw_mb-7 {
+ margin-bottom: 1.75rem;
+ }
+
+ .lg\:tw_mb-8 {
+ margin-bottom: 2rem;
+ }
+
+ .lg\:tw_mb-9 {
+ margin-bottom: 2.25rem;
+ }
+
+ .lg\:tw_ml-0 {
+ margin-left: 0px;
+ }
+
+ .lg\:tw_ml-1 {
+ margin-left: 0.25rem;
+ }
+
+ .lg\:tw_ml-10 {
+ margin-left: 2.5rem;
+ }
+
+ .lg\:tw_ml-11 {
+ margin-left: 2.75rem;
+ }
+
+ .lg\:tw_ml-12 {
+ margin-left: 3rem;
+ }
+
+ .lg\:tw_ml-2 {
+ margin-left: 0.5rem;
+ }
+
+ .lg\:tw_ml-3 {
+ margin-left: 0.75rem;
+ }
+
+ .lg\:tw_ml-4 {
+ margin-left: 1rem;
+ }
+
+ .lg\:tw_ml-5 {
+ margin-left: 1.25rem;
+ }
+
+ .lg\:tw_ml-6 {
+ margin-left: 1.5rem;
+ }
+
+ .lg\:tw_ml-7 {
+ margin-left: 1.75rem;
+ }
+
+ .lg\:tw_ml-8 {
+ margin-left: 2rem;
+ }
+
+ .lg\:tw_ml-9 {
+ margin-left: 2.25rem;
+ }
+
+ .lg\:tw_mr-0 {
+ margin-right: 0px;
+ }
+
+ .lg\:tw_mr-1 {
+ margin-right: 0.25rem;
+ }
+
+ .lg\:tw_mr-10 {
+ margin-right: 2.5rem;
+ }
+
+ .lg\:tw_mr-11 {
+ margin-right: 2.75rem;
+ }
+
+ .lg\:tw_mr-12 {
+ margin-right: 3rem;
+ }
+
+ .lg\:tw_mr-2 {
+ margin-right: 0.5rem;
+ }
+
+ .lg\:tw_mr-3 {
+ margin-right: 0.75rem;
+ }
+
+ .lg\:tw_mr-4 {
+ margin-right: 1rem;
+ }
+
+ .lg\:tw_mr-5 {
+ margin-right: 1.25rem;
+ }
+
+ .lg\:tw_mr-6 {
+ margin-right: 1.5rem;
+ }
+
+ .lg\:tw_mr-7 {
+ margin-right: 1.75rem;
+ }
+
+ .lg\:tw_mr-8 {
+ margin-right: 2rem;
+ }
+
+ .lg\:tw_mr-9 {
+ margin-right: 2.25rem;
+ }
+
+ .lg\:tw_mt-0 {
+ margin-top: 0px;
+ }
+
+ .lg\:tw_mt-1 {
+ margin-top: 0.25rem;
+ }
+
+ .lg\:tw_mt-10 {
+ margin-top: 2.5rem;
+ }
+
+ .lg\:tw_mt-11 {
+ margin-top: 2.75rem;
+ }
+
+ .lg\:tw_mt-12 {
+ margin-top: 3rem;
+ }
+
+ .lg\:tw_mt-2 {
+ margin-top: 0.5rem;
+ }
+
+ .lg\:tw_mt-3 {
+ margin-top: 0.75rem;
+ }
+
+ .lg\:tw_mt-4 {
+ margin-top: 1rem;
+ }
+
+ .lg\:tw_mt-5 {
+ margin-top: 1.25rem;
+ }
+
+ .lg\:tw_mt-6 {
+ margin-top: 1.5rem;
+ }
+
+ .lg\:tw_mt-7 {
+ margin-top: 1.75rem;
+ }
+
+ .lg\:tw_mt-8 {
+ margin-top: 2rem;
+ }
+
+ .lg\:tw_mt-9 {
+ margin-top: 2.25rem;
+ }
+
+ .lg\:tw_grid-cols-4 {
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ }
+
+ .lg\:tw_pb-0 {
+ padding-bottom: 0px;
+ }
+
+ .lg\:tw_pb-1 {
+ padding-bottom: 0.25rem;
+ }
+
+ .lg\:tw_pb-10 {
+ padding-bottom: 2.5rem;
+ }
+
+ .lg\:tw_pb-11 {
+ padding-bottom: 2.75rem;
+ }
+
+ .lg\:tw_pb-12 {
+ padding-bottom: 3rem;
+ }
+
+ .lg\:tw_pb-2 {
+ padding-bottom: 0.5rem;
+ }
+
+ .lg\:tw_pb-3 {
+ padding-bottom: 0.75rem;
+ }
+
+ .lg\:tw_pb-4 {
+ padding-bottom: 1rem;
+ }
+
+ .lg\:tw_pb-5 {
+ padding-bottom: 1.25rem;
+ }
+
+ .lg\:tw_pb-6 {
+ padding-bottom: 1.5rem;
+ }
+
+ .lg\:tw_pb-7 {
+ padding-bottom: 1.75rem;
+ }
+
+ .lg\:tw_pb-8 {
+ padding-bottom: 2rem;
+ }
+
+ .lg\:tw_pb-9 {
+ padding-bottom: 2.25rem;
+ }
+
+ .lg\:tw_pl-0 {
+ padding-left: 0px;
+ }
+
+ .lg\:tw_pl-1 {
+ padding-left: 0.25rem;
+ }
+
+ .lg\:tw_pl-10 {
+ padding-left: 2.5rem;
+ }
+
+ .lg\:tw_pl-11 {
+ padding-left: 2.75rem;
+ }
+
+ .lg\:tw_pl-12 {
+ padding-left: 3rem;
+ }
+
+ .lg\:tw_pl-2 {
+ padding-left: 0.5rem;
+ }
+
+ .lg\:tw_pl-3 {
+ padding-left: 0.75rem;
+ }
+
+ .lg\:tw_pl-4 {
+ padding-left: 1rem;
+ }
+
+ .lg\:tw_pl-5 {
+ padding-left: 1.25rem;
+ }
+
+ .lg\:tw_pl-6 {
+ padding-left: 1.5rem;
+ }
+
+ .lg\:tw_pl-7 {
+ padding-left: 1.75rem;
+ }
+
+ .lg\:tw_pl-8 {
+ padding-left: 2rem;
+ }
+
+ .lg\:tw_pl-9 {
+ padding-left: 2.25rem;
+ }
+
+ .lg\:tw_pr-0 {
+ padding-right: 0px;
+ }
+
+ .lg\:tw_pr-1 {
+ padding-right: 0.25rem;
+ }
+
+ .lg\:tw_pr-10 {
+ padding-right: 2.5rem;
+ }
+
+ .lg\:tw_pr-11 {
+ padding-right: 2.75rem;
+ }
+
+ .lg\:tw_pr-12 {
+ padding-right: 3rem;
+ }
+
+ .lg\:tw_pr-2 {
+ padding-right: 0.5rem;
+ }
+
+ .lg\:tw_pr-3 {
+ padding-right: 0.75rem;
+ }
+
+ .lg\:tw_pr-4 {
+ padding-right: 1rem;
+ }
+
+ .lg\:tw_pr-5 {
+ padding-right: 1.25rem;
+ }
+
+ .lg\:tw_pr-6 {
+ padding-right: 1.5rem;
+ }
+
+ .lg\:tw_pr-7 {
+ padding-right: 1.75rem;
+ }
+
+ .lg\:tw_pr-8 {
+ padding-right: 2rem;
+ }
+
+ .lg\:tw_pr-9 {
+ padding-right: 2.25rem;
+ }
+
+ .lg\:tw_pt-0 {
+ padding-top: 0px;
+ }
+
+ .lg\:tw_pt-1 {
+ padding-top: 0.25rem;
+ }
+
+ .lg\:tw_pt-10 {
+ padding-top: 2.5rem;
+ }
+
+ .lg\:tw_pt-11 {
+ padding-top: 2.75rem;
+ }
+
+ .lg\:tw_pt-12 {
+ padding-top: 3rem;
+ }
+
+ .lg\:tw_pt-2 {
+ padding-top: 0.5rem;
+ }
+
+ .lg\:tw_pt-3 {
+ padding-top: 0.75rem;
+ }
+
+ .lg\:tw_pt-4 {
+ padding-top: 1rem;
+ }
+
+ .lg\:tw_pt-5 {
+ padding-top: 1.25rem;
+ }
+
+ .lg\:tw_pt-6 {
+ padding-top: 1.5rem;
+ }
+
+ .lg\:tw_pt-7 {
+ padding-top: 1.75rem;
+ }
+
+ .lg\:tw_pt-8 {
+ padding-top: 2rem;
+ }
+
+ .lg\:tw_pt-9 {
+ padding-top: 2.25rem;
+ }
+}
+
+@media (min-width: 1280px) {
+ .xl\:tw_mb-0 {
+ margin-bottom: 0px;
+ }
+
+ .xl\:tw_mb-1 {
+ margin-bottom: 0.25rem;
+ }
+
+ .xl\:tw_mb-10 {
+ margin-bottom: 2.5rem;
+ }
+
+ .xl\:tw_mb-11 {
+ margin-bottom: 2.75rem;
+ }
+
+ .xl\:tw_mb-12 {
+ margin-bottom: 3rem;
+ }
+
+ .xl\:tw_mb-2 {
+ margin-bottom: 0.5rem;
+ }
+
+ .xl\:tw_mb-3 {
+ margin-bottom: 0.75rem;
+ }
+
+ .xl\:tw_mb-4 {
+ margin-bottom: 1rem;
+ }
+
+ .xl\:tw_mb-5 {
+ margin-bottom: 1.25rem;
+ }
+
+ .xl\:tw_mb-6 {
+ margin-bottom: 1.5rem;
+ }
+
+ .xl\:tw_mb-7 {
+ margin-bottom: 1.75rem;
+ }
+
+ .xl\:tw_mb-8 {
+ margin-bottom: 2rem;
+ }
+
+ .xl\:tw_mb-9 {
+ margin-bottom: 2.25rem;
+ }
+
+ .xl\:tw_ml-0 {
+ margin-left: 0px;
+ }
+
+ .xl\:tw_ml-1 {
+ margin-left: 0.25rem;
+ }
+
+ .xl\:tw_ml-10 {
+ margin-left: 2.5rem;
+ }
+
+ .xl\:tw_ml-11 {
+ margin-left: 2.75rem;
+ }
+
+ .xl\:tw_ml-12 {
+ margin-left: 3rem;
+ }
+
+ .xl\:tw_ml-2 {
+ margin-left: 0.5rem;
+ }
+
+ .xl\:tw_ml-3 {
+ margin-left: 0.75rem;
+ }
+
+ .xl\:tw_ml-4 {
+ margin-left: 1rem;
+ }
+
+ .xl\:tw_ml-5 {
+ margin-left: 1.25rem;
+ }
+
+ .xl\:tw_ml-6 {
+ margin-left: 1.5rem;
+ }
+
+ .xl\:tw_ml-7 {
+ margin-left: 1.75rem;
+ }
+
+ .xl\:tw_ml-8 {
+ margin-left: 2rem;
+ }
+
+ .xl\:tw_ml-9 {
+ margin-left: 2.25rem;
+ }
+
+ .xl\:tw_mr-0 {
+ margin-right: 0px;
+ }
+
+ .xl\:tw_mr-1 {
+ margin-right: 0.25rem;
+ }
+
+ .xl\:tw_mr-10 {
+ margin-right: 2.5rem;
+ }
+
+ .xl\:tw_mr-11 {
+ margin-right: 2.75rem;
+ }
+
+ .xl\:tw_mr-12 {
+ margin-right: 3rem;
+ }
+
+ .xl\:tw_mr-2 {
+ margin-right: 0.5rem;
+ }
+
+ .xl\:tw_mr-3 {
+ margin-right: 0.75rem;
+ }
+
+ .xl\:tw_mr-4 {
+ margin-right: 1rem;
+ }
+
+ .xl\:tw_mr-5 {
+ margin-right: 1.25rem;
+ }
+
+ .xl\:tw_mr-6 {
+ margin-right: 1.5rem;
+ }
+
+ .xl\:tw_mr-7 {
+ margin-right: 1.75rem;
+ }
+
+ .xl\:tw_mr-8 {
+ margin-right: 2rem;
+ }
+
+ .xl\:tw_mr-9 {
+ margin-right: 2.25rem;
+ }
+
+ .xl\:tw_mt-0 {
+ margin-top: 0px;
+ }
+
+ .xl\:tw_mt-1 {
+ margin-top: 0.25rem;
+ }
+
+ .xl\:tw_mt-10 {
+ margin-top: 2.5rem;
+ }
+
+ .xl\:tw_mt-11 {
+ margin-top: 2.75rem;
+ }
+
+ .xl\:tw_mt-12 {
+ margin-top: 3rem;
+ }
+
+ .xl\:tw_mt-2 {
+ margin-top: 0.5rem;
+ }
+
+ .xl\:tw_mt-3 {
+ margin-top: 0.75rem;
+ }
+
+ .xl\:tw_mt-4 {
+ margin-top: 1rem;
+ }
+
+ .xl\:tw_mt-5 {
+ margin-top: 1.25rem;
+ }
+
+ .xl\:tw_mt-6 {
+ margin-top: 1.5rem;
+ }
+
+ .xl\:tw_mt-7 {
+ margin-top: 1.75rem;
+ }
+
+ .xl\:tw_mt-8 {
+ margin-top: 2rem;
+ }
+
+ .xl\:tw_mt-9 {
+ margin-top: 2.25rem;
+ }
+
+ .xl\:tw_pb-0 {
+ padding-bottom: 0px;
+ }
+
+ .xl\:tw_pb-1 {
+ padding-bottom: 0.25rem;
+ }
+
+ .xl\:tw_pb-10 {
+ padding-bottom: 2.5rem;
+ }
+
+ .xl\:tw_pb-11 {
+ padding-bottom: 2.75rem;
+ }
+
+ .xl\:tw_pb-12 {
+ padding-bottom: 3rem;
+ }
+
+ .xl\:tw_pb-2 {
+ padding-bottom: 0.5rem;
+ }
+
+ .xl\:tw_pb-3 {
+ padding-bottom: 0.75rem;
+ }
+
+ .xl\:tw_pb-4 {
+ padding-bottom: 1rem;
+ }
+
+ .xl\:tw_pb-5 {
+ padding-bottom: 1.25rem;
+ }
+
+ .xl\:tw_pb-6 {
+ padding-bottom: 1.5rem;
+ }
+
+ .xl\:tw_pb-7 {
+ padding-bottom: 1.75rem;
+ }
+
+ .xl\:tw_pb-8 {
+ padding-bottom: 2rem;
+ }
+
+ .xl\:tw_pb-9 {
+ padding-bottom: 2.25rem;
+ }
+
+ .xl\:tw_pl-0 {
+ padding-left: 0px;
+ }
+
+ .xl\:tw_pl-1 {
+ padding-left: 0.25rem;
+ }
+
+ .xl\:tw_pl-10 {
+ padding-left: 2.5rem;
+ }
+
+ .xl\:tw_pl-11 {
+ padding-left: 2.75rem;
+ }
+
+ .xl\:tw_pl-12 {
+ padding-left: 3rem;
+ }
+
+ .xl\:tw_pl-2 {
+ padding-left: 0.5rem;
+ }
+
+ .xl\:tw_pl-3 {
+ padding-left: 0.75rem;
+ }
+
+ .xl\:tw_pl-4 {
+ padding-left: 1rem;
+ }
+
+ .xl\:tw_pl-5 {
+ padding-left: 1.25rem;
+ }
+
+ .xl\:tw_pl-6 {
+ padding-left: 1.5rem;
+ }
+
+ .xl\:tw_pl-7 {
+ padding-left: 1.75rem;
+ }
+
+ .xl\:tw_pl-8 {
+ padding-left: 2rem;
+ }
+
+ .xl\:tw_pl-9 {
+ padding-left: 2.25rem;
+ }
+
+ .xl\:tw_pr-0 {
+ padding-right: 0px;
+ }
+
+ .xl\:tw_pr-1 {
+ padding-right: 0.25rem;
+ }
+
+ .xl\:tw_pr-10 {
+ padding-right: 2.5rem;
+ }
+
+ .xl\:tw_pr-11 {
+ padding-right: 2.75rem;
+ }
+
+ .xl\:tw_pr-12 {
+ padding-right: 3rem;
+ }
+
+ .xl\:tw_pr-2 {
+ padding-right: 0.5rem;
+ }
+
+ .xl\:tw_pr-3 {
+ padding-right: 0.75rem;
+ }
+
+ .xl\:tw_pr-4 {
+ padding-right: 1rem;
+ }
+
+ .xl\:tw_pr-5 {
+ padding-right: 1.25rem;
+ }
+
+ .xl\:tw_pr-6 {
+ padding-right: 1.5rem;
+ }
+
+ .xl\:tw_pr-7 {
+ padding-right: 1.75rem;
+ }
+
+ .xl\:tw_pr-8 {
+ padding-right: 2rem;
+ }
+
+ .xl\:tw_pr-9 {
+ padding-right: 2.25rem;
+ }
+
+ .xl\:tw_pt-0 {
+ padding-top: 0px;
+ }
+
+ .xl\:tw_pt-1 {
+ padding-top: 0.25rem;
+ }
+
+ .xl\:tw_pt-10 {
+ padding-top: 2.5rem;
+ }
+
+ .xl\:tw_pt-11 {
+ padding-top: 2.75rem;
+ }
+
+ .xl\:tw_pt-12 {
+ padding-top: 3rem;
+ }
+
+ .xl\:tw_pt-2 {
+ padding-top: 0.5rem;
+ }
+
+ .xl\:tw_pt-3 {
+ padding-top: 0.75rem;
+ }
+
+ .xl\:tw_pt-4 {
+ padding-top: 1rem;
+ }
+
+ .xl\:tw_pt-5 {
+ padding-top: 1.25rem;
+ }
+
+ .xl\:tw_pt-6 {
+ padding-top: 1.5rem;
+ }
+
+ .xl\:tw_pt-7 {
+ padding-top: 1.75rem;
+ }
+
+ .xl\:tw_pt-8 {
+ padding-top: 2rem;
+ }
+
+ .xl\:tw_pt-9 {
+ padding-top: 2.25rem;
+ }
+}
+
+@media (prefers-color-scheme: dark) {
+ @media (min-width: 1024px) {
+ .dark\:lg\:hover\:\[paint-order\:markers\]:hover {
+ paint-order: markers;
+ }
+ }
+}
\ No newline at end of file
diff --git a/views/css/front.css b/views/css/front.css
new file mode 100644
index 00000000..05015734
--- /dev/null
+++ b/views/css/front.css
@@ -0,0 +1,158 @@
+.img-flexible {
+ max-width: 100%;
+ height: auto;
+ display: inline-block;
+}
+
+.title-center {
+ text-align: center;
+}
+
+:root {
+ --pd-s: 5px;
+ --pd-m: 10px;
+ --pd-l: 15px;
+ --pd-xl: 20px;
+ --pd-2xl: 25px;
+ --pd-3xl: 30px;
+ --pd-4xl: 35px;
+ --pd-5xl: 40px;
+
+ --bg: #fff;
+ --text: #7288a2;
+ --gray: #4d5974;
+ --lightgray: #e5e5e5;
+ --blue: #03b5d2;
+}
+
+.pd-s {
+ padding: var(--pd-s);
+}
+
+.pd-m {
+ padding: var(--pd-m);
+}
+
+.pd-l {
+ padding: var(--pd-l);
+}
+
+.pd-xl {
+ padding: var(--pd-xl);
+}
+
+.pd-2xl {
+ padding: var(--pd-2xl);
+}
+
+.pd-3xl {
+ padding: var(--pd-3xl);
+}
+
+.pd-4xl {
+ padding: var(--pd-4xl);
+}
+
+.pd-5xl {
+ padding: var(--pd-5xl);
+}
+/* FAQ */
+.accordion .accordion-item {
+ border-bottom: 1px solid var(--lightgray);
+}
+
+.accordion .accordion-item button[aria-expanded='true'] {
+ border-bottom: 1px solid var(--blue);
+}
+
+ .accordion button {
+ position: relative;
+ display: block;
+ text-align: left;
+ width: 100%;
+ padding: 1em 0;
+ color: var(--text);
+ font-size: 1.15rem;
+ font-weight: 400;
+ border: none;
+ background: none;
+ outline: none;
+ }
+
+ .accordion button:hover, .accordion button:focus {
+ cursor: pointer;
+ color: var(--blue);
+ }
+
+ .accordion button:hover::after, .accordion button:focus::after {
+ cursor: pointer;
+ color: var(--blue);
+ border: 1px solid var(--blue);
+ }
+
+ .accordion .accordion-title {
+ padding: 1em 1.5em 1em 0;
+ }
+
+ .accordion .icon {
+ display: inline-block;
+ position: absolute;
+ top: 18px;
+ right: 0;
+ width: 22px;
+ height: 22px;
+ border: 1px solid;
+ border-radius: 22px;
+ }
+
+ .accordion .icon::before {
+ display: block;
+ position: absolute;
+ content: '';
+ top: 9px;
+ left: 5px;
+ width: 10px;
+ height: 2px;
+ background: currentColor;
+ }
+
+ .accordion .icon::after {
+ display: block;
+ position: absolute;
+ content: '';
+ top: 5px;
+ left: 9px;
+ width: 2px;
+ height: 10px;
+ background: currentColor;
+ }
+
+ .accordion button[aria-expanded='true'] {
+ color: var(--blue);
+ }
+
+ .accordion button[aria-expanded='true'] .icon::after {
+ width: 0;
+ }
+
+ .accordion button[aria-expanded='true'] + .accordion-content {
+ opacity: 1;
+ max-height: 9em;
+ transition: all 200ms linear;
+ will-change: opacity, max-height;
+ background-color: white;
+ }
+
+ .accordion .accordion-content {
+ opacity: 0;
+ max-height: 0;
+ overflow: hidden;
+ transition: opacity 200ms linear, max-height 200ms linear;
+ will-change: opacity, max-height;
+ }
+
+ .accordion .accordion-content p {
+ font-size: 1rem;
+ margin: 0.5em 0;
+ padding: 0 0.5em;
+ }
\ No newline at end of file
diff --git a/views/css/iframe.css b/views/css/iframe.css
new file mode 100644
index 00000000..2ab26d3b
--- /dev/null
+++ b/views/css/iframe.css
@@ -0,0 +1,129 @@
+.border-dotted{
+ border-color: rgb(73, 141, 201);
+ border-style: solid !important;
+ border-radius: 8px;
+ border-width: 4px;
+ position: relative;
+}
+
+[data-prettyblocks-zone].border-dotted{
+
+ border-color: rgb(225, 212, 68);
+}
+
+
+/* hn editor */
+
+
+#toolbar button {
+ border-radius: 8px;
+ border: 1px solid transparent;
+ padding: 0.6em 1.2em;
+ font-size: 1em;
+ font-weight: 500;
+ font-family: inherit;
+ background-color: #1a1a1a;
+ cursor: pointer;
+ transition: border-color 0.25s;
+}
+#toolbar button:hover {
+ border-color: #646cff;
+}
+#toolbar button:focus,
+#toolbar button:focus-visible {
+ outline: 4px auto -webkit-focus-ring-color;
+}
+
+@media (prefers-color-scheme: light) {
+ :root {
+ color: #213547;
+ background-color: #ffffff;
+ }
+ #toolbar a:hover {
+ color: #747bff;
+ }
+ #toolbar button {
+ background-color: #f9f9f9;
+ }
+}
+
+.ptb-title {
+ font-weight: normal;
+ margin: 0;
+}
+
+#editor {
+ position: relative;
+ display: flex;
+ justify-content: center;
+ gap: 80px;
+}
+
+#toolbar {
+ display: none;
+ z-index: 2000;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 2rem;
+ padding: 10px 20px;
+ background-color: #1a1a1a;
+ border: 1px solid #646cff;
+ border-radius: 4px;
+ position: absolute;
+ justify-content: center;
+ font-size: 18px;
+ gap: 10px;
+ transform: translate(50%, -80px);
+}
+
+#toolbar::after {
+ content: '';
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ z-index: -5;
+ background-color: #1a1a1a;
+ border: 1px solid #646cff;
+ transform: rotate(45deg);
+ bottom: -11px;
+}
+
+#toolbar div.sep {
+ width: 2px;
+ height: 20px;
+ background-color: #646cff;
+ margin: 0 10px;
+}
+
+#toolbar button {
+ padding: 0.2em 0.6em;
+}
+
+#toolbar input, #toolbar select, #toolbar select option {
+ height: 30px;
+ padding: 0.2px 0.6em;
+ border: 0;
+ border-radius: 4px;
+}
+
+/* [data-prettyblocks-zone].ondrag{
+background-color: #646cff;
+border: 1px solid #646cff;
+padding: 20px;
+
+} */
+
+/* [data-block]:active {
+ background-color: grey;
+ height: 20px;
+ position: relative;
+}
+
+[data-block]:active::after {
+ content: attr(data-id-prettyblocks);
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ color: white;
+} */
diff --git a/views/css/index.php b/views/css/index.php
new file mode 100644
index 00000000..88355f61
--- /dev/null
+++ b/views/css/index.php
@@ -0,0 +1,11 @@
+ {
+// let btnGroups = document.querySelectorAll(btnGroupClass);
+// btnGroups.forEach(btnGroup => {
+// let idTarget = 0;
+
+// // Si idEndpointTarget est une fonction, on l'exécute pour obtenir l'idTarget
+// if (typeof idEndpointTarget === 'function') {
+// idTarget = idEndpointTarget(btnGroup);
+// } else {
+// // Sinon, on garde la logique existante
+// if (ps8) {
+// idTarget = parseInt(btnGroup.closest('tr').querySelector(idEndpointTarget).textContent);
+// }
+// if (ps17) {
+// idTarget = parseInt(btnGroup.closest('tr').getAttribute(idEndpointTarget));
+// }
+// }
+
+// let newElement = document.createElement('a');
+// newElement.innerHTML = " ";
+// newElement.dataset.endpoint = endpoint;
+// newElement.dataset.idEndpoint = idTarget;
+// newElement.dataset.action = "open_in_prettyblocks";
+
+// btnGroup.prepend(newElement);
+// });
+// }
+
+
+
+// document.addEventListener('DOMContentLoaded', function() {
+// // Exemples d'utilisation
+
+// // CMS LIST Button
+// if (document.body.classList.contains('admincmscontent')) {
+// if(ps8){
+// addPrettyButton('.btn-group-action', 'cms', '.column-id_cms');
+// }
+// if(ps17){
+// addPrettyButton('.btn-group-action', 'cms', (btnGroup) => {
+// if (btnGroup.closest('tr').querySelector('.column-id_cms') !== null) {
+// let id_cms = btnGroup.closest('tr').querySelector('.column-id_cms').textContent;
+// return parseInt(id_cms);
+// }
+
+// });
+
+// }
+// }
+
+// // Product LIST Button
+// if (document.body.classList.contains('adminproducts')) {
+
+// if(ps8){
+// addPrettyButton('.btn-group-action', 'product', '.column-id_product');
+// }
+// if(ps17){
+// addPrettyButton('.btn-group-action', 'product', '[data-product-id]');
+// }
+// }
+// // categories
+// if (document.body.classList.contains('admincategories')) {
+// addPrettyButton('.btn-group-action', 'category', (btnGroup) => {
+// return parseInt(btnGroup.closest('tr').querySelector('.column-id_category').textContent);
+// });
+// }
+
+
+// // Début de la sélection
+// let prettyBlocksButtons = document.querySelectorAll('[data-action="open_in_prettyblocks"]');
+// // Fin de la sélection
+// prettyBlocksButtons.forEach(button => {
+// button.addEventListener('click', function(event) {
+// event.preventDefault();
+// // Ajoutez ici le code à exécuter lors du clic sur le bouton
+// let endpoint = button.dataset.endpoint;
+// let idEndpoint = button.dataset.idEndpoint;
+// let action = button.dataset.action;
+// let url = prettyblocks_route_generator;
+
+// // Début de la sélection
+// fetch(url, {
+// method: 'POST',
+// headers: {
+// 'Content-Type': 'application/json',
+// },
+// body: JSON.stringify({
+// endpoint: endpoint,
+// id: idEndpoint,
+// }),
+// })
+// .then(response => response.json())
+// .then(data => window.open(data.url, '_self'));
+// // Fin de la sélection
+// });
+// });
+
+
+// })
\ No newline at end of file
diff --git a/views/js/build.js b/views/js/build.js
deleted file mode 100644
index 9c715adc..00000000
--- a/views/js/build.js
+++ /dev/null
@@ -1,10 +0,0 @@
-class b{constructor(t,e=e,s=s){this.events={},this.arr=[],this.tEdited,this.pApply,this.document=e,this.window=s,this.targets=t,this.targets.forEach(i=>{const o=Math.random().toString(36).substr(2,9);i.setAttribute("data-id-title",o);let n=i.dataset.attributes;const a=JSON.parse(n);this.arr.push({id:o,html:i,value:i.innerHTML,tag:i.tagName.toLowerCase(),classes:i.classList,focus:this.getAttributeValue(a,"focus"),inside:!1,bold:this.getAttributeValue(a,"bold"),italic:this.getAttributeValue(a,"italic"),underline:this.getAttributeValue(a,"underline"),size:this.getAttributeValue(a,"size")?this.getAttributeValue(a,"size"):32})});for(const i of this.arr){const o=i.id,n=this.document.querySelector('[data-id-title="'+o+'"]');n.setAttribute("contenteditable","true"),i.size=n.style.fontSize}this.toolbar=this.document.createElement("div"),this.toolbar.id="toolbar",this.document.getElementsByTagName("body")[0].appendChild(this.toolbar),this.select=this.document.createElement("select"),this.select.id="select",this.select.innerHTML=`
- H1
- H2
- H3
- H4
- H5
- H6
- p
- span
- `,this.select.selectedIndex=1,this.toolbar.appendChild(this.select),this.size=this.document.createElement("input"),this.size.id="size",this.size.type="number",this.size.value="32",this.size.min="1",this.size.max="100",this.size.step="1",this.toolbar.appendChild(this.size),this.sep=this.document.createElement("div"),this.sep.classList="sep",this.toolbar.appendChild(this.sep),this.B=this.document.createElement("button"),this.Bo=!1,this.B.id="Bold",this.B.innerHTML="B",this.toolbar.appendChild(this.B),this.I=this.document.createElement("button"),this.Io=!1,this.I.id="Italics",this.I.innerHTML="I",this.toolbar.appendChild(this.I),this.U=this.document.createElement("button"),this.Uo=!1,this.U.id="Underline",this.U.innerHTML="U",this.toolbar.appendChild(this.U),this.init(),this.setVisibility()}init(){for(const t of this.arr){let e=this.document.querySelector('[data-id-title="'+t.id+'"]');for(const s of this.targets)this.setBinging(s,t,e);this.select.addEventListener("change",()=>{const s={id:t.id,focus:t.focus,tag:this.select.value,classes:Array.from(e.classList),inside:t.inside,bold:t.bold,italic:t.italic,underline:t.underline,size:t.size},i=structuredClone(s);if(this.tEdited==t.id){let o=e.innerHTML,n=this.select.value,a=this.document.createElement(n);a.innerHTML=o,a.classList=e.classList,e.replaceWith(a);let r=e.getAttribute("data-block-id_prettyblock");a.setAttribute("data-block-id_prettyblock",r);let d=e.getAttribute("data-field");a.setAttribute("data-field",d),e=a,e.setAttribute("data-id-title",t.id),e.setAttribute("contenteditable","true"),t.bold==!0&&(e.style.fontWeight="bold"),t.italic==!0&&(e.style.fontStyle="italic"),t.underline==!0&&(e.style.textDecoration="underline"),e.style.fontSize=t.size+"px",this.setVisibility(),t.html=a,this.change(i,t),this.setBinging(a,t,e)}}),this.size.addEventListener("change",()=>{if(this.tEdited==t.id){const s={id:t.id,focus:t.focus,tag:this.select.value,classes:Array.from(e.classList),inside:t.inside,bold:t.bold,italic:t.italic,underline:t.underline,size:t.size},i=structuredClone(s);e.style.fontSize=this.size.value+"px",t.size=this.size.value,this.change(i,t)}}),this.B.addEventListener("click",()=>{if(this.tEdited==t.id){const s={id:t.id,focus:t.focus,tag:this.select.value,classes:Array.from(e.classList),inside:t.inside,bold:t.bold,italic:t.italic,underline:t.underline,size:t.size},i=structuredClone(s);t.bold==!1?(t.bold=!0,this.B.style.color="#6ae26a",e.style.fontWeight="bold",this.change(i,t)):(t.bold=!1,this.B.style.color="white",e.style.fontWeight="normal",this.change(i,t))}}),this.I.addEventListener("click",()=>{if(this.tEdited==t.id){const s={id:t.id,focus:t.focus,tag:this.select.value,classes:Array.from(e.classList),inside:t.inside,bold:t.bold,italic:t.italic,underline:t.underline,size:t.size},i=structuredClone(s);t.italic==!1?(t.italic=!0,this.I.style.color="#6ae26a",e.style.fontStyle="italic",this.change(i,t)):(t.italic=!1,this.I.style.color="white",e.style.fontStyle="normal",this.change(i,t))}}),this.U.addEventListener("click",()=>{if(this.tEdited==t.id){let s=!t.underline;this.setAttributeValue(e,"underline",s),t.underline=s;const i={id:t.id,focus:t.focus,inside:t.inside,tag:this.select.value,classes:Array.from(e.classList),bold:t.bold,italic:t.italic,underline:t.underline,size:t.size},o=structuredClone(i);t.underline?(this.U.style.color="#6ae26a",e.style.textDecoration="underline"):(this.U.style.color="white",e.style.textDecoration="none"),this.change(o,t)}})}}setBinging(t,e,s){t.getAttribute("data-id-title")==e.id&&t.addEventListener("keydown",i=>{(i.ctrlKey&&i.key=="s"||i.ctrlKey&&i.key=="S"||i.metaKey&&i.key=="s"||i.metaKey&&i.key=="S")&&(i.preventDefault(),e.value=s.innerHTML,this.change(this.pApply,e),t.blur()),i.shiftKey&&i.key=="Enter"?(i.preventDefault(),this.document.execCommand("insertHTML",!1," ")):i.key=="Enter"&&(i.preventDefault(),e.value=s.innerHTML,this.change(this.pApply,e),t.blur())})}getAttributeValue(t,e){return t.hasOwnProperty(e)?t[e]:!1}setAttributeValue(t,e,s){let i=t.getAttribute("data-attributes"),o=null;o=JSON.parse(i),o&&o.hasOwnProperty(e)&&(o[e]=s),t.setAttribute("data-attributes",JSON.stringify(o||{}))}setVisibility(){for(const t of this.arr){const e=this.document.querySelector('[data-id-title="'+t.id+'"]');let s=!1,i=!1;e.addEventListener("mousedown",o=>{i=!0,this.toolbar.style.display="flex";const n=o.target.getAttribute("data-id-title"),a=this.arr.filter(d=>d.id==n)[0];this.refreshToolbar(a);const r={id:t.id,focus:t.focus,inside:t.inside,bold:t.bold,tag:this.select.value,italic:t.italic,underline:t.underline,size:t.size,value:o.target.innerHTML};this.pApply=structuredClone(r)}),e.addEventListener("mouseleave",()=>{s=!1,i||setTimeout(()=>{!s&&!i&&(this.toolbar.style.display="none")},1e3)}),e.addEventListener("focus",o=>{i=!0,this.toolbar.style.display="flex";const n=o.target.getAttribute("data-id-title"),a=this.arr.filter(r=>r.id==n)[0];this.refreshToolbar(a)}),e.addEventListener("blur",()=>{i=!1,s||setTimeout(()=>{!s&&!i&&(this.toolbar.style.display="none")},1e3)}),this.toolbar.addEventListener("mouseenter",o=>{s=!0,this.toolbar.style.display="flex"}),this.toolbar.addEventListener("mouseleave",o=>{const n=o.toElement||o.relatedTarget;s=!1,setTimeout(()=>{n&&(n.parentNode===this||n===this||n.parentNode===this.toolbar)||i||(this.toolbar.style.display="none")},1e3)})}}refreshToolbar(t){const e=t.id,s=this.document.querySelector('[data-id-title="'+e+'"]'),i=s.tagName.toLowerCase(),o=this.findTop(s),n=this.findLeft(s),a=Math.round(this.window.getComputedStyle(s,null).getPropertyValue("font-size").split("px")[0]),r=s.getBoundingClientRect(),d=this.toolbar.getBoundingClientRect();this.toolbar.style.top=o-d.height+55+"px",this.toolbar.style.left=n+r.width/2-d.width+"px",this.tEdited=t.id,this.size.value=a,t.size=a,i=="h1"&&(this.select.selectedIndex=0),i=="h2"&&(this.select.selectedIndex=1),i=="h3"&&(this.select.selectedIndex=2),i=="h4"&&(this.select.selectedIndex=3),i=="h5"&&(this.select.selectedIndex=4),i=="h6"&&(this.select.selectedIndex=5),i=="p"&&(this.select.selectedIndex=6),i=="span"&&(this.select.selectedIndex=7),t.bold?this.B.style.color="#6ae26a":this.B.style.color="white",t.italic?this.I.style.color="#6ae26a":this.I.style.color="white",t.underline?this.U.style.color="#6ae26a":this.U.style.color="white"}on(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}trigger(t,...e){const s=this.events[t];s&&s.forEach(i=>{i(...e)})}change(t,e){t.html=e.html,t.value=e.value,t.classes=e.classes,t.bold=e.bold,t.italic=e.italic,t.underline=e.underline,t.size=e.size,this.trigger("change",t,e)}apply(t,e){!e.inside&&!e.focus&&(t.html=e==null?void 0:e.html,e.value=e.html.innerHTML,this.trigger("apply",t,e))}findTop(t){var e=t.getBoundingClientRect();return e.top+this.window.scrollY}findLeft(t){var e=t.getBoundingClientRect();return e.left+this.window.scrollX}}window.hasEventListener=!1;const h=()=>{window.removeEventListener("message",p,!1)},u=()=>({id_lang:prestashop.language.id,id_shop:prestashop.modules.prettyblocks.id_shop,shop_name:prestashop.modules.prettyblocks.shop_name,current_url:prestashop.modules.prettyblocks.shop_current_url,href:window.location.href});let p=l=>{if(l.data.type=="getContext"){let t=u();return l.source.postMessage({type:"setContext",data:{data:t}},"*")}if(l.data.type=="initIframe")return l.source.postMessage({type:"iframeInit",data:null},"*"),c(l);if(l.data.type=="selectBlock"){let t=l.data.data.id_prettyblocks;return y(t,l)}if(l.data.type=="focusOnZone"){let t=l.data.data;document.querySelectorAll(".border-dotted").forEach(s=>{s.classList.remove("border-dotted")});let e=document.querySelector('[data-prettyblocks-zone="'+t+'"]');return e.classList.add("border-dotted"),e.scrollIntoView({alignToTop:!0,behavior:"smooth",block:"center"})}if(l.data.type=="updateHTMLBlock"){let t=l.data.data.id_prettyblocks,e=l.data.data.html,s=document.querySelector('[data-id-prettyblocks="'+t+'"]');return s.innerHTML=e,c(l)}if(l.data.type=="scrollInIframe")return f(l.data.data);if(l.data.type=="getZones"){let t=document.querySelectorAll("[data-zone-name]"),e=[];return t.forEach(s=>{let i=s.getAttribute("data-zone-name");e.indexOf(i)==-1&&e.push(i)}),l.source.postMessage({type:"zones",data:e},"*")}h()};const y=(l,t)=>{let s=f(l).closest("[data-prettyblocks-zone]").getAttribute("data-prettyblocks-zone"),i={id_prettyblocks:l,zone_name:s};return t.source.postMessage({type:"focusBlock",data:i},"*")},f=l=>{let t=document,e=t.querySelector('[data-id-prettyblocks="'+l+'"]');return t.body.contains(e)&&!e.classList.contains("border-dotted")&&(e.scrollIntoView({alignToTop:!1,behavior:"smooth",block:"center"}),t.querySelectorAll("[data-block]").forEach(i=>{i.classList.remove("border-dotted")}),e.classList.add("border-dotted")),e},c=l=>{new b(document.querySelectorAll(".ptb-title"),document,window).on("change",async e=>{let s={id_prettyblocks:e.html.closest("[data-id-prettyblocks]").getAttribute("data-id-prettyblocks"),field:e.html.getAttribute("data-field"),index:e.html.hasAttribute("data-index")?e.html.getAttribute("data-index"):null};l.source.postMessage({type:"updateTitleComponent",data:{params:s,value:JSON.stringify(e)}},"*")})};document.addEventListener("DOMContentLoaded",l=>{window.hasEventListener||(window.addEventListener("message",p,!1),window.hasEventListener=!0),document.querySelectorAll("a").forEach(e=>{e.addEventListener("click",function(s){s.preventDefault();const i=s.currentTarget.href;let n={context:u(),url:i};window.parent.postMessage({type:"setNewUrl",params:n},"*")})})});h();
diff --git a/views/js/build/build.js b/views/js/build/build.js
new file mode 100644
index 00000000..2119c4d1
--- /dev/null
+++ b/views/js/build/build.js
@@ -0,0 +1,10088 @@
+var __defProp = Object.defineProperty;
+var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
+(function() {
+ "use strict";
+ const _toolbar = class _toolbar {
+ constructor(targets, document2 = document2, window2 = window2) {
+ this.events = {};
+ this.arr = [];
+ this.tEdited;
+ this.pApply;
+ this.document = document2;
+ this.window = window2;
+ this.targets = targets;
+ this.targets.forEach((element) => {
+ const id = Math.random().toString(36).substr(2, 9);
+ element.setAttribute("data-id-title", id);
+ let dataAttributesString = element.dataset.attributes;
+ const attrObject = JSON.parse(dataAttributesString);
+ this.arr.push({
+ id,
+ html: element,
+ value: element.innerHTML,
+ tag: element.tagName.toLowerCase(),
+ classes: element.classList,
+ focus: this.getAttributeValue(attrObject, "focus"),
+ inside: false,
+ // Ici, je suppose que "inside" n'est pas un attribut de données, donc je le laisse inchangé
+ bold: this.getAttributeValue(attrObject, "bold"),
+ italic: this.getAttributeValue(attrObject, "italic"),
+ underline: this.getAttributeValue(attrObject, "underline"),
+ size: this.getAttributeValue(attrObject, "size") ? this.getAttributeValue(attrObject, "size") : 32
+ });
+ });
+ for (const t of this.arr) {
+ const id = t.id;
+ const e = this.document.querySelector('[data-id-title="' + id + '"]');
+ e.setAttribute("contenteditable", "true");
+ t.size = e.style.fontSize;
+ }
+ this.toolbar = this.document.createElement("div");
+ this.toolbar.id = "toolbar";
+ this.document.getElementsByTagName("body")[0].appendChild(this.toolbar);
+ this.select = this.document.createElement("select");
+ this.select.id = "select";
+ this.select.innerHTML = `
+ H1
+ H2
+ H3
+ H4
+ H5
+ H6
+ p
+ span
+ `;
+ this.select.selectedIndex = 1;
+ this.toolbar.appendChild(this.select);
+ this.size = this.document.createElement("input");
+ this.size.id = "size";
+ this.size.type = "number";
+ this.size.value = "32";
+ this.size.min = "1";
+ this.size.max = "100";
+ this.size.step = "1";
+ this.toolbar.appendChild(this.size);
+ this.sep = this.document.createElement("div");
+ this.sep.classList = "sep";
+ this.toolbar.appendChild(this.sep);
+ this.B = this.document.createElement("button");
+ this.Bo = false;
+ this.B.id = "Bold";
+ this.B.innerHTML = "B";
+ this.toolbar.appendChild(this.B);
+ this.I = this.document.createElement("button");
+ this.Io = false;
+ this.I.id = "Italics";
+ this.I.innerHTML = "I";
+ this.toolbar.appendChild(this.I);
+ this.U = this.document.createElement("button");
+ this.Uo = false;
+ this.U.id = "Underline";
+ this.U.innerHTML = "U";
+ this.toolbar.appendChild(this.U);
+ this.init();
+ this.setVisibility();
+ }
+ init() {
+ for (const t of this.arr) {
+ let e = this.document.querySelector('[data-id-title="' + t.id + '"]');
+ for (const i of this.targets) {
+ this.setBinging(i, t, e);
+ }
+ this.select.addEventListener("change", () => {
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ tag: this.select.value,
+ classes: Array.from(e.classList),
+ inside: t.inside,
+ bold: t.bold,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size
+ };
+ const lastT = structuredClone(z);
+ if (this.tEdited == t.id) {
+ let text = e.innerHTML;
+ let tag = this.select.value;
+ let newElement = this.document.createElement(tag);
+ newElement.innerHTML = text;
+ newElement.classList = e.classList;
+ e.replaceWith(newElement);
+ let id_prettyblocks = e.getAttribute("data-block-id_prettyblock");
+ newElement.setAttribute("data-block-id_prettyblock", id_prettyblocks);
+ let data_field = e.getAttribute("data-field");
+ newElement.setAttribute("data-field", data_field);
+ e = newElement;
+ e.setAttribute("data-id-title", t.id);
+ e.setAttribute("contenteditable", "true");
+ if (t.bold == true) {
+ e.style.fontWeight = "bold";
+ }
+ if (t.italic == true) {
+ e.style.fontStyle = "italic";
+ }
+ if (t.underline == true) {
+ e.style.textDecoration = "underline";
+ }
+ e.style.fontSize = t.size + "px";
+ this.setVisibility();
+ t.html = newElement;
+ this.change(lastT, t);
+ this.setBinging(newElement, t, e);
+ }
+ });
+ this.size.addEventListener("change", () => {
+ if (this.tEdited == t.id) {
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ tag: this.select.value,
+ classes: Array.from(e.classList),
+ inside: t.inside,
+ bold: t.bold,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size
+ };
+ const lastT = structuredClone(z);
+ e.style.fontSize = this.size.value + "px";
+ t.size = this.size.value;
+ this.change(lastT, t);
+ }
+ });
+ this.B.addEventListener("click", () => {
+ if (this.tEdited == t.id) {
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ tag: this.select.value,
+ classes: Array.from(e.classList),
+ inside: t.inside,
+ bold: t.bold,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size
+ };
+ const lastT = structuredClone(z);
+ if (t.bold == false) {
+ t.bold = true;
+ this.B.style.color = "#6ae26a";
+ e.style.fontWeight = "bold";
+ this.change(lastT, t);
+ } else {
+ t.bold = false;
+ this.B.style.color = "white";
+ e.style.fontWeight = "normal";
+ this.change(lastT, t);
+ }
+ }
+ });
+ this.I.addEventListener("click", () => {
+ if (this.tEdited == t.id) {
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ tag: this.select.value,
+ classes: Array.from(e.classList),
+ inside: t.inside,
+ bold: t.bold,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size
+ };
+ const lastT = structuredClone(z);
+ if (t.italic == false) {
+ t.italic = true;
+ this.I.style.color = "#6ae26a";
+ e.style.fontStyle = "italic";
+ this.change(lastT, t);
+ } else {
+ t.italic = false;
+ this.I.style.color = "white";
+ e.style.fontStyle = "normal";
+ this.change(lastT, t);
+ }
+ }
+ });
+ this.U.addEventListener("click", () => {
+ if (this.tEdited == t.id) {
+ let underline = !t.underline;
+ this.setAttributeValue(e, "underline", underline);
+ t.underline = underline;
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ inside: t.inside,
+ tag: this.select.value,
+ classes: Array.from(e.classList),
+ bold: t.bold,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size
+ };
+ const lastT = structuredClone(z);
+ if (t.underline) {
+ this.U.style.color = "#6ae26a";
+ e.style.textDecoration = "underline";
+ } else {
+ this.U.style.color = "white";
+ e.style.textDecoration = "none";
+ }
+ this.change(lastT, t);
+ }
+ });
+ }
+ }
+ setBinging(i, t, e) {
+ if (i.getAttribute("data-id-title") == t.id) {
+ i.addEventListener("keydown", (k) => {
+ if (k.ctrlKey && k.key == "s" || k.ctrlKey && k.key == "S" || k.metaKey && k.key == "s" || k.metaKey && k.key == "S") {
+ k.preventDefault();
+ t.value = e.innerHTML;
+ this.change(this.pApply, t);
+ i.blur();
+ }
+ if (k.shiftKey && k.key == "Enter") {
+ k.preventDefault();
+ this.document.execCommand("insertHTML", false, " ");
+ } else if (k.key == "Enter") {
+ k.preventDefault();
+ t.value = e.innerHTML;
+ this.change(this.pApply, t);
+ i.blur();
+ }
+ });
+ }
+ }
+ getAttributeValue(attrObject, attributeName) {
+ return attrObject.hasOwnProperty(attributeName) ? attrObject[attributeName] : false;
+ }
+ setAttributeValue(element, attributeName, newValue) {
+ let attrString = element.getAttribute("data-attributes");
+ let attrObject = null;
+ attrObject = JSON.parse(attrString);
+ if (attrObject && attrObject.hasOwnProperty(attributeName)) {
+ attrObject[attributeName] = newValue;
+ }
+ element.setAttribute("data-attributes", JSON.stringify(attrObject || {}));
+ }
+ setVisibility() {
+ for (const t of this.arr) {
+ const e = this.document.querySelector('[data-id-title="' + t.id + '"]');
+ let inside = false;
+ let focus = false;
+ e.addEventListener("mousedown", (e2) => {
+ focus = true;
+ this.toolbar.style.display = "flex";
+ const id = e2.target.getAttribute("data-id-title");
+ const res = this.arr.filter((item) => item.id == id)[0];
+ this.refreshToolbar(res);
+ const z = {
+ id: t.id,
+ focus: t.focus,
+ inside: t.inside,
+ bold: t.bold,
+ tag: this.select.value,
+ italic: t.italic,
+ underline: t.underline,
+ size: t.size,
+ value: e2.target.innerHTML
+ };
+ this.pApply = structuredClone(z);
+ });
+ e.addEventListener("mouseleave", () => {
+ inside = false;
+ if (!focus) {
+ setTimeout(() => {
+ if (!inside && !focus) {
+ this.toolbar.style.display = "none";
+ }
+ }, 1e3);
+ }
+ });
+ e.addEventListener("focus", (e2) => {
+ focus = true;
+ this.toolbar.style.display = "flex";
+ const id = e2.target.getAttribute("data-id-title");
+ const res = this.arr.filter((item) => item.id == id)[0];
+ this.refreshToolbar(res);
+ });
+ e.addEventListener("blur", () => {
+ focus = false;
+ if (!inside) {
+ setTimeout(() => {
+ if (!inside && !focus) {
+ this.toolbar.style.display = "none";
+ }
+ }, 1e3);
+ }
+ });
+ this.toolbar.addEventListener("mouseenter", (e2) => {
+ inside = true;
+ this.toolbar.style.display = "flex";
+ });
+ this.toolbar.addEventListener("mouseleave", (event) => {
+ const e2 = event.toElement || event.relatedTarget;
+ inside = false;
+ setTimeout(() => {
+ if (e2 && (e2.parentNode === this || e2 === this || e2.parentNode === this.toolbar)) {
+ return;
+ } else if (!focus) {
+ this.toolbar.style.display = "none";
+ }
+ }, 1e3);
+ });
+ }
+ }
+ refreshToolbar(obj) {
+ const id = obj.id;
+ const e = this.document.querySelector('[data-id-title="' + id + '"]');
+ const tag = e.tagName.toLowerCase();
+ const top = this.findTop(e);
+ const left = this.findLeft(e);
+ const fz = Math.round(
+ this.window.getComputedStyle(e, null).getPropertyValue("font-size").split("px")[0]
+ );
+ const p2 = e.getBoundingClientRect();
+ const tp = this.toolbar.getBoundingClientRect();
+ this.toolbar.style.top = top - tp.height + 55 + "px";
+ this.toolbar.style.left = left + p2.width / 2 - tp.width + "px";
+ this.tEdited = obj.id;
+ this.size.value = fz;
+ obj.size = fz;
+ if (tag == "h1") this.select.selectedIndex = 0;
+ if (tag == "h2") this.select.selectedIndex = 1;
+ if (tag == "h3") this.select.selectedIndex = 2;
+ if (tag == "h4") this.select.selectedIndex = 3;
+ if (tag == "h5") this.select.selectedIndex = 4;
+ if (tag == "h6") this.select.selectedIndex = 5;
+ if (tag == "p") this.select.selectedIndex = 6;
+ if (tag == "span") this.select.selectedIndex = 7;
+ if (obj.bold) {
+ this.B.style.color = "#6ae26a";
+ } else {
+ this.B.style.color = "white";
+ }
+ if (obj.italic) {
+ this.I.style.color = "#6ae26a";
+ } else {
+ this.I.style.color = "white";
+ }
+ if (obj.underline) {
+ this.U.style.color = "#6ae26a";
+ } else {
+ this.U.style.color = "white";
+ }
+ }
+ // event with callback
+ on(event, callback) {
+ if (!this.events[event]) {
+ this.events[event] = [];
+ }
+ this.events[event].push(callback);
+ }
+ trigger(event, ...args) {
+ const callbacks = this.events[event];
+ if (callbacks) {
+ callbacks.forEach((callback) => {
+ callback(...args);
+ });
+ }
+ }
+ change(lastValue, newValue) {
+ lastValue.html = newValue.html;
+ lastValue.value = newValue.value;
+ lastValue.classes = newValue.classes;
+ lastValue.bold = newValue.bold;
+ lastValue.italic = newValue.italic;
+ lastValue.underline = newValue.underline;
+ lastValue.size = newValue.size;
+ this.trigger("change", lastValue, newValue);
+ }
+ apply(lastValue, newValue) {
+ if (!newValue.inside && !newValue.focus) {
+ lastValue.html = newValue == null ? void 0 : newValue.html;
+ newValue.value = newValue.html.innerHTML;
+ this.trigger("apply", lastValue, newValue);
+ }
+ }
+ /**
+ * https://stackoverflow.com/questions/442404/retrieve-the-position-x-y-of-an-html-element/44113758#44113758
+ * @param {*} element
+ * @returns {number}
+ *
+ */
+ findTop(element) {
+ var rec = element.getBoundingClientRect();
+ return rec.top + this.window.scrollY;
+ }
+ //call it like findTop('#header');
+ findLeft(element) {
+ var rec = element.getBoundingClientRect();
+ return rec.left + this.window.scrollX;
+ }
+ //call it like findLeft('#header');
+ };
+ __name(_toolbar, "toolbar");
+ let toolbar = _toolbar;
+ var define_process_env_default$5 = {};
+ /**
+ * @vue/shared v3.4.34
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
+ * @license MIT
+ **/
+ /*! #__NO_SIDE_EFFECTS__ */
+ // @__NO_SIDE_EFFECTS__
+ function makeMap(str, expectsLowerCase) {
+ const set2 = new Set(str.split(","));
+ return (val) => set2.has(val);
+ }
+ __name(makeMap, "makeMap");
+ const EMPTY_OBJ = !!(define_process_env_default$5.NODE_ENV !== "production") ? Object.freeze({}) : {};
+ const EMPTY_ARR = !!(define_process_env_default$5.NODE_ENV !== "production") ? Object.freeze([]) : [];
+ const NOOP = /* @__PURE__ */ __name(() => {
+ }, "NOOP");
+ const NO = /* @__PURE__ */ __name(() => false, "NO");
+ const isOn = /* @__PURE__ */ __name((key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97), "isOn");
+ const isModelListener = /* @__PURE__ */ __name((key) => key.startsWith("onUpdate:"), "isModelListener");
+ const extend = Object.assign;
+ const remove = /* @__PURE__ */ __name((arr, el) => {
+ const i = arr.indexOf(el);
+ if (i > -1) {
+ arr.splice(i, 1);
+ }
+ }, "remove");
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
+ const hasOwn = /* @__PURE__ */ __name((val, key) => hasOwnProperty$1.call(val, key), "hasOwn");
+ const isArray = Array.isArray;
+ const isMap = /* @__PURE__ */ __name((val) => toTypeString(val) === "[object Map]", "isMap");
+ const isSet = /* @__PURE__ */ __name((val) => toTypeString(val) === "[object Set]", "isSet");
+ const isFunction = /* @__PURE__ */ __name((val) => typeof val === "function", "isFunction");
+ const isString = /* @__PURE__ */ __name((val) => typeof val === "string", "isString");
+ const isSymbol = /* @__PURE__ */ __name((val) => typeof val === "symbol", "isSymbol");
+ const isObject = /* @__PURE__ */ __name((val) => val !== null && typeof val === "object", "isObject");
+ const isPromise = /* @__PURE__ */ __name((val) => {
+ return (isObject(val) || isFunction(val)) && isFunction(val.then) && isFunction(val.catch);
+ }, "isPromise");
+ const objectToString = Object.prototype.toString;
+ const toTypeString = /* @__PURE__ */ __name((value) => objectToString.call(value), "toTypeString");
+ const toRawType = /* @__PURE__ */ __name((value) => {
+ return toTypeString(value).slice(8, -1);
+ }, "toRawType");
+ const isPlainObject$1 = /* @__PURE__ */ __name((val) => toTypeString(val) === "[object Object]", "isPlainObject$1");
+ const isIntegerKey = /* @__PURE__ */ __name((key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key, "isIntegerKey");
+ const isReservedProp = /* @__PURE__ */ makeMap(
+ // the leading comma is intentional so empty string "" is also included
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
+ );
+ const isBuiltInDirective = /* @__PURE__ */ makeMap(
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
+ );
+ const cacheStringFunction = /* @__PURE__ */ __name((fn) => {
+ const cache = /* @__PURE__ */ Object.create(null);
+ return (str) => {
+ const hit = cache[str];
+ return hit || (cache[str] = fn(str));
+ };
+ }, "cacheStringFunction");
+ const camelizeRE = /-(\w)/g;
+ const camelize = cacheStringFunction((str) => {
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
+ });
+ const hyphenateRE = /\B([A-Z])/g;
+ const hyphenate = cacheStringFunction(
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
+ );
+ const capitalize = cacheStringFunction((str) => {
+ return str.charAt(0).toUpperCase() + str.slice(1);
+ });
+ const toHandlerKey = cacheStringFunction((str) => {
+ const s = str ? `on${capitalize(str)}` : ``;
+ return s;
+ });
+ const hasChanged = /* @__PURE__ */ __name((value, oldValue) => !Object.is(value, oldValue), "hasChanged");
+ const invokeArrayFns = /* @__PURE__ */ __name((fns, ...arg) => {
+ for (let i = 0; i < fns.length; i++) {
+ fns[i](...arg);
+ }
+ }, "invokeArrayFns");
+ const def = /* @__PURE__ */ __name((obj, key, value, writable = false) => {
+ Object.defineProperty(obj, key, {
+ configurable: true,
+ enumerable: false,
+ writable,
+ value
+ });
+ }, "def");
+ const looseToNumber = /* @__PURE__ */ __name((val) => {
+ const n = parseFloat(val);
+ return isNaN(n) ? val : n;
+ }, "looseToNumber");
+ const toNumber = /* @__PURE__ */ __name((val) => {
+ const n = isString(val) ? Number(val) : NaN;
+ return isNaN(n) ? val : n;
+ }, "toNumber");
+ let _globalThis;
+ const getGlobalThis = /* @__PURE__ */ __name(() => {
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
+ }, "getGlobalThis");
+ function normalizeStyle(value) {
+ if (isArray(value)) {
+ const res = {};
+ for (let i = 0; i < value.length; i++) {
+ const item = value[i];
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
+ if (normalized) {
+ for (const key in normalized) {
+ res[key] = normalized[key];
+ }
+ }
+ }
+ return res;
+ } else if (isString(value) || isObject(value)) {
+ return value;
+ }
+ }
+ __name(normalizeStyle, "normalizeStyle");
+ const listDelimiterRE = /;(?![^(]*\))/g;
+ const propertyDelimiterRE = /:([^]+)/;
+ const styleCommentRE = /\/\*[^]*?\*\//g;
+ function parseStringStyle(cssText) {
+ const ret = {};
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
+ if (item) {
+ const tmp = item.split(propertyDelimiterRE);
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
+ }
+ });
+ return ret;
+ }
+ __name(parseStringStyle, "parseStringStyle");
+ function normalizeClass(value) {
+ let res = "";
+ if (isString(value)) {
+ res = value;
+ } else if (isArray(value)) {
+ for (let i = 0; i < value.length; i++) {
+ const normalized = normalizeClass(value[i]);
+ if (normalized) {
+ res += normalized + " ";
+ }
+ }
+ } else if (isObject(value)) {
+ for (const name in value) {
+ if (value[name]) {
+ res += name + " ";
+ }
+ }
+ }
+ return res.trim();
+ }
+ __name(normalizeClass, "normalizeClass");
+ const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
+ const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
+ function includeBooleanAttr(value) {
+ return !!value || value === "";
+ }
+ __name(includeBooleanAttr, "includeBooleanAttr");
+ var define_process_env_default$4 = {};
+ function warn$2(msg, ...args) {
+ console.warn(`[Vue warn] ${msg}`, ...args);
+ }
+ __name(warn$2, "warn$2");
+ let activeEffectScope;
+ const _EffectScope = class _EffectScope {
+ constructor(detached = false) {
+ this.detached = detached;
+ this._active = true;
+ this.effects = [];
+ this.cleanups = [];
+ this.parent = activeEffectScope;
+ if (!detached && activeEffectScope) {
+ this.index = (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(
+ this
+ ) - 1;
+ }
+ }
+ get active() {
+ return this._active;
+ }
+ run(fn) {
+ if (this._active) {
+ const currentEffectScope = activeEffectScope;
+ try {
+ activeEffectScope = this;
+ return fn();
+ } finally {
+ activeEffectScope = currentEffectScope;
+ }
+ } else if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ warn$2(`cannot run an inactive effect scope.`);
+ }
+ }
+ /**
+ * This should only be called on non-detached scopes
+ * @internal
+ */
+ on() {
+ activeEffectScope = this;
+ }
+ /**
+ * This should only be called on non-detached scopes
+ * @internal
+ */
+ off() {
+ activeEffectScope = this.parent;
+ }
+ stop(fromParent) {
+ if (this._active) {
+ let i, l;
+ for (i = 0, l = this.effects.length; i < l; i++) {
+ this.effects[i].stop();
+ }
+ for (i = 0, l = this.cleanups.length; i < l; i++) {
+ this.cleanups[i]();
+ }
+ if (this.scopes) {
+ for (i = 0, l = this.scopes.length; i < l; i++) {
+ this.scopes[i].stop(true);
+ }
+ }
+ if (!this.detached && this.parent && !fromParent) {
+ const last = this.parent.scopes.pop();
+ if (last && last !== this) {
+ this.parent.scopes[this.index] = last;
+ last.index = this.index;
+ }
+ }
+ this.parent = void 0;
+ this._active = false;
+ }
+ }
+ };
+ __name(_EffectScope, "EffectScope");
+ let EffectScope = _EffectScope;
+ function effectScope(detached) {
+ return new EffectScope(detached);
+ }
+ __name(effectScope, "effectScope");
+ function recordEffectScope(effect2, scope = activeEffectScope) {
+ if (scope && scope.active) {
+ scope.effects.push(effect2);
+ }
+ }
+ __name(recordEffectScope, "recordEffectScope");
+ function getCurrentScope() {
+ return activeEffectScope;
+ }
+ __name(getCurrentScope, "getCurrentScope");
+ function onScopeDispose(fn) {
+ if (activeEffectScope) {
+ activeEffectScope.cleanups.push(fn);
+ } else if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ warn$2(
+ `onScopeDispose() is called when there is no active effect scope to be associated with.`
+ );
+ }
+ }
+ __name(onScopeDispose, "onScopeDispose");
+ let activeEffect;
+ const _ReactiveEffect = class _ReactiveEffect {
+ constructor(fn, trigger2, scheduler, scope) {
+ this.fn = fn;
+ this.trigger = trigger2;
+ this.scheduler = scheduler;
+ this.active = true;
+ this.deps = [];
+ this._dirtyLevel = 4;
+ this._trackId = 0;
+ this._runnings = 0;
+ this._shouldSchedule = false;
+ this._depsLength = 0;
+ recordEffectScope(this, scope);
+ }
+ get dirty() {
+ if (this._dirtyLevel === 2 || this._dirtyLevel === 3) {
+ this._dirtyLevel = 1;
+ pauseTracking();
+ for (let i = 0; i < this._depsLength; i++) {
+ const dep = this.deps[i];
+ if (dep.computed) {
+ triggerComputed(dep.computed);
+ if (this._dirtyLevel >= 4) {
+ break;
+ }
+ }
+ }
+ if (this._dirtyLevel === 1) {
+ this._dirtyLevel = 0;
+ }
+ resetTracking();
+ }
+ return this._dirtyLevel >= 4;
+ }
+ set dirty(v) {
+ this._dirtyLevel = v ? 4 : 0;
+ }
+ run() {
+ this._dirtyLevel = 0;
+ if (!this.active) {
+ return this.fn();
+ }
+ let lastShouldTrack = shouldTrack;
+ let lastEffect = activeEffect;
+ try {
+ shouldTrack = true;
+ activeEffect = this;
+ this._runnings++;
+ preCleanupEffect(this);
+ return this.fn();
+ } finally {
+ postCleanupEffect(this);
+ this._runnings--;
+ activeEffect = lastEffect;
+ shouldTrack = lastShouldTrack;
+ }
+ }
+ stop() {
+ if (this.active) {
+ preCleanupEffect(this);
+ postCleanupEffect(this);
+ this.onStop && this.onStop();
+ this.active = false;
+ }
+ }
+ };
+ __name(_ReactiveEffect, "ReactiveEffect");
+ let ReactiveEffect = _ReactiveEffect;
+ function triggerComputed(computed2) {
+ return computed2.value;
+ }
+ __name(triggerComputed, "triggerComputed");
+ function preCleanupEffect(effect2) {
+ effect2._trackId++;
+ effect2._depsLength = 0;
+ }
+ __name(preCleanupEffect, "preCleanupEffect");
+ function postCleanupEffect(effect2) {
+ if (effect2.deps.length > effect2._depsLength) {
+ for (let i = effect2._depsLength; i < effect2.deps.length; i++) {
+ cleanupDepEffect(effect2.deps[i], effect2);
+ }
+ effect2.deps.length = effect2._depsLength;
+ }
+ }
+ __name(postCleanupEffect, "postCleanupEffect");
+ function cleanupDepEffect(dep, effect2) {
+ const trackId = dep.get(effect2);
+ if (trackId !== void 0 && effect2._trackId !== trackId) {
+ dep.delete(effect2);
+ if (dep.size === 0) {
+ dep.cleanup();
+ }
+ }
+ }
+ __name(cleanupDepEffect, "cleanupDepEffect");
+ let shouldTrack = true;
+ let pauseScheduleStack = 0;
+ const trackStack = [];
+ function pauseTracking() {
+ trackStack.push(shouldTrack);
+ shouldTrack = false;
+ }
+ __name(pauseTracking, "pauseTracking");
+ function resetTracking() {
+ const last = trackStack.pop();
+ shouldTrack = last === void 0 ? true : last;
+ }
+ __name(resetTracking, "resetTracking");
+ function pauseScheduling() {
+ pauseScheduleStack++;
+ }
+ __name(pauseScheduling, "pauseScheduling");
+ function resetScheduling() {
+ pauseScheduleStack--;
+ while (!pauseScheduleStack && queueEffectSchedulers.length) {
+ queueEffectSchedulers.shift()();
+ }
+ }
+ __name(resetScheduling, "resetScheduling");
+ function trackEffect(effect2, dep, debuggerEventExtraInfo) {
+ var _a;
+ if (dep.get(effect2) !== effect2._trackId) {
+ dep.set(effect2, effect2._trackId);
+ const oldDep = effect2.deps[effect2._depsLength];
+ if (oldDep !== dep) {
+ if (oldDep) {
+ cleanupDepEffect(oldDep, effect2);
+ }
+ effect2.deps[effect2._depsLength++] = dep;
+ } else {
+ effect2._depsLength++;
+ }
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ (_a = effect2.onTrack) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
+ }
+ }
+ }
+ __name(trackEffect, "trackEffect");
+ const queueEffectSchedulers = [];
+ function triggerEffects(dep, dirtyLevel, debuggerEventExtraInfo) {
+ var _a;
+ pauseScheduling();
+ for (const effect2 of dep.keys()) {
+ let tracking;
+ if (effect2._dirtyLevel < dirtyLevel && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
+ effect2._shouldSchedule || (effect2._shouldSchedule = effect2._dirtyLevel === 0);
+ effect2._dirtyLevel = dirtyLevel;
+ }
+ if (effect2._shouldSchedule && (tracking != null ? tracking : tracking = dep.get(effect2) === effect2._trackId)) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ (_a = effect2.onTrigger) == null ? void 0 : _a.call(effect2, extend({ effect: effect2 }, debuggerEventExtraInfo));
+ }
+ effect2.trigger();
+ if ((!effect2._runnings || effect2.allowRecurse) && effect2._dirtyLevel !== 2) {
+ effect2._shouldSchedule = false;
+ if (effect2.scheduler) {
+ queueEffectSchedulers.push(effect2.scheduler);
+ }
+ }
+ }
+ }
+ resetScheduling();
+ }
+ __name(triggerEffects, "triggerEffects");
+ const createDep = /* @__PURE__ */ __name((cleanup, computed2) => {
+ const dep = /* @__PURE__ */ new Map();
+ dep.cleanup = cleanup;
+ dep.computed = computed2;
+ return dep;
+ }, "createDep");
+ const targetMap = /* @__PURE__ */ new WeakMap();
+ const ITERATE_KEY = Symbol(!!(define_process_env_default$4.NODE_ENV !== "production") ? "iterate" : "");
+ const MAP_KEY_ITERATE_KEY = Symbol(!!(define_process_env_default$4.NODE_ENV !== "production") ? "Map key iterate" : "");
+ function track(target, type, key) {
+ if (shouldTrack && activeEffect) {
+ let depsMap = targetMap.get(target);
+ if (!depsMap) {
+ targetMap.set(target, depsMap = /* @__PURE__ */ new Map());
+ }
+ let dep = depsMap.get(key);
+ if (!dep) {
+ depsMap.set(key, dep = createDep(() => depsMap.delete(key)));
+ }
+ trackEffect(
+ activeEffect,
+ dep,
+ !!(define_process_env_default$4.NODE_ENV !== "production") ? {
+ target,
+ type,
+ key
+ } : void 0
+ );
+ }
+ }
+ __name(track, "track");
+ function trigger(target, type, key, newValue, oldValue, oldTarget) {
+ const depsMap = targetMap.get(target);
+ if (!depsMap) {
+ return;
+ }
+ let deps = [];
+ if (type === "clear") {
+ deps = [...depsMap.values()];
+ } else if (key === "length" && isArray(target)) {
+ const newLength = Number(newValue);
+ depsMap.forEach((dep, key2) => {
+ if (key2 === "length" || !isSymbol(key2) && key2 >= newLength) {
+ deps.push(dep);
+ }
+ });
+ } else {
+ if (key !== void 0) {
+ deps.push(depsMap.get(key));
+ }
+ switch (type) {
+ case "add":
+ if (!isArray(target)) {
+ deps.push(depsMap.get(ITERATE_KEY));
+ if (isMap(target)) {
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
+ }
+ } else if (isIntegerKey(key)) {
+ deps.push(depsMap.get("length"));
+ }
+ break;
+ case "delete":
+ if (!isArray(target)) {
+ deps.push(depsMap.get(ITERATE_KEY));
+ if (isMap(target)) {
+ deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
+ }
+ }
+ break;
+ case "set":
+ if (isMap(target)) {
+ deps.push(depsMap.get(ITERATE_KEY));
+ }
+ break;
+ }
+ }
+ pauseScheduling();
+ for (const dep of deps) {
+ if (dep) {
+ triggerEffects(
+ dep,
+ 4,
+ !!(define_process_env_default$4.NODE_ENV !== "production") ? {
+ target,
+ type,
+ key,
+ newValue,
+ oldValue,
+ oldTarget
+ } : void 0
+ );
+ }
+ }
+ resetScheduling();
+ }
+ __name(trigger, "trigger");
+ function getDepFromReactive(object, key) {
+ const depsMap = targetMap.get(object);
+ return depsMap && depsMap.get(key);
+ }
+ __name(getDepFromReactive, "getDepFromReactive");
+ const isNonTrackableKeys = /* @__PURE__ */ makeMap(`__proto__,__v_isRef,__isVue`);
+ const builtInSymbols = new Set(
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
+ );
+ const arrayInstrumentations = /* @__PURE__ */ createArrayInstrumentations();
+ function createArrayInstrumentations() {
+ const instrumentations = {};
+ ["includes", "indexOf", "lastIndexOf"].forEach((key) => {
+ instrumentations[key] = function(...args) {
+ const arr = toRaw(this);
+ for (let i = 0, l = this.length; i < l; i++) {
+ track(arr, "get", i + "");
+ }
+ const res = arr[key](...args);
+ if (res === -1 || res === false) {
+ return arr[key](...args.map(toRaw));
+ } else {
+ return res;
+ }
+ };
+ });
+ ["push", "pop", "shift", "unshift", "splice"].forEach((key) => {
+ instrumentations[key] = function(...args) {
+ pauseTracking();
+ pauseScheduling();
+ const res = toRaw(this)[key].apply(this, args);
+ resetScheduling();
+ resetTracking();
+ return res;
+ };
+ });
+ return instrumentations;
+ }
+ __name(createArrayInstrumentations, "createArrayInstrumentations");
+ function hasOwnProperty(key) {
+ if (!isSymbol(key)) key = String(key);
+ const obj = toRaw(this);
+ track(obj, "has", key);
+ return obj.hasOwnProperty(key);
+ }
+ __name(hasOwnProperty, "hasOwnProperty");
+ const _BaseReactiveHandler = class _BaseReactiveHandler {
+ constructor(_isReadonly = false, _isShallow = false) {
+ this._isReadonly = _isReadonly;
+ this._isShallow = _isShallow;
+ }
+ get(target, key, receiver) {
+ const isReadonly2 = this._isReadonly, isShallow2 = this._isShallow;
+ if (key === "__v_isReactive") {
+ return !isReadonly2;
+ } else if (key === "__v_isReadonly") {
+ return isReadonly2;
+ } else if (key === "__v_isShallow") {
+ return isShallow2;
+ } else if (key === "__v_raw") {
+ if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype
+ // this means the reciever is a user proxy of the reactive proxy
+ Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) {
+ return target;
+ }
+ return;
+ }
+ const targetIsArray = isArray(target);
+ if (!isReadonly2) {
+ if (targetIsArray && hasOwn(arrayInstrumentations, key)) {
+ return Reflect.get(arrayInstrumentations, key, receiver);
+ }
+ if (key === "hasOwnProperty") {
+ return hasOwnProperty;
+ }
+ }
+ const res = Reflect.get(target, key, receiver);
+ if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
+ return res;
+ }
+ if (!isReadonly2) {
+ track(target, "get", key);
+ }
+ if (isShallow2) {
+ return res;
+ }
+ if (isRef(res)) {
+ return targetIsArray && isIntegerKey(key) ? res : res.value;
+ }
+ if (isObject(res)) {
+ return isReadonly2 ? readonly(res) : reactive(res);
+ }
+ return res;
+ }
+ };
+ __name(_BaseReactiveHandler, "BaseReactiveHandler");
+ let BaseReactiveHandler = _BaseReactiveHandler;
+ const _MutableReactiveHandler = class _MutableReactiveHandler extends BaseReactiveHandler {
+ constructor(isShallow2 = false) {
+ super(false, isShallow2);
+ }
+ set(target, key, value, receiver) {
+ let oldValue = target[key];
+ if (!this._isShallow) {
+ const isOldValueReadonly = isReadonly(oldValue);
+ if (!isShallow(value) && !isReadonly(value)) {
+ oldValue = toRaw(oldValue);
+ value = toRaw(value);
+ }
+ if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
+ if (isOldValueReadonly) {
+ return false;
+ } else {
+ oldValue.value = value;
+ return true;
+ }
+ }
+ }
+ const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
+ const result = Reflect.set(target, key, value, receiver);
+ if (target === toRaw(receiver)) {
+ if (!hadKey) {
+ trigger(target, "add", key, value);
+ } else if (hasChanged(value, oldValue)) {
+ trigger(target, "set", key, value, oldValue);
+ }
+ }
+ return result;
+ }
+ deleteProperty(target, key) {
+ const hadKey = hasOwn(target, key);
+ const oldValue = target[key];
+ const result = Reflect.deleteProperty(target, key);
+ if (result && hadKey) {
+ trigger(target, "delete", key, void 0, oldValue);
+ }
+ return result;
+ }
+ has(target, key) {
+ const result = Reflect.has(target, key);
+ if (!isSymbol(key) || !builtInSymbols.has(key)) {
+ track(target, "has", key);
+ }
+ return result;
+ }
+ ownKeys(target) {
+ track(
+ target,
+ "iterate",
+ isArray(target) ? "length" : ITERATE_KEY
+ );
+ return Reflect.ownKeys(target);
+ }
+ };
+ __name(_MutableReactiveHandler, "MutableReactiveHandler");
+ let MutableReactiveHandler = _MutableReactiveHandler;
+ const _ReadonlyReactiveHandler = class _ReadonlyReactiveHandler extends BaseReactiveHandler {
+ constructor(isShallow2 = false) {
+ super(true, isShallow2);
+ }
+ set(target, key) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ warn$2(
+ `Set operation on key "${String(key)}" failed: target is readonly.`,
+ target
+ );
+ }
+ return true;
+ }
+ deleteProperty(target, key) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ warn$2(
+ `Delete operation on key "${String(key)}" failed: target is readonly.`,
+ target
+ );
+ }
+ return true;
+ }
+ };
+ __name(_ReadonlyReactiveHandler, "ReadonlyReactiveHandler");
+ let ReadonlyReactiveHandler = _ReadonlyReactiveHandler;
+ const mutableHandlers = /* @__PURE__ */ new MutableReactiveHandler();
+ const readonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler();
+ const shallowReactiveHandlers = /* @__PURE__ */ new MutableReactiveHandler(
+ true
+ );
+ const shallowReadonlyHandlers = /* @__PURE__ */ new ReadonlyReactiveHandler(true);
+ const toShallow = /* @__PURE__ */ __name((value) => value, "toShallow");
+ const getProto = /* @__PURE__ */ __name((v) => Reflect.getPrototypeOf(v), "getProto");
+ function get(target, key, isReadonly2 = false, isShallow2 = false) {
+ target = target["__v_raw"];
+ const rawTarget = toRaw(target);
+ const rawKey = toRaw(key);
+ if (!isReadonly2) {
+ if (hasChanged(key, rawKey)) {
+ track(rawTarget, "get", key);
+ }
+ track(rawTarget, "get", rawKey);
+ }
+ const { has: has2 } = getProto(rawTarget);
+ const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
+ if (has2.call(rawTarget, key)) {
+ return wrap(target.get(key));
+ } else if (has2.call(rawTarget, rawKey)) {
+ return wrap(target.get(rawKey));
+ } else if (target !== rawTarget) {
+ target.get(key);
+ }
+ }
+ __name(get, "get");
+ function has(key, isReadonly2 = false) {
+ const target = this["__v_raw"];
+ const rawTarget = toRaw(target);
+ const rawKey = toRaw(key);
+ if (!isReadonly2) {
+ if (hasChanged(key, rawKey)) {
+ track(rawTarget, "has", key);
+ }
+ track(rawTarget, "has", rawKey);
+ }
+ return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
+ }
+ __name(has, "has");
+ function size(target, isReadonly2 = false) {
+ target = target["__v_raw"];
+ !isReadonly2 && track(toRaw(target), "iterate", ITERATE_KEY);
+ return Reflect.get(target, "size", target);
+ }
+ __name(size, "size");
+ function add(value, _isShallow = false) {
+ if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
+ value = toRaw(value);
+ }
+ const target = toRaw(this);
+ const proto = getProto(target);
+ const hadKey = proto.has.call(target, value);
+ if (!hadKey) {
+ target.add(value);
+ trigger(target, "add", value, value);
+ }
+ return this;
+ }
+ __name(add, "add");
+ function set$1(key, value, _isShallow = false) {
+ if (!_isShallow && !isShallow(value) && !isReadonly(value)) {
+ value = toRaw(value);
+ }
+ const target = toRaw(this);
+ const { has: has2, get: get2 } = getProto(target);
+ let hadKey = has2.call(target, key);
+ if (!hadKey) {
+ key = toRaw(key);
+ hadKey = has2.call(target, key);
+ } else if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ checkIdentityKeys(target, has2, key);
+ }
+ const oldValue = get2.call(target, key);
+ target.set(key, value);
+ if (!hadKey) {
+ trigger(target, "add", key, value);
+ } else if (hasChanged(value, oldValue)) {
+ trigger(target, "set", key, value, oldValue);
+ }
+ return this;
+ }
+ __name(set$1, "set$1");
+ function deleteEntry(key) {
+ const target = toRaw(this);
+ const { has: has2, get: get2 } = getProto(target);
+ let hadKey = has2.call(target, key);
+ if (!hadKey) {
+ key = toRaw(key);
+ hadKey = has2.call(target, key);
+ } else if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ checkIdentityKeys(target, has2, key);
+ }
+ const oldValue = get2 ? get2.call(target, key) : void 0;
+ const result = target.delete(key);
+ if (hadKey) {
+ trigger(target, "delete", key, void 0, oldValue);
+ }
+ return result;
+ }
+ __name(deleteEntry, "deleteEntry");
+ function clear() {
+ const target = toRaw(this);
+ const hadItems = target.size !== 0;
+ const oldTarget = !!(define_process_env_default$4.NODE_ENV !== "production") ? isMap(target) ? new Map(target) : new Set(target) : void 0;
+ const result = target.clear();
+ if (hadItems) {
+ trigger(target, "clear", void 0, void 0, oldTarget);
+ }
+ return result;
+ }
+ __name(clear, "clear");
+ function createForEach(isReadonly2, isShallow2) {
+ return /* @__PURE__ */ __name(function forEach(callback, thisArg) {
+ const observed = this;
+ const target = observed["__v_raw"];
+ const rawTarget = toRaw(target);
+ const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
+ !isReadonly2 && track(rawTarget, "iterate", ITERATE_KEY);
+ return target.forEach((value, key) => {
+ return callback.call(thisArg, wrap(value), wrap(key), observed);
+ });
+ }, "forEach");
+ }
+ __name(createForEach, "createForEach");
+ function createIterableMethod(method, isReadonly2, isShallow2) {
+ return function(...args) {
+ const target = this["__v_raw"];
+ const rawTarget = toRaw(target);
+ const targetIsMap = isMap(rawTarget);
+ const isPair = method === "entries" || method === Symbol.iterator && targetIsMap;
+ const isKeyOnly = method === "keys" && targetIsMap;
+ const innerIterator = target[method](...args);
+ const wrap = isShallow2 ? toShallow : isReadonly2 ? toReadonly : toReactive;
+ !isReadonly2 && track(
+ rawTarget,
+ "iterate",
+ isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
+ );
+ return {
+ // iterator protocol
+ next() {
+ const { value, done } = innerIterator.next();
+ return done ? { value, done } : {
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
+ done
+ };
+ },
+ // iterable protocol
+ [Symbol.iterator]() {
+ return this;
+ }
+ };
+ };
+ }
+ __name(createIterableMethod, "createIterableMethod");
+ function createReadonlyMethod(type) {
+ return function(...args) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ const key = args[0] ? `on key "${args[0]}" ` : ``;
+ warn$2(
+ `${capitalize(type)} operation ${key}failed: target is readonly.`,
+ toRaw(this)
+ );
+ }
+ return type === "delete" ? false : type === "clear" ? void 0 : this;
+ };
+ }
+ __name(createReadonlyMethod, "createReadonlyMethod");
+ function createInstrumentations() {
+ const mutableInstrumentations2 = {
+ get(key) {
+ return get(this, key);
+ },
+ get size() {
+ return size(this);
+ },
+ has,
+ add,
+ set: set$1,
+ delete: deleteEntry,
+ clear,
+ forEach: createForEach(false, false)
+ };
+ const shallowInstrumentations2 = {
+ get(key) {
+ return get(this, key, false, true);
+ },
+ get size() {
+ return size(this);
+ },
+ has,
+ add(value) {
+ return add.call(this, value, true);
+ },
+ set(key, value) {
+ return set$1.call(this, key, value, true);
+ },
+ delete: deleteEntry,
+ clear,
+ forEach: createForEach(false, true)
+ };
+ const readonlyInstrumentations2 = {
+ get(key) {
+ return get(this, key, true);
+ },
+ get size() {
+ return size(this, true);
+ },
+ has(key) {
+ return has.call(this, key, true);
+ },
+ add: createReadonlyMethod("add"),
+ set: createReadonlyMethod("set"),
+ delete: createReadonlyMethod("delete"),
+ clear: createReadonlyMethod("clear"),
+ forEach: createForEach(true, false)
+ };
+ const shallowReadonlyInstrumentations2 = {
+ get(key) {
+ return get(this, key, true, true);
+ },
+ get size() {
+ return size(this, true);
+ },
+ has(key) {
+ return has.call(this, key, true);
+ },
+ add: createReadonlyMethod("add"),
+ set: createReadonlyMethod("set"),
+ delete: createReadonlyMethod("delete"),
+ clear: createReadonlyMethod("clear"),
+ forEach: createForEach(true, true)
+ };
+ const iteratorMethods = [
+ "keys",
+ "values",
+ "entries",
+ Symbol.iterator
+ ];
+ iteratorMethods.forEach((method) => {
+ mutableInstrumentations2[method] = createIterableMethod(method, false, false);
+ readonlyInstrumentations2[method] = createIterableMethod(method, true, false);
+ shallowInstrumentations2[method] = createIterableMethod(method, false, true);
+ shallowReadonlyInstrumentations2[method] = createIterableMethod(
+ method,
+ true,
+ true
+ );
+ });
+ return [
+ mutableInstrumentations2,
+ readonlyInstrumentations2,
+ shallowInstrumentations2,
+ shallowReadonlyInstrumentations2
+ ];
+ }
+ __name(createInstrumentations, "createInstrumentations");
+ const [
+ mutableInstrumentations,
+ readonlyInstrumentations,
+ shallowInstrumentations,
+ shallowReadonlyInstrumentations
+ ] = /* @__PURE__ */ createInstrumentations();
+ function createInstrumentationGetter(isReadonly2, shallow) {
+ const instrumentations = shallow ? isReadonly2 ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly2 ? readonlyInstrumentations : mutableInstrumentations;
+ return (target, key, receiver) => {
+ if (key === "__v_isReactive") {
+ return !isReadonly2;
+ } else if (key === "__v_isReadonly") {
+ return isReadonly2;
+ } else if (key === "__v_raw") {
+ return target;
+ }
+ return Reflect.get(
+ hasOwn(instrumentations, key) && key in target ? instrumentations : target,
+ key,
+ receiver
+ );
+ };
+ }
+ __name(createInstrumentationGetter, "createInstrumentationGetter");
+ const mutableCollectionHandlers = {
+ get: /* @__PURE__ */ createInstrumentationGetter(false, false)
+ };
+ const shallowCollectionHandlers = {
+ get: /* @__PURE__ */ createInstrumentationGetter(false, true)
+ };
+ const readonlyCollectionHandlers = {
+ get: /* @__PURE__ */ createInstrumentationGetter(true, false)
+ };
+ const shallowReadonlyCollectionHandlers = {
+ get: /* @__PURE__ */ createInstrumentationGetter(true, true)
+ };
+ function checkIdentityKeys(target, has2, key) {
+ const rawKey = toRaw(key);
+ if (rawKey !== key && has2.call(target, rawKey)) {
+ const type = toRawType(target);
+ warn$2(
+ `Reactive ${type} contains both the raw and reactive versions of the same object${type === `Map` ? ` as keys` : ``}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`
+ );
+ }
+ }
+ __name(checkIdentityKeys, "checkIdentityKeys");
+ const reactiveMap = /* @__PURE__ */ new WeakMap();
+ const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
+ const readonlyMap = /* @__PURE__ */ new WeakMap();
+ const shallowReadonlyMap = /* @__PURE__ */ new WeakMap();
+ function targetTypeMap(rawType) {
+ switch (rawType) {
+ case "Object":
+ case "Array":
+ return 1;
+ case "Map":
+ case "Set":
+ case "WeakMap":
+ case "WeakSet":
+ return 2;
+ default:
+ return 0;
+ }
+ }
+ __name(targetTypeMap, "targetTypeMap");
+ function getTargetType(value) {
+ return value["__v_skip"] || !Object.isExtensible(value) ? 0 : targetTypeMap(toRawType(value));
+ }
+ __name(getTargetType, "getTargetType");
+ function reactive(target) {
+ if (isReadonly(target)) {
+ return target;
+ }
+ return createReactiveObject(
+ target,
+ false,
+ mutableHandlers,
+ mutableCollectionHandlers,
+ reactiveMap
+ );
+ }
+ __name(reactive, "reactive");
+ function shallowReactive(target) {
+ return createReactiveObject(
+ target,
+ false,
+ shallowReactiveHandlers,
+ shallowCollectionHandlers,
+ shallowReactiveMap
+ );
+ }
+ __name(shallowReactive, "shallowReactive");
+ function readonly(target) {
+ return createReactiveObject(
+ target,
+ true,
+ readonlyHandlers,
+ readonlyCollectionHandlers,
+ readonlyMap
+ );
+ }
+ __name(readonly, "readonly");
+ function shallowReadonly(target) {
+ return createReactiveObject(
+ target,
+ true,
+ shallowReadonlyHandlers,
+ shallowReadonlyCollectionHandlers,
+ shallowReadonlyMap
+ );
+ }
+ __name(shallowReadonly, "shallowReadonly");
+ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandlers, proxyMap) {
+ if (!isObject(target)) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production")) {
+ warn$2(
+ `value cannot be made ${isReadonly2 ? "readonly" : "reactive"}: ${String(
+ target
+ )}`
+ );
+ }
+ return target;
+ }
+ if (target["__v_raw"] && !(isReadonly2 && target["__v_isReactive"])) {
+ return target;
+ }
+ const existingProxy = proxyMap.get(target);
+ if (existingProxy) {
+ return existingProxy;
+ }
+ const targetType = getTargetType(target);
+ if (targetType === 0) {
+ return target;
+ }
+ const proxy = new Proxy(
+ target,
+ targetType === 2 ? collectionHandlers : baseHandlers
+ );
+ proxyMap.set(target, proxy);
+ return proxy;
+ }
+ __name(createReactiveObject, "createReactiveObject");
+ function isReactive(value) {
+ if (isReadonly(value)) {
+ return isReactive(value["__v_raw"]);
+ }
+ return !!(value && value["__v_isReactive"]);
+ }
+ __name(isReactive, "isReactive");
+ function isReadonly(value) {
+ return !!(value && value["__v_isReadonly"]);
+ }
+ __name(isReadonly, "isReadonly");
+ function isShallow(value) {
+ return !!(value && value["__v_isShallow"]);
+ }
+ __name(isShallow, "isShallow");
+ function isProxy(value) {
+ return value ? !!value["__v_raw"] : false;
+ }
+ __name(isProxy, "isProxy");
+ function toRaw(observed) {
+ const raw = observed && observed["__v_raw"];
+ return raw ? toRaw(raw) : observed;
+ }
+ __name(toRaw, "toRaw");
+ function markRaw(value) {
+ if (Object.isExtensible(value)) {
+ def(value, "__v_skip", true);
+ }
+ return value;
+ }
+ __name(markRaw, "markRaw");
+ const toReactive = /* @__PURE__ */ __name((value) => isObject(value) ? reactive(value) : value, "toReactive");
+ const toReadonly = /* @__PURE__ */ __name((value) => isObject(value) ? readonly(value) : value, "toReadonly");
+ const COMPUTED_SIDE_EFFECT_WARN = `Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free`;
+ const _ComputedRefImpl = class _ComputedRefImpl {
+ constructor(getter, _setter, isReadonly2, isSSR) {
+ this.getter = getter;
+ this._setter = _setter;
+ this.dep = void 0;
+ this.__v_isRef = true;
+ this["__v_isReadonly"] = false;
+ this.effect = new ReactiveEffect(
+ () => getter(this._value),
+ () => triggerRefValue(
+ this,
+ this.effect._dirtyLevel === 2 ? 2 : 3
+ )
+ );
+ this.effect.computed = this;
+ this.effect.active = this._cacheable = !isSSR;
+ this["__v_isReadonly"] = isReadonly2;
+ }
+ get value() {
+ const self2 = toRaw(this);
+ if ((!self2._cacheable || self2.effect.dirty) && hasChanged(self2._value, self2._value = self2.effect.run())) {
+ triggerRefValue(self2, 4);
+ }
+ trackRefValue(self2);
+ if (self2.effect._dirtyLevel >= 2) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production") && this._warnRecursive) {
+ warn$2(COMPUTED_SIDE_EFFECT_WARN, `
+
+getter: `, this.getter);
+ }
+ triggerRefValue(self2, 2);
+ }
+ return self2._value;
+ }
+ set value(newValue) {
+ this._setter(newValue);
+ }
+ // #region polyfill _dirty for backward compatibility third party code for Vue <= 3.3.x
+ get _dirty() {
+ return this.effect.dirty;
+ }
+ set _dirty(v) {
+ this.effect.dirty = v;
+ }
+ // #endregion
+ };
+ __name(_ComputedRefImpl, "ComputedRefImpl");
+ let ComputedRefImpl = _ComputedRefImpl;
+ function computed$1(getterOrOptions, debugOptions, isSSR = false) {
+ let getter;
+ let setter;
+ const onlyGetter = isFunction(getterOrOptions);
+ if (onlyGetter) {
+ getter = getterOrOptions;
+ setter = !!(define_process_env_default$4.NODE_ENV !== "production") ? () => {
+ warn$2("Write operation failed: computed value is readonly");
+ } : NOOP;
+ } else {
+ getter = getterOrOptions.get;
+ setter = getterOrOptions.set;
+ }
+ const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
+ if (!!(define_process_env_default$4.NODE_ENV !== "production") && debugOptions && !isSSR) {
+ cRef.effect.onTrack = debugOptions.onTrack;
+ cRef.effect.onTrigger = debugOptions.onTrigger;
+ }
+ return cRef;
+ }
+ __name(computed$1, "computed$1");
+ function trackRefValue(ref2) {
+ var _a;
+ if (shouldTrack && activeEffect) {
+ ref2 = toRaw(ref2);
+ trackEffect(
+ activeEffect,
+ (_a = ref2.dep) != null ? _a : ref2.dep = createDep(
+ () => ref2.dep = void 0,
+ ref2 instanceof ComputedRefImpl ? ref2 : void 0
+ ),
+ !!(define_process_env_default$4.NODE_ENV !== "production") ? {
+ target: ref2,
+ type: "get",
+ key: "value"
+ } : void 0
+ );
+ }
+ }
+ __name(trackRefValue, "trackRefValue");
+ function triggerRefValue(ref2, dirtyLevel = 4, newVal, oldVal) {
+ ref2 = toRaw(ref2);
+ const dep = ref2.dep;
+ if (dep) {
+ triggerEffects(
+ dep,
+ dirtyLevel,
+ !!(define_process_env_default$4.NODE_ENV !== "production") ? {
+ target: ref2,
+ type: "set",
+ key: "value",
+ newValue: newVal,
+ oldValue: oldVal
+ } : void 0
+ );
+ }
+ }
+ __name(triggerRefValue, "triggerRefValue");
+ function isRef(r) {
+ return !!(r && r.__v_isRef === true);
+ }
+ __name(isRef, "isRef");
+ function ref(value) {
+ return createRef(value, false);
+ }
+ __name(ref, "ref");
+ function createRef(rawValue, shallow) {
+ if (isRef(rawValue)) {
+ return rawValue;
+ }
+ return new RefImpl(rawValue, shallow);
+ }
+ __name(createRef, "createRef");
+ const _RefImpl = class _RefImpl {
+ constructor(value, __v_isShallow) {
+ this.__v_isShallow = __v_isShallow;
+ this.dep = void 0;
+ this.__v_isRef = true;
+ this._rawValue = __v_isShallow ? value : toRaw(value);
+ this._value = __v_isShallow ? value : toReactive(value);
+ }
+ get value() {
+ trackRefValue(this);
+ return this._value;
+ }
+ set value(newVal) {
+ const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);
+ newVal = useDirectValue ? newVal : toRaw(newVal);
+ if (hasChanged(newVal, this._rawValue)) {
+ const oldVal = this._rawValue;
+ this._rawValue = newVal;
+ this._value = useDirectValue ? newVal : toReactive(newVal);
+ triggerRefValue(this, 4, newVal, oldVal);
+ }
+ }
+ };
+ __name(_RefImpl, "RefImpl");
+ let RefImpl = _RefImpl;
+ function unref(ref2) {
+ return isRef(ref2) ? ref2.value : ref2;
+ }
+ __name(unref, "unref");
+ const shallowUnwrapHandlers = {
+ get: /* @__PURE__ */ __name((target, key, receiver) => unref(Reflect.get(target, key, receiver)), "get"),
+ set: /* @__PURE__ */ __name((target, key, value, receiver) => {
+ const oldValue = target[key];
+ if (isRef(oldValue) && !isRef(value)) {
+ oldValue.value = value;
+ return true;
+ } else {
+ return Reflect.set(target, key, value, receiver);
+ }
+ }, "set")
+ };
+ function proxyRefs(objectWithRefs) {
+ return isReactive(objectWithRefs) ? objectWithRefs : new Proxy(objectWithRefs, shallowUnwrapHandlers);
+ }
+ __name(proxyRefs, "proxyRefs");
+ function toRefs(object) {
+ if (!!(define_process_env_default$4.NODE_ENV !== "production") && !isProxy(object)) {
+ warn$2(`toRefs() expects a reactive object but received a plain one.`);
+ }
+ const ret = isArray(object) ? new Array(object.length) : {};
+ for (const key in object) {
+ ret[key] = propertyToRef(object, key);
+ }
+ return ret;
+ }
+ __name(toRefs, "toRefs");
+ const _ObjectRefImpl = class _ObjectRefImpl {
+ constructor(_object, _key, _defaultValue) {
+ this._object = _object;
+ this._key = _key;
+ this._defaultValue = _defaultValue;
+ this.__v_isRef = true;
+ }
+ get value() {
+ const val = this._object[this._key];
+ return val === void 0 ? this._defaultValue : val;
+ }
+ set value(newVal) {
+ this._object[this._key] = newVal;
+ }
+ get dep() {
+ return getDepFromReactive(toRaw(this._object), this._key);
+ }
+ };
+ __name(_ObjectRefImpl, "ObjectRefImpl");
+ let ObjectRefImpl = _ObjectRefImpl;
+ const _GetterRefImpl = class _GetterRefImpl {
+ constructor(_getter) {
+ this._getter = _getter;
+ this.__v_isRef = true;
+ this.__v_isReadonly = true;
+ }
+ get value() {
+ return this._getter();
+ }
+ };
+ __name(_GetterRefImpl, "GetterRefImpl");
+ let GetterRefImpl = _GetterRefImpl;
+ function toRef(source, key, defaultValue) {
+ if (isRef(source)) {
+ return source;
+ } else if (isFunction(source)) {
+ return new GetterRefImpl(source);
+ } else if (isObject(source) && arguments.length > 1) {
+ return propertyToRef(source, key, defaultValue);
+ } else {
+ return ref(source);
+ }
+ }
+ __name(toRef, "toRef");
+ function propertyToRef(source, key, defaultValue) {
+ const val = source[key];
+ return isRef(val) ? val : new ObjectRefImpl(source, key, defaultValue);
+ }
+ __name(propertyToRef, "propertyToRef");
+ var define_process_env_default$3 = {};
+ const stack = [];
+ function pushWarningContext(vnode) {
+ stack.push(vnode);
+ }
+ __name(pushWarningContext, "pushWarningContext");
+ function popWarningContext() {
+ stack.pop();
+ }
+ __name(popWarningContext, "popWarningContext");
+ let isWarning = false;
+ function warn$1(msg, ...args) {
+ if (isWarning) return;
+ isWarning = true;
+ pauseTracking();
+ const instance = stack.length ? stack[stack.length - 1].component : null;
+ const appWarnHandler = instance && instance.appContext.config.warnHandler;
+ const trace = getComponentTrace();
+ if (appWarnHandler) {
+ callWithErrorHandling(
+ appWarnHandler,
+ instance,
+ 11,
+ [
+ // eslint-disable-next-line no-restricted-syntax
+ msg + args.map((a) => {
+ var _a, _b;
+ return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
+ }).join(""),
+ instance && instance.proxy,
+ trace.map(
+ ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`
+ ).join("\n"),
+ trace
+ ]
+ );
+ } else {
+ const warnArgs = [`[Vue warn]: ${msg}`, ...args];
+ if (trace.length && // avoid spamming console during tests
+ true) {
+ warnArgs.push(`
+`, ...formatTrace(trace));
+ }
+ console.warn(...warnArgs);
+ }
+ resetTracking();
+ isWarning = false;
+ }
+ __name(warn$1, "warn$1");
+ function getComponentTrace() {
+ let currentVNode = stack[stack.length - 1];
+ if (!currentVNode) {
+ return [];
+ }
+ const normalizedStack = [];
+ while (currentVNode) {
+ const last = normalizedStack[0];
+ if (last && last.vnode === currentVNode) {
+ last.recurseCount++;
+ } else {
+ normalizedStack.push({
+ vnode: currentVNode,
+ recurseCount: 0
+ });
+ }
+ const parentInstance = currentVNode.component && currentVNode.component.parent;
+ currentVNode = parentInstance && parentInstance.vnode;
+ }
+ return normalizedStack;
+ }
+ __name(getComponentTrace, "getComponentTrace");
+ function formatTrace(trace) {
+ const logs = [];
+ trace.forEach((entry, i) => {
+ logs.push(...i === 0 ? [] : [`
+`], ...formatTraceEntry(entry));
+ });
+ return logs;
+ }
+ __name(formatTrace, "formatTrace");
+ function formatTraceEntry({ vnode, recurseCount }) {
+ const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
+ const isRoot = vnode.component ? vnode.component.parent == null : false;
+ const open = ` at <${formatComponentName(
+ vnode.component,
+ vnode.type,
+ isRoot
+ )}`;
+ const close = `>` + postfix;
+ return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];
+ }
+ __name(formatTraceEntry, "formatTraceEntry");
+ function formatProps(props) {
+ const res = [];
+ const keys = Object.keys(props);
+ keys.slice(0, 3).forEach((key) => {
+ res.push(...formatProp(key, props[key]));
+ });
+ if (keys.length > 3) {
+ res.push(` ...`);
+ }
+ return res;
+ }
+ __name(formatProps, "formatProps");
+ function formatProp(key, value, raw) {
+ if (isString(value)) {
+ value = JSON.stringify(value);
+ return raw ? value : [`${key}=${value}`];
+ } else if (typeof value === "number" || typeof value === "boolean" || value == null) {
+ return raw ? value : [`${key}=${value}`];
+ } else if (isRef(value)) {
+ value = formatProp(key, toRaw(value.value), true);
+ return raw ? value : [`${key}=Ref<`, value, `>`];
+ } else if (isFunction(value)) {
+ return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
+ } else {
+ value = toRaw(value);
+ return raw ? value : [`${key}=`, value];
+ }
+ }
+ __name(formatProp, "formatProp");
+ function assertNumber(val, type) {
+ if (!!!(define_process_env_default$3.NODE_ENV !== "production")) return;
+ if (val === void 0) {
+ return;
+ } else if (typeof val !== "number") {
+ warn$1(`${type} is not a valid number - got ${JSON.stringify(val)}.`);
+ } else if (isNaN(val)) {
+ warn$1(`${type} is NaN - the duration expression might be incorrect.`);
+ }
+ }
+ __name(assertNumber, "assertNumber");
+ const ErrorTypeStrings$1 = {
+ ["sp"]: "serverPrefetch hook",
+ ["bc"]: "beforeCreate hook",
+ ["c"]: "created hook",
+ ["bm"]: "beforeMount hook",
+ ["m"]: "mounted hook",
+ ["bu"]: "beforeUpdate hook",
+ ["u"]: "updated",
+ ["bum"]: "beforeUnmount hook",
+ ["um"]: "unmounted hook",
+ ["a"]: "activated hook",
+ ["da"]: "deactivated hook",
+ ["ec"]: "errorCaptured hook",
+ ["rtc"]: "renderTracked hook",
+ ["rtg"]: "renderTriggered hook",
+ [0]: "setup function",
+ [1]: "render function",
+ [2]: "watcher getter",
+ [3]: "watcher callback",
+ [4]: "watcher cleanup function",
+ [5]: "native event handler",
+ [6]: "component event handler",
+ [7]: "vnode hook",
+ [8]: "directive hook",
+ [9]: "transition hook",
+ [10]: "app errorHandler",
+ [11]: "app warnHandler",
+ [12]: "ref function",
+ [13]: "async component loader",
+ [14]: "scheduler flush",
+ [15]: "component update"
+ };
+ function callWithErrorHandling(fn, instance, type, args) {
+ try {
+ return args ? fn(...args) : fn();
+ } catch (err) {
+ handleError(err, instance, type);
+ }
+ }
+ __name(callWithErrorHandling, "callWithErrorHandling");
+ function callWithAsyncErrorHandling(fn, instance, type, args) {
+ if (isFunction(fn)) {
+ const res = callWithErrorHandling(fn, instance, type, args);
+ if (res && isPromise(res)) {
+ res.catch((err) => {
+ handleError(err, instance, type);
+ });
+ }
+ return res;
+ }
+ if (isArray(fn)) {
+ const values = [];
+ for (let i = 0; i < fn.length; i++) {
+ values.push(callWithAsyncErrorHandling(fn[i], instance, type, args));
+ }
+ return values;
+ } else if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ warn$1(
+ `Invalid value type passed to callWithAsyncErrorHandling(): ${typeof fn}`
+ );
+ }
+ }
+ __name(callWithAsyncErrorHandling, "callWithAsyncErrorHandling");
+ function handleError(err, instance, type, throwInDev = true) {
+ const contextVNode = instance ? instance.vnode : null;
+ if (instance) {
+ let cur = instance.parent;
+ const exposedInstance = instance.proxy;
+ const errorInfo = !!(define_process_env_default$3.NODE_ENV !== "production") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;
+ while (cur) {
+ const errorCapturedHooks = cur.ec;
+ if (errorCapturedHooks) {
+ for (let i = 0; i < errorCapturedHooks.length; i++) {
+ if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
+ return;
+ }
+ }
+ }
+ cur = cur.parent;
+ }
+ const appErrorHandler = instance.appContext.config.errorHandler;
+ if (appErrorHandler) {
+ pauseTracking();
+ callWithErrorHandling(
+ appErrorHandler,
+ null,
+ 10,
+ [err, exposedInstance, errorInfo]
+ );
+ resetTracking();
+ return;
+ }
+ }
+ logError(err, type, contextVNode, throwInDev);
+ }
+ __name(handleError, "handleError");
+ function logError(err, type, contextVNode, throwInDev = true) {
+ if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ const info = ErrorTypeStrings$1[type];
+ if (contextVNode) {
+ pushWarningContext(contextVNode);
+ }
+ warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
+ if (contextVNode) {
+ popWarningContext();
+ }
+ if (throwInDev) {
+ throw err;
+ } else {
+ console.error(err);
+ }
+ } else {
+ console.error(err);
+ }
+ }
+ __name(logError, "logError");
+ let isFlushing = false;
+ let isFlushPending = false;
+ const queue = [];
+ let flushIndex = 0;
+ const pendingPostFlushCbs = [];
+ let activePostFlushCbs = null;
+ let postFlushIndex = 0;
+ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
+ let currentFlushPromise = null;
+ const RECURSION_LIMIT = 100;
+ function nextTick(fn) {
+ const p2 = currentFlushPromise || resolvedPromise;
+ return fn ? p2.then(this ? fn.bind(this) : fn) : p2;
+ }
+ __name(nextTick, "nextTick");
+ function findInsertionIndex(id) {
+ let start = flushIndex + 1;
+ let end = queue.length;
+ while (start < end) {
+ const middle = start + end >>> 1;
+ const middleJob = queue[middle];
+ const middleJobId = getId(middleJob);
+ if (middleJobId < id || middleJobId === id && middleJob.pre) {
+ start = middle + 1;
+ } else {
+ end = middle;
+ }
+ }
+ return start;
+ }
+ __name(findInsertionIndex, "findInsertionIndex");
+ function queueJob(job) {
+ if (!queue.length || !queue.includes(
+ job,
+ isFlushing && job.allowRecurse ? flushIndex + 1 : flushIndex
+ )) {
+ if (job.id == null) {
+ queue.push(job);
+ } else {
+ queue.splice(findInsertionIndex(job.id), 0, job);
+ }
+ queueFlush();
+ }
+ }
+ __name(queueJob, "queueJob");
+ function queueFlush() {
+ if (!isFlushing && !isFlushPending) {
+ isFlushPending = true;
+ currentFlushPromise = resolvedPromise.then(flushJobs);
+ }
+ }
+ __name(queueFlush, "queueFlush");
+ function invalidateJob(job) {
+ const i = queue.indexOf(job);
+ if (i > flushIndex) {
+ queue.splice(i, 1);
+ }
+ }
+ __name(invalidateJob, "invalidateJob");
+ function queuePostFlushCb(cb) {
+ if (!isArray(cb)) {
+ if (!activePostFlushCbs || !activePostFlushCbs.includes(
+ cb,
+ cb.allowRecurse ? postFlushIndex + 1 : postFlushIndex
+ )) {
+ pendingPostFlushCbs.push(cb);
+ }
+ } else {
+ pendingPostFlushCbs.push(...cb);
+ }
+ queueFlush();
+ }
+ __name(queuePostFlushCb, "queuePostFlushCb");
+ function flushPreFlushCbs(instance, seen, i = isFlushing ? flushIndex + 1 : 0) {
+ if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ seen = seen || /* @__PURE__ */ new Map();
+ }
+ for (; i < queue.length; i++) {
+ const cb = queue[i];
+ if (cb && cb.pre) {
+ if (instance && cb.id !== instance.uid) {
+ continue;
+ }
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
+ continue;
+ }
+ queue.splice(i, 1);
+ i--;
+ cb();
+ }
+ }
+ }
+ __name(flushPreFlushCbs, "flushPreFlushCbs");
+ function flushPostFlushCbs(seen) {
+ if (pendingPostFlushCbs.length) {
+ const deduped = [...new Set(pendingPostFlushCbs)].sort(
+ (a, b) => getId(a) - getId(b)
+ );
+ pendingPostFlushCbs.length = 0;
+ if (activePostFlushCbs) {
+ activePostFlushCbs.push(...deduped);
+ return;
+ }
+ activePostFlushCbs = deduped;
+ if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ seen = seen || /* @__PURE__ */ new Map();
+ }
+ for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
+ const cb = activePostFlushCbs[postFlushIndex];
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
+ continue;
+ }
+ if (cb.active !== false) cb();
+ }
+ activePostFlushCbs = null;
+ postFlushIndex = 0;
+ }
+ }
+ __name(flushPostFlushCbs, "flushPostFlushCbs");
+ const getId = /* @__PURE__ */ __name((job) => job.id == null ? Infinity : job.id, "getId");
+ const comparator = /* @__PURE__ */ __name((a, b) => {
+ const diff = getId(a) - getId(b);
+ if (diff === 0) {
+ if (a.pre && !b.pre) return -1;
+ if (b.pre && !a.pre) return 1;
+ }
+ return diff;
+ }, "comparator");
+ function flushJobs(seen) {
+ isFlushPending = false;
+ isFlushing = true;
+ if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ seen = seen || /* @__PURE__ */ new Map();
+ }
+ queue.sort(comparator);
+ const check = !!(define_process_env_default$3.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
+ try {
+ for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
+ const job = queue[flushIndex];
+ if (job && job.active !== false) {
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && check(job)) {
+ continue;
+ }
+ callWithErrorHandling(
+ job,
+ job.i,
+ job.i ? 15 : 14
+ );
+ }
+ }
+ } finally {
+ flushIndex = 0;
+ queue.length = 0;
+ flushPostFlushCbs(seen);
+ isFlushing = false;
+ currentFlushPromise = null;
+ if (queue.length || pendingPostFlushCbs.length) {
+ flushJobs(seen);
+ }
+ }
+ }
+ __name(flushJobs, "flushJobs");
+ function checkRecursiveUpdates(seen, fn) {
+ if (!seen.has(fn)) {
+ seen.set(fn, 1);
+ } else {
+ const count = seen.get(fn);
+ if (count > RECURSION_LIMIT) {
+ const instance = fn.i;
+ const componentName = instance && getComponentName(instance.type);
+ handleError(
+ `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
+ null,
+ 10
+ );
+ return true;
+ } else {
+ seen.set(fn, count + 1);
+ }
+ }
+ }
+ __name(checkRecursiveUpdates, "checkRecursiveUpdates");
+ let isHmrUpdating = false;
+ const hmrDirtyComponents = /* @__PURE__ */ new Map();
+ if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ getGlobalThis().__VUE_HMR_RUNTIME__ = {
+ createRecord: tryWrap(createRecord),
+ rerender: tryWrap(rerender),
+ reload: tryWrap(reload)
+ };
+ }
+ const map = /* @__PURE__ */ new Map();
+ function registerHMR(instance) {
+ const id = instance.type.__hmrId;
+ let record = map.get(id);
+ if (!record) {
+ createRecord(id, instance.type);
+ record = map.get(id);
+ }
+ record.instances.add(instance);
+ }
+ __name(registerHMR, "registerHMR");
+ function unregisterHMR(instance) {
+ map.get(instance.type.__hmrId).instances.delete(instance);
+ }
+ __name(unregisterHMR, "unregisterHMR");
+ function createRecord(id, initialDef) {
+ if (map.has(id)) {
+ return false;
+ }
+ map.set(id, {
+ initialDef: normalizeClassComponent(initialDef),
+ instances: /* @__PURE__ */ new Set()
+ });
+ return true;
+ }
+ __name(createRecord, "createRecord");
+ function normalizeClassComponent(component) {
+ return isClassComponent(component) ? component.__vccOpts : component;
+ }
+ __name(normalizeClassComponent, "normalizeClassComponent");
+ function rerender(id, newRender) {
+ const record = map.get(id);
+ if (!record) {
+ return;
+ }
+ record.initialDef.render = newRender;
+ [...record.instances].forEach((instance) => {
+ if (newRender) {
+ instance.render = newRender;
+ normalizeClassComponent(instance.type).render = newRender;
+ }
+ instance.renderCache = [];
+ isHmrUpdating = true;
+ instance.effect.dirty = true;
+ instance.update();
+ isHmrUpdating = false;
+ });
+ }
+ __name(rerender, "rerender");
+ function reload(id, newComp) {
+ const record = map.get(id);
+ if (!record) return;
+ newComp = normalizeClassComponent(newComp);
+ updateComponentDef(record.initialDef, newComp);
+ const instances = [...record.instances];
+ for (let i = 0; i < instances.length; i++) {
+ const instance = instances[i];
+ const oldComp = normalizeClassComponent(instance.type);
+ let dirtyInstances = hmrDirtyComponents.get(oldComp);
+ if (!dirtyInstances) {
+ if (oldComp !== record.initialDef) {
+ updateComponentDef(oldComp, newComp);
+ }
+ hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
+ }
+ dirtyInstances.add(instance);
+ instance.appContext.propsCache.delete(instance.type);
+ instance.appContext.emitsCache.delete(instance.type);
+ instance.appContext.optionsCache.delete(instance.type);
+ if (instance.ceReload) {
+ dirtyInstances.add(instance);
+ instance.ceReload(newComp.styles);
+ dirtyInstances.delete(instance);
+ } else if (instance.parent) {
+ instance.parent.effect.dirty = true;
+ queueJob(() => {
+ instance.parent.update();
+ dirtyInstances.delete(instance);
+ });
+ } else if (instance.appContext.reload) {
+ instance.appContext.reload();
+ } else if (typeof window !== "undefined") {
+ window.location.reload();
+ } else {
+ console.warn(
+ "[HMR] Root or manually mounted instance modified. Full reload required."
+ );
+ }
+ }
+ queuePostFlushCb(() => {
+ hmrDirtyComponents.clear();
+ });
+ }
+ __name(reload, "reload");
+ function updateComponentDef(oldComp, newComp) {
+ extend(oldComp, newComp);
+ for (const key in oldComp) {
+ if (key !== "__file" && !(key in newComp)) {
+ delete oldComp[key];
+ }
+ }
+ }
+ __name(updateComponentDef, "updateComponentDef");
+ function tryWrap(fn) {
+ return (id, arg) => {
+ try {
+ return fn(id, arg);
+ } catch (e) {
+ console.error(e);
+ console.warn(
+ `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`
+ );
+ }
+ };
+ }
+ __name(tryWrap, "tryWrap");
+ let devtools$1;
+ let buffer = [];
+ let devtoolsNotInstalled = false;
+ function emit$1(event, ...args) {
+ if (devtools$1) {
+ devtools$1.emit(event, ...args);
+ } else if (!devtoolsNotInstalled) {
+ buffer.push({ event, args });
+ }
+ }
+ __name(emit$1, "emit$1");
+ function setDevtoolsHook$1(hook, target) {
+ var _a, _b;
+ devtools$1 = hook;
+ if (devtools$1) {
+ devtools$1.enabled = true;
+ buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
+ buffer = [];
+ } else if (
+ // handle late devtools injection - only do this if we are in an actual
+ // browser environment to avoid the timer handle stalling test runner exit
+ // (#4815)
+ typeof window !== "undefined" && // some envs mock window but not fully
+ window.HTMLElement && // also exclude jsdom
+ // eslint-disable-next-line no-restricted-syntax
+ !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
+ ) {
+ const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
+ replay.push((newHook) => {
+ setDevtoolsHook$1(newHook, target);
+ });
+ setTimeout(() => {
+ if (!devtools$1) {
+ target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
+ devtoolsNotInstalled = true;
+ buffer = [];
+ }
+ }, 3e3);
+ } else {
+ devtoolsNotInstalled = true;
+ buffer = [];
+ }
+ }
+ __name(setDevtoolsHook$1, "setDevtoolsHook$1");
+ function devtoolsInitApp(app, version2) {
+ emit$1("app:init", app, version2, {
+ Fragment,
+ Text,
+ Comment,
+ Static
+ });
+ }
+ __name(devtoolsInitApp, "devtoolsInitApp");
+ function devtoolsUnmountApp(app) {
+ emit$1("app:unmount", app);
+ }
+ __name(devtoolsUnmountApp, "devtoolsUnmountApp");
+ const devtoolsComponentAdded = /* @__PURE__ */ createDevtoolsComponentHook(
+ "component:added"
+ /* COMPONENT_ADDED */
+ );
+ const devtoolsComponentUpdated = /* @__PURE__ */ createDevtoolsComponentHook(
+ "component:updated"
+ /* COMPONENT_UPDATED */
+ );
+ const _devtoolsComponentRemoved = /* @__PURE__ */ createDevtoolsComponentHook(
+ "component:removed"
+ /* COMPONENT_REMOVED */
+ );
+ const devtoolsComponentRemoved = /* @__PURE__ */ __name((component) => {
+ if (devtools$1 && typeof devtools$1.cleanupBuffer === "function" && // remove the component if it wasn't buffered
+ !devtools$1.cleanupBuffer(component)) {
+ _devtoolsComponentRemoved(component);
+ }
+ }, "devtoolsComponentRemoved");
+ /*! #__NO_SIDE_EFFECTS__ */
+ // @__NO_SIDE_EFFECTS__
+ function createDevtoolsComponentHook(hook) {
+ return (component) => {
+ emit$1(
+ hook,
+ component.appContext.app,
+ component.uid,
+ component.parent ? component.parent.uid : void 0,
+ component
+ );
+ };
+ }
+ __name(createDevtoolsComponentHook, "createDevtoolsComponentHook");
+ const devtoolsPerfStart = /* @__PURE__ */ createDevtoolsPerformanceHook(
+ "perf:start"
+ /* PERFORMANCE_START */
+ );
+ const devtoolsPerfEnd = /* @__PURE__ */ createDevtoolsPerformanceHook(
+ "perf:end"
+ /* PERFORMANCE_END */
+ );
+ function createDevtoolsPerformanceHook(hook) {
+ return (component, type, time) => {
+ emit$1(hook, component.appContext.app, component.uid, component, type, time);
+ };
+ }
+ __name(createDevtoolsPerformanceHook, "createDevtoolsPerformanceHook");
+ function devtoolsComponentEmit(component, event, params) {
+ emit$1(
+ "component:emit",
+ component.appContext.app,
+ component,
+ event,
+ params
+ );
+ }
+ __name(devtoolsComponentEmit, "devtoolsComponentEmit");
+ let currentRenderingInstance = null;
+ let currentScopeId = null;
+ function setCurrentRenderingInstance(instance) {
+ const prev = currentRenderingInstance;
+ currentRenderingInstance = instance;
+ currentScopeId = instance && instance.type.__scopeId || null;
+ return prev;
+ }
+ __name(setCurrentRenderingInstance, "setCurrentRenderingInstance");
+ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
+ if (!ctx) return fn;
+ if (fn._n) {
+ return fn;
+ }
+ const renderFnWithContext = /* @__PURE__ */ __name((...args) => {
+ if (renderFnWithContext._d) {
+ setBlockTracking(-1);
+ }
+ const prevInstance = setCurrentRenderingInstance(ctx);
+ let res;
+ try {
+ res = fn(...args);
+ } finally {
+ setCurrentRenderingInstance(prevInstance);
+ if (renderFnWithContext._d) {
+ setBlockTracking(1);
+ }
+ }
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") || false) {
+ devtoolsComponentUpdated(ctx);
+ }
+ return res;
+ }, "renderFnWithContext");
+ renderFnWithContext._n = true;
+ renderFnWithContext._c = true;
+ renderFnWithContext._d = true;
+ return renderFnWithContext;
+ }
+ __name(withCtx, "withCtx");
+ function validateDirectiveName(name) {
+ if (isBuiltInDirective(name)) {
+ warn$1("Do not use built-in directive ids as custom directive id: " + name);
+ }
+ }
+ __name(validateDirectiveName, "validateDirectiveName");
+ function withDirectives(vnode, directives) {
+ if (currentRenderingInstance === null) {
+ !!(define_process_env_default$3.NODE_ENV !== "production") && warn$1(`withDirectives can only be used inside render functions.`);
+ return vnode;
+ }
+ const instance = getComponentPublicInstance(currentRenderingInstance);
+ const bindings = vnode.dirs || (vnode.dirs = []);
+ for (let i = 0; i < directives.length; i++) {
+ let [dir, value, arg, modifiers = EMPTY_OBJ] = directives[i];
+ if (dir) {
+ if (isFunction(dir)) {
+ dir = {
+ mounted: dir,
+ updated: dir
+ };
+ }
+ if (dir.deep) {
+ traverse(value);
+ }
+ bindings.push({
+ dir,
+ instance,
+ value,
+ oldValue: void 0,
+ arg,
+ modifiers
+ });
+ }
+ }
+ return vnode;
+ }
+ __name(withDirectives, "withDirectives");
+ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
+ const bindings = vnode.dirs;
+ const oldBindings = prevVNode && prevVNode.dirs;
+ for (let i = 0; i < bindings.length; i++) {
+ const binding = bindings[i];
+ if (oldBindings) {
+ binding.oldValue = oldBindings[i].value;
+ }
+ let hook = binding.dir[name];
+ if (hook) {
+ pauseTracking();
+ callWithAsyncErrorHandling(hook, instance, 8, [
+ vnode.el,
+ binding,
+ vnode,
+ prevVNode
+ ]);
+ resetTracking();
+ }
+ }
+ }
+ __name(invokeDirectiveHook, "invokeDirectiveHook");
+ const leaveCbKey = Symbol("_leaveCb");
+ const enterCbKey = Symbol("_enterCb");
+ function useTransitionState() {
+ const state = {
+ isMounted: false,
+ isLeaving: false,
+ isUnmounting: false,
+ leavingVNodes: /* @__PURE__ */ new Map()
+ };
+ onMounted(() => {
+ state.isMounted = true;
+ });
+ onBeforeUnmount(() => {
+ state.isUnmounting = true;
+ });
+ return state;
+ }
+ __name(useTransitionState, "useTransitionState");
+ const TransitionHookValidator = [Function, Array];
+ const BaseTransitionPropsValidators = {
+ mode: String,
+ appear: Boolean,
+ persisted: Boolean,
+ // enter
+ onBeforeEnter: TransitionHookValidator,
+ onEnter: TransitionHookValidator,
+ onAfterEnter: TransitionHookValidator,
+ onEnterCancelled: TransitionHookValidator,
+ // leave
+ onBeforeLeave: TransitionHookValidator,
+ onLeave: TransitionHookValidator,
+ onAfterLeave: TransitionHookValidator,
+ onLeaveCancelled: TransitionHookValidator,
+ // appear
+ onBeforeAppear: TransitionHookValidator,
+ onAppear: TransitionHookValidator,
+ onAfterAppear: TransitionHookValidator,
+ onAppearCancelled: TransitionHookValidator
+ };
+ const recursiveGetSubtree = /* @__PURE__ */ __name((instance) => {
+ const subTree = instance.subTree;
+ return subTree.component ? recursiveGetSubtree(subTree.component) : subTree;
+ }, "recursiveGetSubtree");
+ const BaseTransitionImpl = {
+ name: `BaseTransition`,
+ props: BaseTransitionPropsValidators,
+ setup(props, { slots }) {
+ const instance = getCurrentInstance();
+ const state = useTransitionState();
+ return () => {
+ const children = slots.default && getTransitionRawChildren(slots.default(), true);
+ if (!children || !children.length) {
+ return;
+ }
+ let child = children[0];
+ if (children.length > 1) {
+ let hasFound = false;
+ for (const c of children) {
+ if (c.type !== Comment) {
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && hasFound) {
+ warn$1(
+ " can only be used on a single element or component. Use for lists."
+ );
+ break;
+ }
+ child = c;
+ hasFound = true;
+ if (!!!(define_process_env_default$3.NODE_ENV !== "production")) break;
+ }
+ }
+ }
+ const rawProps = toRaw(props);
+ const { mode } = rawProps;
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
+ warn$1(`invalid mode: ${mode}`);
+ }
+ if (state.isLeaving) {
+ return emptyPlaceholder(child);
+ }
+ const innerChild = getKeepAliveChild(child);
+ if (!innerChild) {
+ return emptyPlaceholder(child);
+ }
+ let enterHooks = resolveTransitionHooks(
+ innerChild,
+ rawProps,
+ state,
+ instance,
+ // #11061, ensure enterHooks is fresh after clone
+ (hooks) => enterHooks = hooks
+ );
+ setTransitionHooks(innerChild, enterHooks);
+ const oldChild = instance.subTree;
+ const oldInnerChild = oldChild && getKeepAliveChild(oldChild);
+ if (oldInnerChild && oldInnerChild.type !== Comment && !isSameVNodeType(innerChild, oldInnerChild) && recursiveGetSubtree(instance).type !== Comment) {
+ const leavingHooks = resolveTransitionHooks(
+ oldInnerChild,
+ rawProps,
+ state,
+ instance
+ );
+ setTransitionHooks(oldInnerChild, leavingHooks);
+ if (mode === "out-in" && innerChild.type !== Comment) {
+ state.isLeaving = true;
+ leavingHooks.afterLeave = () => {
+ state.isLeaving = false;
+ if (instance.update.active !== false) {
+ instance.effect.dirty = true;
+ instance.update();
+ }
+ };
+ return emptyPlaceholder(child);
+ } else if (mode === "in-out" && innerChild.type !== Comment) {
+ leavingHooks.delayLeave = (el, earlyRemove, delayedLeave) => {
+ const leavingVNodesCache = getLeavingNodesForType(
+ state,
+ oldInnerChild
+ );
+ leavingVNodesCache[String(oldInnerChild.key)] = oldInnerChild;
+ el[leaveCbKey] = () => {
+ earlyRemove();
+ el[leaveCbKey] = void 0;
+ delete enterHooks.delayedLeave;
+ };
+ enterHooks.delayedLeave = delayedLeave;
+ };
+ }
+ }
+ return child;
+ };
+ }
+ };
+ const BaseTransition = BaseTransitionImpl;
+ function getLeavingNodesForType(state, vnode) {
+ const { leavingVNodes } = state;
+ let leavingVNodesCache = leavingVNodes.get(vnode.type);
+ if (!leavingVNodesCache) {
+ leavingVNodesCache = /* @__PURE__ */ Object.create(null);
+ leavingVNodes.set(vnode.type, leavingVNodesCache);
+ }
+ return leavingVNodesCache;
+ }
+ __name(getLeavingNodesForType, "getLeavingNodesForType");
+ function resolveTransitionHooks(vnode, props, state, instance, postClone) {
+ const {
+ appear,
+ mode,
+ persisted = false,
+ onBeforeEnter,
+ onEnter,
+ onAfterEnter,
+ onEnterCancelled,
+ onBeforeLeave,
+ onLeave,
+ onAfterLeave,
+ onLeaveCancelled,
+ onBeforeAppear,
+ onAppear,
+ onAfterAppear,
+ onAppearCancelled
+ } = props;
+ const key = String(vnode.key);
+ const leavingVNodesCache = getLeavingNodesForType(state, vnode);
+ const callHook2 = /* @__PURE__ */ __name((hook, args) => {
+ hook && callWithAsyncErrorHandling(
+ hook,
+ instance,
+ 9,
+ args
+ );
+ }, "callHook2");
+ const callAsyncHook = /* @__PURE__ */ __name((hook, args) => {
+ const done = args[1];
+ callHook2(hook, args);
+ if (isArray(hook)) {
+ if (hook.every((hook2) => hook2.length <= 1)) done();
+ } else if (hook.length <= 1) {
+ done();
+ }
+ }, "callAsyncHook");
+ const hooks = {
+ mode,
+ persisted,
+ beforeEnter(el) {
+ let hook = onBeforeEnter;
+ if (!state.isMounted) {
+ if (appear) {
+ hook = onBeforeAppear || onBeforeEnter;
+ } else {
+ return;
+ }
+ }
+ if (el[leaveCbKey]) {
+ el[leaveCbKey](
+ true
+ /* cancelled */
+ );
+ }
+ const leavingVNode = leavingVNodesCache[key];
+ if (leavingVNode && isSameVNodeType(vnode, leavingVNode) && leavingVNode.el[leaveCbKey]) {
+ leavingVNode.el[leaveCbKey]();
+ }
+ callHook2(hook, [el]);
+ },
+ enter(el) {
+ let hook = onEnter;
+ let afterHook = onAfterEnter;
+ let cancelHook = onEnterCancelled;
+ if (!state.isMounted) {
+ if (appear) {
+ hook = onAppear || onEnter;
+ afterHook = onAfterAppear || onAfterEnter;
+ cancelHook = onAppearCancelled || onEnterCancelled;
+ } else {
+ return;
+ }
+ }
+ let called = false;
+ const done = el[enterCbKey] = (cancelled) => {
+ if (called) return;
+ called = true;
+ if (cancelled) {
+ callHook2(cancelHook, [el]);
+ } else {
+ callHook2(afterHook, [el]);
+ }
+ if (hooks.delayedLeave) {
+ hooks.delayedLeave();
+ }
+ el[enterCbKey] = void 0;
+ };
+ if (hook) {
+ callAsyncHook(hook, [el, done]);
+ } else {
+ done();
+ }
+ },
+ leave(el, remove2) {
+ const key2 = String(vnode.key);
+ if (el[enterCbKey]) {
+ el[enterCbKey](
+ true
+ /* cancelled */
+ );
+ }
+ if (state.isUnmounting) {
+ return remove2();
+ }
+ callHook2(onBeforeLeave, [el]);
+ let called = false;
+ const done = el[leaveCbKey] = (cancelled) => {
+ if (called) return;
+ called = true;
+ remove2();
+ if (cancelled) {
+ callHook2(onLeaveCancelled, [el]);
+ } else {
+ callHook2(onAfterLeave, [el]);
+ }
+ el[leaveCbKey] = void 0;
+ if (leavingVNodesCache[key2] === vnode) {
+ delete leavingVNodesCache[key2];
+ }
+ };
+ leavingVNodesCache[key2] = vnode;
+ if (onLeave) {
+ callAsyncHook(onLeave, [el, done]);
+ } else {
+ done();
+ }
+ },
+ clone(vnode2) {
+ const hooks2 = resolveTransitionHooks(
+ vnode2,
+ props,
+ state,
+ instance,
+ postClone
+ );
+ if (postClone) postClone(hooks2);
+ return hooks2;
+ }
+ };
+ return hooks;
+ }
+ __name(resolveTransitionHooks, "resolveTransitionHooks");
+ function emptyPlaceholder(vnode) {
+ if (isKeepAlive(vnode)) {
+ vnode = cloneVNode(vnode);
+ vnode.children = null;
+ return vnode;
+ }
+ }
+ __name(emptyPlaceholder, "emptyPlaceholder");
+ function getKeepAliveChild(vnode) {
+ if (!isKeepAlive(vnode)) {
+ return vnode;
+ }
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && vnode.component) {
+ return vnode.component.subTree;
+ }
+ const { shapeFlag, children } = vnode;
+ if (children) {
+ if (shapeFlag & 16) {
+ return children[0];
+ }
+ if (shapeFlag & 32 && isFunction(children.default)) {
+ return children.default();
+ }
+ }
+ }
+ __name(getKeepAliveChild, "getKeepAliveChild");
+ function setTransitionHooks(vnode, hooks) {
+ if (vnode.shapeFlag & 6 && vnode.component) {
+ setTransitionHooks(vnode.component.subTree, hooks);
+ } else if (vnode.shapeFlag & 128) {
+ vnode.ssContent.transition = hooks.clone(vnode.ssContent);
+ vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
+ } else {
+ vnode.transition = hooks;
+ }
+ }
+ __name(setTransitionHooks, "setTransitionHooks");
+ function getTransitionRawChildren(children, keepComment = false, parentKey) {
+ let ret = [];
+ let keyedFragmentCount = 0;
+ for (let i = 0; i < children.length; i++) {
+ let child = children[i];
+ const key = parentKey == null ? child.key : String(parentKey) + String(child.key != null ? child.key : i);
+ if (child.type === Fragment) {
+ if (child.patchFlag & 128) keyedFragmentCount++;
+ ret = ret.concat(
+ getTransitionRawChildren(child.children, keepComment, key)
+ );
+ } else if (keepComment || child.type !== Comment) {
+ ret.push(key != null ? cloneVNode(child, { key }) : child);
+ }
+ }
+ if (keyedFragmentCount > 1) {
+ for (let i = 0; i < ret.length; i++) {
+ ret[i].patchFlag = -2;
+ }
+ }
+ return ret;
+ }
+ __name(getTransitionRawChildren, "getTransitionRawChildren");
+ const isAsyncWrapper = /* @__PURE__ */ __name((i) => !!i.type.__asyncLoader, "isAsyncWrapper");
+ const isKeepAlive = /* @__PURE__ */ __name((vnode) => vnode.type.__isKeepAlive, "isKeepAlive");
+ function onActivated(hook, target) {
+ registerKeepAliveHook(hook, "a", target);
+ }
+ __name(onActivated, "onActivated");
+ function onDeactivated(hook, target) {
+ registerKeepAliveHook(hook, "da", target);
+ }
+ __name(onDeactivated, "onDeactivated");
+ function registerKeepAliveHook(hook, type, target = currentInstance) {
+ const wrappedHook = hook.__wdc || (hook.__wdc = () => {
+ let current = target;
+ while (current) {
+ if (current.isDeactivated) {
+ return;
+ }
+ current = current.parent;
+ }
+ return hook();
+ });
+ injectHook(type, wrappedHook, target);
+ if (target) {
+ let current = target.parent;
+ while (current && current.parent) {
+ if (isKeepAlive(current.parent.vnode)) {
+ injectToKeepAliveRoot(wrappedHook, type, target, current);
+ }
+ current = current.parent;
+ }
+ }
+ }
+ __name(registerKeepAliveHook, "registerKeepAliveHook");
+ function injectToKeepAliveRoot(hook, type, target, keepAliveRoot) {
+ const injected = injectHook(
+ type,
+ hook,
+ keepAliveRoot,
+ true
+ /* prepend */
+ );
+ onUnmounted(() => {
+ remove(keepAliveRoot[type], injected);
+ }, target);
+ }
+ __name(injectToKeepAliveRoot, "injectToKeepAliveRoot");
+ function injectHook(type, hook, target = currentInstance, prepend = false) {
+ if (target) {
+ const hooks = target[type] || (target[type] = []);
+ const wrappedHook = hook.__weh || (hook.__weh = (...args) => {
+ pauseTracking();
+ const reset = setCurrentInstance(target);
+ const res = callWithAsyncErrorHandling(hook, target, type, args);
+ reset();
+ resetTracking();
+ return res;
+ });
+ if (prepend) {
+ hooks.unshift(wrappedHook);
+ } else {
+ hooks.push(wrappedHook);
+ }
+ return wrappedHook;
+ } else if (!!(define_process_env_default$3.NODE_ENV !== "production")) {
+ const apiName = toHandlerKey(ErrorTypeStrings$1[type].replace(/ hook$/, ""));
+ warn$1(
+ `${apiName} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`
+ );
+ }
+ }
+ __name(injectHook, "injectHook");
+ const createHook = /* @__PURE__ */ __name((lifecycle) => (hook, target = currentInstance) => {
+ if (!isInSSRComponentSetup || lifecycle === "sp") {
+ injectHook(lifecycle, (...args) => hook(...args), target);
+ }
+ }, "createHook");
+ const onBeforeMount = createHook("bm");
+ const onMounted = createHook("m");
+ const onBeforeUpdate = createHook("bu");
+ const onUpdated = createHook("u");
+ const onBeforeUnmount = createHook("bum");
+ const onUnmounted = createHook("um");
+ const onServerPrefetch = createHook("sp");
+ const onRenderTriggered = createHook(
+ "rtg"
+ );
+ const onRenderTracked = createHook(
+ "rtc"
+ );
+ function onErrorCaptured(hook, target = currentInstance) {
+ injectHook("ec", hook, target);
+ }
+ __name(onErrorCaptured, "onErrorCaptured");
+ const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
+ const getPublicInstance = /* @__PURE__ */ __name((i) => {
+ if (!i) return null;
+ if (isStatefulComponent(i)) return getComponentPublicInstance(i);
+ return getPublicInstance(i.parent);
+ }, "getPublicInstance");
+ const publicPropertiesMap = (
+ // Move PURE marker to new line to workaround compiler discarding it
+ // due to type annotation
+ /* @__PURE__ */ extend(/* @__PURE__ */ Object.create(null), {
+ $: /* @__PURE__ */ __name((i) => i, "$"),
+ $el: /* @__PURE__ */ __name((i) => i.vnode.el, "$el"),
+ $data: /* @__PURE__ */ __name((i) => i.data, "$data"),
+ $props: /* @__PURE__ */ __name((i) => !!(define_process_env_default$3.NODE_ENV !== "production") ? shallowReadonly(i.props) : i.props, "$props"),
+ $attrs: /* @__PURE__ */ __name((i) => !!(define_process_env_default$3.NODE_ENV !== "production") ? shallowReadonly(i.attrs) : i.attrs, "$attrs"),
+ $slots: /* @__PURE__ */ __name((i) => !!(define_process_env_default$3.NODE_ENV !== "production") ? shallowReadonly(i.slots) : i.slots, "$slots"),
+ $refs: /* @__PURE__ */ __name((i) => !!(define_process_env_default$3.NODE_ENV !== "production") ? shallowReadonly(i.refs) : i.refs, "$refs"),
+ $parent: /* @__PURE__ */ __name((i) => getPublicInstance(i.parent), "$parent"),
+ $root: /* @__PURE__ */ __name((i) => getPublicInstance(i.root), "$root"),
+ $emit: /* @__PURE__ */ __name((i) => i.emit, "$emit"),
+ $options: /* @__PURE__ */ __name((i) => resolveMergedOptions(i), "$options"),
+ $forceUpdate: /* @__PURE__ */ __name((i) => i.f || (i.f = () => {
+ i.effect.dirty = true;
+ queueJob(i.update);
+ }), "$forceUpdate"),
+ $nextTick: /* @__PURE__ */ __name((i) => i.n || (i.n = nextTick.bind(i.proxy)), "$nextTick"),
+ $watch: /* @__PURE__ */ __name((i) => instanceWatch.bind(i), "$watch")
+ })
+ );
+ const isReservedPrefix = /* @__PURE__ */ __name((key) => key === "_" || key === "$", "isReservedPrefix");
+ const hasSetupBinding = /* @__PURE__ */ __name((state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key), "hasSetupBinding");
+ const PublicInstanceProxyHandlers = {
+ get({ _: instance }, key) {
+ if (key === "__v_skip") {
+ return true;
+ }
+ const { ctx, setupState, data, props, accessCache, type, appContext } = instance;
+ if (!!(define_process_env_default$3.NODE_ENV !== "production") && key === "__isVue") {
+ return true;
+ }
+ let normalizedProps;
+ if (key[0] !== "$") {
+ const n = accessCache[key];
+ if (n !== void 0) {
+ switch (n) {
+ case 1:
+ return setupState[key];
+ case 2:
+ return data[key];
+ case 4:
+ return ctx[key];
+ case 3:
+ return props[key];
+ }
+ } else if (hasSetupBinding(setupState, key)) {
+ accessCache[key] = 1;
+ return setupState[key];
+ } else if (data !== EMPTY_OBJ && hasOwn(data, key)) {
+ accessCache[key] = 2;
+ return data[key];
+ } else if (
+ // only cache other properties when instance has declared (thus stable)
+ // props
+ (normalizedProps = instance.propsOptions[0]) && hasOwn(normalizedProps, key)
+ ) {
+ accessCache[key] = 3;
+ return props[key];
+ } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
+ accessCache[key] = 4;
+ return ctx[key];
+ } else if (shouldCacheAccess) {
+ accessCache[key] = 0;
+ }
+ }
+ const publicGetter = publicPropertiesMap[key];
+ let cssModule, globalProperties;
+ if (publicGetter) {
+ if (key === "$attrs") {
+ track(instance.attrs, "get", "");
+ !!(define_process_env_default$3.NODE_ENV !== "production") && markAttrsAccessed();
+ } else if (!!(define_process_env_default$3.NODE_ENV !== "production") && key === "$slots") {
+ track(instance, "get", key);
+ }
+ return publicGetter(instance);
+ } else if (
+ // css module (injected by vue-loader)
+ (cssModule = type.__cssModules) && (cssModule = cssModule[key])
+ ) {
+ return cssModule;
+ } else if (ctx !== EMPTY_OBJ && hasOwn(ctx, key)) {
+ accessCache[key] = 4;
+ return ctx[key];
+ } else if (
+ // global properties
+ globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)
+ ) {
+ {
+ return globalProperties[key];
+ }
+ } else if (!!(define_process_env_default$3.NODE_ENV !== "production") && currentRenderingInstance && (!isString(key) || // #1091 avoid internal isRef/isVNode checks on component instance leading
+ // to infinite warning loop
+ key.indexOf("__v") !== 0)) {
+ if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) {
+ warn$1(
+ `Property ${JSON.stringify(
+ key
+ )} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`
+ );
+ } else if (instance === currentRenderingInstance) {
+ warn$1(
+ `Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`
+ );
+ }
+ }
+ },
+ set({ _: instance }, key, value) {
+ const { data, setupState, ctx } = instance;
+ if (hasSetupBinding(setupState, key)) {
+ setupState[key] = value;
+ return true;
+ } else if (!!(define_process_env_default$3.NODE_ENV !== "production") && setupState.__isScriptSetup && hasOwn(setupState, key)) {
+ warn$1(`Cannot mutate
{% for js in js_build %}
@@ -18,11 +19,11 @@
{% endfor %}
{% endif %}
{% if vitedev %}
-
+
{% endif %}
{% if vitedev %}
-
+
{% endif %}