diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..7c5f887f --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,2 @@ +github: [adiptal] +custom: ["https://www.buymeacoffee.com/adiptal", "https://www.paypal.com/paypalme/adi987123"] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 00000000..dd84ea78 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,38 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: '' +assignees: '' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 00000000..bbcbbe7d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: '' +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e652b1ad --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +### 1.0.0 + - Initial Release \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..7408b6a1 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,128 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, religion, or sexual identity +and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the + overall community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or + advances of any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email + address, without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +contact@adiptal.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series +of actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or +permanent ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within +the community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.0, available at +https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. + +Community Impact Guidelines were inspired by [Mozilla's code of conduct +enforcement ladder](https://github.com/mozilla/diversity). + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see the FAQ at +https://www.contributor-covenant.org/faq. Translations are available at +https://www.contributor-covenant.org/translations. diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..10de79c6 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 https://adiptal.com/ + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..cb401d21 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Adiptal Studio + +Adiptal Studio is an iframe based self-host headless page builder to integrate in any cms/framework. It's feature-rich design and gives clean output to design responsive pages. + +[Customize & Install](https://adiptal.com/v/post/install/) | [NPM](https://www.npmjs.com/package/@adiptal/studio) + +[Documentation](https://adiptal.com/v/post/documentation/) + +[Demo](https://adiptal.github.io/studio/) + +[Compare Features](https://docs.google.com/spreadsheets/d/1hjcRPUO4mSdTJQPD2mDUqzOO2QR-cro6Cgw9NT563lg/edit?usp=sharing) + +[Support Project](https://adiptal.com/v/post/support/) + +[How To Use - Video](https://www.youtube.com/watch?v=CCRue075vQQ) + +## Examples + +| Light Mode | Dark Mode | +| ------------- | ------------- | +| ![light](https://user-images.githubusercontent.com/39864712/232036632-be8cae10-5695-4f8a-8156-6402552b111b.png) | ![dark](https://user-images.githubusercontent.com/39864712/232036635-e33ab8d9-a882-4784-8738-f974b7afd231.png) | + +## Browsers Supported + +| Browsers | Chrome | Edge | Safari | Firefox | +| :---------: | :---------: | :---------: | :---------: | :---------: | +| Versions | 110+ | 110+ | 16.4+ | 110+ | diff --git a/docs/assets/css/style.css b/docs/assets/css/style.css new file mode 100644 index 00000000..e729a67d --- /dev/null +++ b/docs/assets/css/style.css @@ -0,0 +1,123 @@ +@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'); +:root{ + --font-name: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + --font-size: 16px; +} + +*{ + padding: 0; + margin: 0; + border-radius: .15rem; + box-sizing: border-box; + + color: var( --primary ); + font-family: var( --font-name ); + font-size: var( --font-size ); + font-weight: var( --weight-normal ); + text-align: left; + letter-spacing: .025rem; + + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: auto; +} + +*::before, +*::after { + box-sizing: border-box; +} + +html, +body{ + position: relative; + overflow: auto; + width: 100%; + height: 100%; +} + +a, +button, +input, +textarea, +iframe{ + border: none; + outline: none; + text-decoration: none; + background: transparent; + resize: none; +} + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button{ + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; +} + +a, +button{ + display: inline-block; + cursor: pointer; + transition: all .15s; +} + +a *, +button *, +i{ + pointer-events: none; +} + +.hr{ + position: relative; + padding: .025rem; + width: 100%; + height: 0; + background: rgba( var( --primary-rgba ), .15); +} + +[name*="studio-iframe"]{ + width: 100%; + height: 80vh; + display: none; +} + +.adiptal-ui>header{ + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.adiptal-ui>header{ + margin: 1.5rem; +} + +h1{ + flex: 1 1 100%; + padding: unset !important; +} + +.adiptal-ui header>button{ + border-radius: 1rem; + padding: .75rem; + background: var( --grey-2 ); + box-shadow: 0 .1rem .25rem .1rem rgba( var( --primary-rgba ), .2); + overflow: hidden; + z-index: 21; +} + +.adiptal-ui header>.edit-page{ + display: none; +} + + +[name*="studio-iframe"].fullscreen{ + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: 9999; +} diff --git a/docs/assets/js/script.js b/docs/assets/js/script.js new file mode 100644 index 00000000..4dc0e221 --- /dev/null +++ b/docs/assets/js/script.js @@ -0,0 +1,170 @@ +adiptal.studio.settings[ "studio-iframe" ] = { + relative_url : "https://raw.githubusercontent.com/adiptal/studio/main/docs/", + "font_family": { + "list" : { + "Roboto": "'Roboto', sans-serif", + 'Arial' : 'Arial, Helvetica, sans-serif', + 'Tahoma' : 'Tahoma, Verdana, sans-serif', + 'Trebuchet MS' : "'Trebuchet MS', Helvetica, sans-serif", + 'Times New Roman' : "'Times New Roman', Times, serif", + 'Georgia' : 'Georgia, serif', + 'Garamond' : 'Garamond, serif', + 'Courier New' : "'Courier New', Courier, monospace", + 'Geneva' : 'Geneva, Verdana, sans-serif' + }, + "links" : [''] + }, + "metadata": { + "tags": 5, + "categories": { + "demo-1": "Demo 1", + "demo-2": "Demo 2", + "demo-3": "Demo 3", + "demo-4": "Demo 4", + "demo-5": "Demo 5" + } + }, + "addon_features": [ + "blockstyle", + "text", + "font", + "whitespace", + "date-time", + "emojis-special-chars", + "find-replace", + "toggle-view", + "html-output" + ] +}; +adiptal.studio.init( document.querySelector( '[name="studio-iframe"]' ) ); + +document.addEventListener( 'adiptal_studio_live' , function( event ){ + document.querySelector('.edit-page').click(); +}); + + +fetch('import.json') +.then((response) => response.json()) +.then((data) => { + document.querySelector( 'article.adiptal-ui' ).innerHTML += data.content; +}); + + +// TOGGLE THEME +window.addEventListener( 'DOMContentLoaded' , function(event){ + if( localStorage.getItem( 'adiptal_theme' ) == 'dark_mode' ) + { + document.querySelector( '.toggle-theme' ).click(); + } +}); +document.addEventListener( 'adiptal_studio_live' , function(event){ + if( localStorage.getItem( 'adiptal_theme' ) ) + { + adiptal.studio.toggleTheme( document.querySelector( 'iframe[name="studio-iframe"]' ) , localStorage.getItem( 'adiptal_theme' ).split('_')[0] ); + } + else + { + adiptal.studio.toggleTheme( document.querySelector( 'iframe[name="studio-iframe"]' ) , 'light' ); + } + +adiptal.studio.manageImages( + document.querySelector( '[name="studio-iframe"]' ) , + [ + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/241022081158094991.webp', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/241022081522941246.webp', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/241022081640978271.webp', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/banner.png', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/banner-2.png', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/banner-3.png', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/banner-4.png', + 'https://raw.githubusercontent.com/adiptal/studio/main/docs/img/banner-5.png' + ] +); + +var fileOptions = { + allow_comments : 1 + ,is_draft : 0 + ,is_featured : 1 + ,scheduled_at : { + value : new Date(), + min_date : new Date(), + max_date : new Date( new Date().getTime() + ( 5*24*60*60*1000 ) ) + } + ,approveFile : true + ,deleteFile : true +}; +adiptal.studio.addFileOptions( document.querySelector( '[name="studio-iframe"]' ) , fileOptions ); +}); + +document.addEventListener( 'click' , function(event){ + if( event.target.matches( '.toggle-theme' ) ) + { + document.querySelector( 'html' ).classList.toggle( 'dark_mode' ); + adiptal.studio.toggleTheme( document.querySelector( 'iframe[name="studio-iframe"]' ) ); + + if( document.querySelector( 'html.dark_mode' ) ) + { + localStorage.setItem( 'adiptal_theme' , 'dark_mode' ); + document.querySelector( '[href*="intellij-light.min.css"]' ) + .setAttribute( 'href' , 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/vs2015.min.css' ); + } + else + { + localStorage.removeItem( 'adiptal_theme' ); + document.querySelector( '[href*="vs2015.min.css"]' ) + .setAttribute( 'href' , 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/intellij-light.min.css' ); + } + } +}); + +document.addEventListener( 'click' , function(event){ + var target = event.target; + if( target.matches( '.edit-page' ) ) + { + if( document.querySelector( 'iframe[name="studio-iframe"]' ).style.display != 'block' ) + { + var content = document.querySelector('.adiptal-ui').cloneNode(true); + content.querySelector( 'header' ).remove(); + content = content.innerHTML; + + document.querySelector( 'iframe[name="studio-iframe"]' ).style.display = 'block'; + document.querySelectorAll('.adiptal-ui section').forEach(function(i){ + i.style.display = 'none'; + }); + + + var data = { content : content, + title : 'Introducing Adiptal Studio — A Next-Generation JavaScript Block Editor' + ,description : 'Adiptal Studio is packed with advanced features to meet the diverse needs of its users.' + ,category_index : 'demo-3' + ,tags : [ 'block-editor' , 'wysiwyg' , 'adiptal' , 'js' , 'plugin' ] }; + adiptal.studio.loadFile( document.querySelector( '[name="studio-iframe"]' ) , data ); + } + else + { + adiptal.studio.reset( document.querySelector( '[name="studio-iframe"]' ) ); + document.querySelector( 'iframe[name="studio-iframe"]' ).style.display = 'none'; + document.querySelectorAll('.adiptal-ui section').forEach(function(i){ + i.style.display = ''; + }); + } + } +}); + +document.addEventListener( 'adiptal_studio_saveFile' , function( event ){ + // iframe 'name' attribute + var iframeName = event.detail[0][0]; + var output = event.detail[0][1]; + + document.querySelectorAll('.adiptal-ui section').forEach(function(i){ + i.remove(); + }); + document.querySelector( '.adiptal-ui h1' ).innerHTML = output.title; + document.querySelector( 'article.adiptal-ui' ).innerHTML += output.content; + + adiptal.studio.reset( document.querySelector( '[name="studio-iframe"]' ) ); + document.querySelector( 'iframe[name="studio-iframe"]' ).style.display = 'none'; + document.querySelectorAll('.adiptal-ui section').forEach(function(i){ + i.style.display = ''; + }); +}); diff --git a/docs/img/021223100147107192.webp b/docs/img/021223100147107192.webp new file mode 100644 index 00000000..52f2c9e0 Binary files /dev/null and b/docs/img/021223100147107192.webp differ diff --git a/docs/img/021223100201315829.webp b/docs/img/021223100201315829.webp new file mode 100644 index 00000000..e7ab8dd3 Binary files /dev/null and b/docs/img/021223100201315829.webp differ diff --git a/docs/img/021223101954444402.webp b/docs/img/021223101954444402.webp new file mode 100644 index 00000000..a2ed7df0 Binary files /dev/null and b/docs/img/021223101954444402.webp differ diff --git a/docs/img/021223101954945173.webp b/docs/img/021223101954945173.webp new file mode 100644 index 00000000..9afa83b1 Binary files /dev/null and b/docs/img/021223101954945173.webp differ diff --git a/docs/img/021223101955469228.webp b/docs/img/021223101955469228.webp new file mode 100644 index 00000000..18a02449 Binary files /dev/null and b/docs/img/021223101955469228.webp differ diff --git a/docs/img/241022081158094991.webp b/docs/img/241022081158094991.webp new file mode 100644 index 00000000..82cce609 Binary files /dev/null and b/docs/img/241022081158094991.webp differ diff --git a/docs/img/241022081522941246.webp b/docs/img/241022081522941246.webp new file mode 100644 index 00000000..1e69fe07 Binary files /dev/null and b/docs/img/241022081522941246.webp differ diff --git a/docs/img/241022081640978271.webp b/docs/img/241022081640978271.webp new file mode 100644 index 00000000..d360a013 Binary files /dev/null and b/docs/img/241022081640978271.webp differ diff --git a/docs/img/banner-2.png b/docs/img/banner-2.png new file mode 100644 index 00000000..f6aa0d3d Binary files /dev/null and b/docs/img/banner-2.png differ diff --git a/docs/img/banner-3.png b/docs/img/banner-3.png new file mode 100644 index 00000000..546f6bb3 Binary files /dev/null and b/docs/img/banner-3.png differ diff --git a/docs/img/banner-4.png b/docs/img/banner-4.png new file mode 100644 index 00000000..e35a0953 Binary files /dev/null and b/docs/img/banner-4.png differ diff --git a/docs/img/banner-5.png b/docs/img/banner-5.png new file mode 100644 index 00000000..45e0a2f1 Binary files /dev/null and b/docs/img/banner-5.png differ diff --git a/docs/img/banner.png b/docs/img/banner.png new file mode 100644 index 00000000..b83d7a52 Binary files /dev/null and b/docs/img/banner.png differ diff --git a/docs/import.json b/docs/import.json new file mode 100644 index 00000000..67e48d5f --- /dev/null +++ b/docs/import.json @@ -0,0 +1 @@ +{"title":"Introducing Adiptal Studio","title_url":"introducing-adiptal-studio","description":"Adiptal Studio is packed with advanced features to meet the diverse needs of its users.","category_index":"demo-3","tags":["page-builder","wysiwyg","adiptal","js","plugin"],"cover_image_url":"","fileOptions":{"allow_comments":1,"is_draft":0,"is_featured":1,"scheduled_at":"2023-12-07T11:26:00.000Z"},"content":"

WELCOME

\"Image
\"Image

Introduction

Adiptal Studio is an iframe based self-host headless page builder to integrate in any cms/framework. It's feature-rich design and gives clean output to design responsive pages.

Live Demo

1000+ Installs

Best User Experience is the top priority – if you have any feedback, suggestions, or encounter any issues, please email us at contact@adiptal.com.
— Team Adiptal

WORK PROFILES

FEATURES

License: MIT

Manage Metadata

  • Title
  • Description
  • Category
  • Tags
  • Cover Image

Post Features

  • Toggle Comments
  • Toggle Draft
  • Toggle Feature Post
  • Schedule Post
  • Approve Post
  • Delete Post

Nestable Blocks

  • Column
  • Carousel
  • Accordion
  • Tab (Horizontal/Vertical)
  • Container

Nestable Blocks

  • Column
  • Carousel
  • Accordion
  • Tab (Horizontal/Vertical)
  • Container

License: PRO

Post Features

  • Import/Export Templates (.json)
  • Autosave
  • Preview
  • Html Output
  • Paste Pro (Paste from Other Websites, Google Docs and Google Sheets)
  • Print Template

Text Formatting

  • Font Styling
  • Add Whitespace
  • Add Current Date & Time
  • Emojis
  • Special Characters

More Features

  • Section's Background Color
  • New File
  • Rework File (Restore To Post Loaded State)
  • Find & Replace
  • Replace Format
  • Toggle View
  • Image Modal Lightbox
  • Search - Metadata Category
  • Custom Classes & Screen Resolutions (media-query)
  • Css Styling on Elments

Block Features

  • Clone Blocks
  • Move Blocks

Table

  • Table Merge & Split
  • Table Import from .CSV

PRICING PLANS

Limited Offer: Enjoy Free 3-Month Pro Trial 💗

Get three months of free pro access when you sign up now – this offer is limited to the first 1,000 sign ups. Just check your email for your api_key and start enjoying all pro features of the editor.

License: MIT

Documentation

License: PRO

Starting From
$10/month
Monthly Plan

Starting From
$8/month
Quarterly Plan

Starting From
$2/month
Yearly Plan🎉

Contact Us | Upgrade Pro

HOW TO USE GUIDE

"} diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..6e0b4ec9 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,29 @@ + + + + + + + Introducing Adiptal Studio — A Next-Generation JavaScript Block Editor + + + + + + + +
+
+

Demo page — Select and edit the content

+ + +
+
+ + + + + + + + diff --git a/docs/plugin/assets/css/main.min.css b/docs/plugin/assets/css/main.min.css new file mode 100644 index 00000000..70e8e4eb --- /dev/null +++ b/docs/plugin/assets/css/main.min.css @@ -0,0 +1,1810 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +/* ------------------------- DEFAULT ------------------------- */ +:root{ + --font-name: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + --font-size: 14px; +} + +*{ + padding: 0; + margin: 0; + border-radius: .15rem; + box-sizing: border-box; + + color: var( --primary ); + font-family: var( --font-name ); + font-size: var( --font-size ); + font-weight: var( --weight-normal ); + text-align: left; + letter-spacing: .025rem; + + user-select: none; + cursor: auto; +} + +*::selection{ + background: var( --blue ); + color: var( --secondary ); +} + +*::before, +*::after{ + border-radius: .15rem; + box-sizing: border-box; +} + +.hf, +.hg{ + width: 100vw; + height: 100vh; +} + +a, +button, +input, +textarea, +iframe{ + border: none; + outline: none; + text-decoration: none; + background: none; + resize: none; +} + +input[type="file"]{ + display: none; +} + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button{ + appearance: none; +} + +input[type="range"]{ + appearance: none; + width: 100%; + height: .5rem; + border-radius: 1rem; + background: rgba( var( --primary-rgba ), .1); +} + +input[type="range"]::-webkit-slider-thumb{ + appearance: none; + width: 1.15rem; + height: 1.15rem; + border-radius: 2rem; + background: var( --secondary ); + border: solid .15rem rgba( var( --primary-rgba ), .2); + cursor: pointer; +} + +input[type="color"]{ + display: block; + position: relative; + flex: auto; + height: 1rem; + max-width: 1rem; + aspect-ratio: 1/1; + border-radius: 2rem; + appearance: none; + cursor: pointer; + overflow: hidden; + box-shadow: 0 0 0 .15rem rgba( var( --primary-rgba ), .2); +} + +input[type="color"]:not(:disabled):not(:focus)::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #c73e1d; + background-image: linear-gradient(315deg, #c73e1d 0%, #a23b72 37%, #2e86ab 100%); +} + +input[type="color"]::-webkit-color-swatch, +input[type="color"]::-webkit-color-swatch-wrapper{ + padding: 0; + border: none; + border-radius: 1rem; +} + +label:has(>input[type="color"]){ + cursor: pointer; +} + +.disabled input[type="range"]::-webkit-slider-thumb{ + display: none; +} + +.disabled input[type="color"]:not(:disabled):not(:focus)::before{ + filter: grayscale(100%); +} + +a, +button{ + display: inline-block; + cursor: pointer; +} + +a *, +button *, +i{ + pointer-events: none; +} + + +a .il{ + pointer-events: all; +} + +.hr{ + position: relative; + padding: .025rem; + width: 100%; + height: 0; + background: rgba( var( --primary-rgba ), .15); +} + +input, +textarea, +.il{ + user-select: text; +} + +strong{ + font-weight: var( --weight-strong-1 ); +} + + +.hg .kw [data-cq="es"], +.hg .hm .kz [data-cq="es"] label{ + position: relative; + height: 100%; + aspect-ratio: 1/1; + box-shadow: inset 0 0 0 .1rem var( --red ); +} + +.hg .hm .kz [data-cq="es"] label{ + border-radius: 1rem; +} + +.hg .kw [data-cq="es"]::after, +.hg .hm .kz [data-cq="es"] label::after{ + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; + width: 100%; + height: 0; + padding-bottom: .1rem; + transform: rotate( 45deg ); + background: var( --red ); +} + +.hg [data-cq="es"].disabled label{ + box-shadow: inset 0 0 0 .1rem rgba( var( --primary-rgba ), .4) !important; +} + +.hg [data-cq="es"].disabled label::after{ + background: rgba( var( --primary-rgba ), .4) !important; +} +/* ------------------------- END DEFAULT ------------------------- */ + + + +/* ------------------------- EDITING DISABLED ------------------------- */ +html.disabled::after{ + content: ''; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba( var( --primary-rgba ), .1); + z-index: 9999; +} +/* ------------------------- END EDITING DISABLED ------------------------- */ + + + +/* ------------------------- BUTTON ------------------------- */ +button{ + position: relative; + display: inline-block; + padding: .25rem .5rem; +} + +button::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + margin: auto; + transition: all .15s; + border-radius: inherit; +} + +button:not(.disabled):hover::before{ + background: rgba( var( --primary-rgba ), .05); +} + +button:not(.disabled):active::before, +button:not(.disabled).active::before, +button:not(.disabled).kf::before{ + background: rgba( var( --primary-rgba ), .1); +} + +.accordion>.js>button.active::before, +.tab .tab-heading li.active button::before{ + background: none; +} + +.accordion>.js>button.active, +.tab li.active{ + border-radius: 0; +} + +button span[data-cs]{ + position: relative; + display: inline-block; + margin-left: 1.5rem; + padding: .4rem .8rem; + background: rgba( var( --primary-rgba ), .1); + border-radius: .35rem; +} + +button span[data-cs]::before{ + content: ''; + position: absolute; + top: -.1rem; + left: -.1rem; + width: 1rem; + height: 1rem; + border-radius: 5rem; + background: var( --grey-3 ); +} + +button span[data-cs="1"]::before{ + left: unset; + right: -.1rem; + background: var( --primary ); +} + +.disabled, +.disabled :not(i){ + cursor: not-allowed !important; + color: rgba( var( --primary-rgba ), .6) !important; +} + +.disabled i{ + color: rgba( var( --primary-rgba ), .4) !important; +} +/* ------------------------- END BUTTON ------------------------- */ + + + +/* ------------------------- ADIPTAL UI ------------------------- */ +.hg .adiptal-ui{ + position: relative; + min-height: 100%; +} + +.hg .adiptal-ui>section{ + box-shadow: none !important; +} + +.hg .adiptal-ui>section:only-child{ + flex: 1 0 100%; +} +/* ------------------------- END ADIPTAL UI ------------------------- */ + + + +/* ------------------------- FORM INPUT ------------------------- */ +.hd{ + position: relative; + margin: 1rem auto; + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .2); +} + +.hd:first-of-type{ + margin-top: 0; +} + +.hd:last-of-type{ + margin-bottom: 0; +} + +.hd:focus-within{ + box-shadow: inset 0 0 0 .075rem var( --blue ); +} + +.hd input:not([type="range"]):not([type="color"]), +.hd textarea{ + display: block; + width: 100%; + box-shadow: none; + padding: 1.5rem .5rem .5rem; +} + +.hd textarea{ + min-height: 6rem; +} + +.hd input ~ label, +.hd textarea ~ label{ + position: absolute; + top: .25rem; + left: .5rem; + width: calc( 100% - 1rem ); + font-size: .85rem; + color: rgba( var( --primary-rgba ), .6); + pointer-events: none; +} + +.hd input:focus ~ label, +.hd textarea:focus ~ label{ + color: var( --blue ); +} +/* ------------------------- END FORM INPUT ------------------------- */ + + + +/* ------------------------- TOOLTIP ------------------------- */ +.ln{ + position: fixed; + display: inline-block; + padding: .25rem .5rem; + font-size: .85rem; + color: var( --secondary ); + background: rgba( var( --primary-rgba ), .9); + pointer-events: none; + z-index: 9999; +} + +.st-dark-mode .ln{ + background: var( --primary ); +} +/* ------------------------- END TOOLTIP ------------------------- */ + + + +/* ------------------------- CREATE RECTANGLE ------------------------- */ +.kc{ + position: absolute; + display: none; + pointer-events: none; + background: rgba( var( --primary-rgba ), .1); + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} +/* ------------------------- END CREATE RECTANGLE ------------------------- */ + + + +/* ------------------------- EDITOR ------------------------- */ +.hg{ + display: flex; + background: var( --secondary ); +} + +.hg i{ + font-size: .85rem; +} + +.hg .hl, +.hg .kw, +.hg .hq, +.hg .hy, +.hg .ia, +.hg .adiptal-ui{ + border-radius: 0; +} + + + +/* EDITOR CONTAINERS */ +.hg .hn{ + display: flex; + flex-direction: column; + flex: 1; + max-width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hn .kw > div{ + display: flex; + gap: .5rem; +} + + + +/* SIDEBAR */ +.hg .hl{ + display: none; + flex: 15rem; + width: 100%; + height: 100%; + max-width: 15rem; + background: var( --secondary ); + border-right: solid .2rem rgba( var( --primary-rgba ), .15); + z-index: 4; +} + +.hg .hl.hk{ + flex: 20rem; + max-width: 20rem; + border-right: none; + border-left: solid .2rem rgba( var( --primary-rgba ), .15); +} + +@media(width < 992px) +{ + .hg .hl{ + position: absolute; + } + + .hg .hl.hk{ + right: 0; + } +} + +@media(width < 550px) +{ + .hg .hl, + .hg .hl.hk{ + max-width: unset; + } +} + +.hg .hl .hm{ + display: none; + flex-direction: column; + height: 100%; + overflow: hidden; +} + + + +.hg .hm header{ + padding: .5rem 1rem; + gap: .5rem; +} + +.hg .hm header, +.hg .hm header>.ix>button, +.hg .hm .kz button{ + display: flex; + align-items: center; + justify-content: space-between; +} + +.hg .hm header h2{ + font-size: 1rem; + font-weight: var( --weight-strong-1 ); + text-transform: uppercase; +} + +.hg .hm header>.ix{ + flex: auto; +} + + + +.hg .hm header>button, +.hg .hm .ix>button, +.hg .hm .kz>button, +.hg .hm .kz .hh>button{ + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hm .kz .hh>button, +.hg .hm .kz .hh>label, +.hg .hm .kz .ix>button{ + padding: .4rem .6rem; + font-size: .85rem; + text-transform: uppercase; + font-weight: var( --weight-strong-1 ); +} + +.hg .hm .kz .ix>button>i{ + padding-top: .25rem; +} + + + +.hg .hm .kz{ + display: flex; + flex-direction: column; + gap: .5rem; + padding: .5rem; + overflow: auto; +} + +.hg .hm .kz section{ + display: flex; + flex-direction: column; + gap: 2rem; +} + +.hg .hm .kz .hh:empty, +.hg .hm .kz .hh:has(>.kx:empty), +.hg .hm .kz .kx:empty{ + display: none !important; +} + +.hg .hm .kz .hh{ + display: flex; + flex-direction: column; + gap: .5rem; +} + +.hg .hm .kz>button{ + width: 100%; +} + +.hg .hm .kz .kx{ + align-items: center; + gap: .5rem; + padding: .25rem .5rem; +} + +.hg .hm .hd{ + margin: 0; +} + +.hg .hm .hh .kx:not(label){ + justify-content: center; + padding: 0; + background: none; +} + + +.hg .hm[data-cp="de"] .hh .kx, +.hg .hm[data-cp="dd"] .hh label.kx{ + justify-content: space-between; +} + + +.hg .hm[data-cp="dd"] .hh .ho[data-cq="es"]:not(.active){ + cursor: not-allowed; +} + +.hg .hm[data-cp="dd"] .hh .kx:not(label)>*{ + flex: 0 0 calc( 25% - .5rem ); + max-width: 25%; + display: block; + padding: .4rem; + text-align: center; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hm[data-cp="dd"] .hh .kx>.ix{ + padding: 0; +} + +.hg .hm[data-cp="dd"] .hh .kx>.ix>button{ + padding: .4rem; + justify-content: center; + background: none; +} + +.hg .hm[data-cp="dd"] .hh .le li{ + display: inline-block; +} + +.hg .hm[data-cp="dd"] .hh .le button{ + display: inline-block; + text-align: center; +} + + + +/* TOOLBAR */ +.hg .kw, +.hg .ko, +.hg footer{ + flex-wrap: wrap; + gap: .5rem; + padding: .5rem; +} + +.hg .kw{ + display: flex; + align-items: center; + justify-content: space-between; + background: rgba( var( --primary-rgba ), .1); +} + + +.kx{ + display: flex; + flex-wrap: wrap; +} + +.kx:empty{ + display: none; +} + +.hg .kx{ + background: rgba( var( --primary-rgba ), .05); +} + +.iy .kx{ + gap: .5rem; + justify-content: space-between; +} + +.iy .kx>.hd{ + flex: 0 0 calc( 33.33% - .5rem ); + margin: 0; +} + + + +/* FILE OPTIONS */ +.hg .kd{ + display: flex; + flex-direction: column; + gap: .5rem; +} + +.hg .kd li{ + margin: 0; +} + +.hg .kd label{ + display: block; + padding: .25rem .5rem; + font-weight: var( --weight-normal ); + background: rgba( var( --primary-rgba ), .05); +} +.hg .kd button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .kd div{ + display: flex; + flex-direction: column; + gap: .5rem; + padding: .5rem; + background: rgba( var( --primary-rgba ), .025); + box-shadow: inset 0 0 0 .1rem rgba( var( --primary-rgba ), .05); +} + +.hg .kd input{ + position: relative; + padding: .25rem .5rem; + background: var( --secondary ); + border: solid .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .kd input:focus{ + border: solid .075rem var( --blue ); +} + +.hg .kd input:not(:disabled):not(:valid):not(:focus)::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: .4rem .5rem; + background: var( --secondary ); + color: rgba( var( --primary-rgba ), .6); + pointer-events: none; +} + +.hg .kd input:not(:disabled):not(:valid):not(:focus)::before{ + content: attr( aria-label ); +} + + + +/* SCROLLABLE */ +.hg .hq{ + flex: auto; +} + +.hg .hq, +.hg .hy{ + overflow: hidden; +} + +.hg .hy{ + width: auto; + height: 100%; + max-width: 100%; + max-height: 100%; +} + + + +.hg .ia{ + width: 100%; + height: 100%; + overflow: auto; + background: var( --secondary ); +} + + + +/* NESTED ELEMENTS */ +.hg .hy>.ia>.adiptal-ui>section::before, +.hg .ia .ik[data-cr="ds"]:has(>section)::before, +.hg .ia .ik[data-cr="dr"]>.tab-body>section::before, +.hg .ia .ik[data-cr="dq"]>.js>section::before, +.hg .ia .ik[data-cr="dp"]>section::before, +.hg .ia .ik[data-cr="dt"]>section::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: solid .075rem rgba( var( --primary-rgba ), .1); + pointer-events: none; +} + +.hg .hy>.ia>.adiptal-ui>section.active::before, +.hg .ia .ik[data-cr="ds"]:has(>section.active)::before, +.hg .ia .ik[data-cr="dr"]>.tab-body>section.active::before, +.hg .ia .ik[data-cr="dq"]>.js>section.active::before, +.hg .ia .ik[data-cr="dp"]>section.active::before, +.hg .ia .ik[data-cr="dt"]>section.active::before{ + border-color: var( --blue ); +} + + + +.hg .ia button>.il{ + margin: 0; + pointer-events: all; +} + +.hg .ia section .js{ + position: relative; +} + +.hg .ia section section{ + min-height: 5rem; + margin: 0; + overflow: auto; +} + +.hg .ia section .js>.gw{ + position: absolute; + top: 0; + right: 0; + margin: 0; + padding: 0 .25rem .1rem; + background: rgba( var( --primary-rgba ), .05); + pointer-events: all; + z-index: 1; + display: none; +} + +.hg .ia section .js:hover>.gw{ + display: unset; +} + +.hg .ia section .js>.gw i{ + margin: 0; + color: rgba( var( --primary-rgba ), .6); +} + +.hg .ia section .js>.il{ + width: calc( 100% - 3rem ); + margin: 1.5rem; +} + +.hg .ia section .tab-heading button>.il{ + min-width: 5rem; +} + + + +/* HOLDER */ +.hg .ik{ + z-index: 1; +} + +.hg .ik:empty{ + display: none; +} + +.hg .ik[data-cr="eg"]:not(.checklist){ + list-style: disc; +} + +.hg .ik[data-cr="ef"]{ + list-style: decimal; +} + +.hg .ik[data-cr="ej"]{ + position: absolute; + width: 100%; + bottom: 0; + margin: 0; +} + +.hg .ik[data-cr="ej"]>*{ + position: absolute; + top: -1rem; + left: 0; + width: 100%; + padding: 1rem 0; + z-index: 1; +} + +.hg .ik[data-cr="ej"]>*>.hr{ + background: rgba( var( --primary-rgba ), .1) !important; +} + + + +/* FOOTER */ +.hg footer{ + display: flex; +} + +.hg footer .kx>a, +.hg footer .kx>button, +.hg footer .kx>.ix>button{ + font-size: .85rem; +} + +.hg footer a{ + padding: .25rem .5rem; + background: rgba( var( --blue-rgba ), .2); +} + +.hg footer a>i{ + color: var( --blue ); +} + +.hg footer .jw{ + background: var( --blue ) !important; + color: var( --secondary ); +} + +.hg footer .jw>i{ + color: var( --secondary ); +} + + + +/* COMMON MENUS BUTTON */ +.hg .ik>button{ + position: absolute; + right: 0; + top: -1.75rem; + display: none; + background: var( --grey-1 ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .ik>button, +.hg .ik>button i{ + line-height: normal; +} + + + +/* TITLE */ +.hg .ik .il ~ label, +.hg .ik .il::before{ + content: attr( aria-label ); + position: absolute; + top: 0; + left: 0; + width: auto; + height: auto; + display: inline-block; + pointer-events: none; + color: rgba( var( --primary-rgba ), .6); +} + +.hg .ik .il:not(:focus):not(:empty) ~ label, +.hg .ik .il:not(:focus):not(:empty)::before{ + display: none; +} + +.hg .ik .il:focus[aria-label]::before, +.hg .ik .il:focus ~ label{ + position: absolute; + display: inline-block; + top: -1.5rem; + left: 0; + padding: .15rem .5rem; + background: rgba( var( --primary-rgba ), .9); + box-shadow: 0 0 0 .075rem rgba( var( --secondary-rgba ), .2); + color: var( --secondary ); + font-size: .85rem; + font-weight: var( --weight-normal ); +} + + + +/* TEXTS */ +.hg .ik:has(>pre.il){ + padding: .25rem; + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .ik pre.il{ + display: block; + height: 15rem; + resize: vertical; + overflow: auto; +} + +.hg .ik pre.il:not(:focus) ~ label{ + left: .35rem; +} + +.hg .ik .il{ + position: relative; + display: inline-block; + width: 100%; + outline: none; + background: none; +} + +.hg .ia section.active .ik:focus-within>.il, +.hg .ia section.active ul.ik:focus-within .il, +.hg .ia section.active ol.ik:focus-within .il{ + background: rgba( var( --primary-rgba ), .05); +} + +.hg .ia .ik .il:focus{ + background: rgba( var( --primary-rgba ), .1) !important; +} + +.hg .ik .il *{ + user-select: auto; +} + +.hg .ik[data-cr="eb"] .il{ + font-size: 1.6rem; + font-weight: var( --weight-strong-1 ); +} + +.hg .ik[data-cr="eb"].lb .il{ + font-weight: var( --weight-normal ); +} + +@container adiptal-ui (width < 768px) +{ + .hg .ik[data-cr="eb"] .il{ + font-size: 1.5rem; + } +} + + + +/* TEXT CONFIG */ +.hg .ik .il *{ + cursor: text; +} + + + +/* CAPTION */ +.hg .ik[data-cr="dn"]>.il:last-child, +.hg .ik[data-cr="dn"]:focus-within>.il:last-child, +.hg .ik[data-cr="ed"]>.il:last-child, +.hg .ik[data-cr="ed"]:focus-within>.il:last-child, +.hg .ik[data-cr="ei"]>.il:last-child, +.hg .ik[data-cr="ei"]:focus-within>.il:last-child, +.hg .ik[data-cr="dk"]>.il:last-child, +.hg .ik[data-cr="dk"]:focus-within>.il:last-child{ + font-style: italic; + color: rgba( var( --primary-rgba ), .6); +} + + + +/* LISTS */ +.hg ul.checklist li::before{ + font-family: "Font Awesome 5 Free"; + content: '\f0c8'; + font-weight: var( --weight-normal ); +} + +.hg ul.checklist li.checked::before{ + content: '\f00c'; + font-weight: var( --weight-strong-2 ); +} + +.hg .ik li.il{ + display: list-item; + width: calc( 100% - 1.5rem ); +} + + + +/* TABLES */ +.hg .ik .im table tr>.active{ + background: rgba( var( --primary-rgba ), .1); +} + +.hg .ik .im table tr .ir{ + display: none; +} + +.hg .ik:focus-within .im table tr .il{ + box-shadow: none; +} + +.hg .ik .im table th, +.hg .ik .im table td{ + display: table-cell; + width: auto; + padding: .5rem 1rem; +} + + + +/* dm BUTTON */ +.hg a.ik{ + cursor: default; +} + + + +/* MEDIA EMBED */ +.hg .ik .ki{ + display: none; +} + +.hg .ik .media-embed .overlay{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* ------------------------- END EDITOR ------------------------- */ + + + +/* ------------------------- CONTEXT MENU ------------------------- */ +.is{ + padding: .25rem; + width: max-content; + display: none; + position: fixed; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 9999; +} + +.is *{ + font-size: .85rem; +} + +.is .ix>button{ + background: rgba( var( --primary-rgba ), .05); +} + +.is .ji{ + display: flex; + justify-content: center; + gap: .25rem; +} + + + +.is.gu .ji>button{ + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gm .ji>*{ + flex: 1; + text-align: center; +} + +.is.gm>button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gx li:not(:empty):not(:last-child){ + margin-bottom: .25rem; +} + +.is.gx li button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gm>.ix{ + display: block; + width: 15rem; +} + +.is.gm>.ix:not(:last-child){ + margin-bottom: .25rem; +} + +.is.gm>.ix>button{ + display: flex; + align-items: center; + justify-content: space-between; +} + +.is.gm .ix>ul{ + position: relative; + top: 0 !important; + left: 0; + width: 100%; + height: 100%; + box-shadow: none; + overflow: unset !important; +} + +.is.gm .ix li{ + margin-top: .25rem; +} +/* ------------------------- END CONTEXT MENU ------------------------- */ + + + +/* ------------------------- DROPDOWN ------------------------- */ +.ix{ + position: relative; + display: inline-block; +} + +.ix>button{ + width: 100%; + height: 100%; +} + +.ix ul{ + position: absolute; + height: max-content; + width: max-content; + display: none; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 3; +} + +.ix>ul{ + position: fixed; +} + +.ix ul li{ + display: block; +} + +.ix ul li>.ix{ + display: block; +} + +.ix li>small, +.ix li>label, +.ix li>button{ + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + padding: .25rem .5rem; + width: 100%; + cursor: pointer; +} + +.ix li>small{ + font-size: .85rem; + color: rgba( var( --primary-rgba ), .6); + cursor: auto; +} + +.ix li>label:not(.lc)>i{ + margin-left: 1.5rem; +} + +.hg .ix label::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + margin: auto; +} + +.hg .ix label:hover::before{ + background: rgba( var( --primary-rgba ), .05); +} +/* ------------------------- END DROPDOWN ------------------------- */ + + + +/* ------------------------- SELECT ------------------------- */ +.kt{ + position: relative; + display: inline-block; +} + +.kt>button{ + width: 100%; +} + +.kt ul{ + position: fixed; + height: max-content; + width: max-content; + display: none; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 3; +} + +.kt ul li{ + display: block; +} + +.kt li>label, +.kt li>button{ + position: relative; + display: block; + padding: .25rem .5rem; + width: 100%; + cursor: pointer; +} +/* ------------------------- END SELECT ------------------------- */ + + + +/* ------------------------- MODAL ------------------------- */ +/* MODAL BOX */ +.iy{ + position: fixed; + top: 0; + left: 0; + display: none; + align-items: center; + justify-content: center; + margin: auto; + width: 100%; + height: 100%; + background: rgba( var( --primary-rgba ), .8); + z-index: 9994; +} + +.iy[data-cp="dn"], +.iy[data-cp="dh"], +.iy[data-cp="di"], +.iy[data-cp="dk"], +.iy[data-cp="dl"], +.iy[data-cp="dm"]{ + z-index: 9995; +} + +.iy[data-cp="dg"]{ + justify-content: flex-start; + align-items: flex-start; + z-index: 9996; + backdrop-filter: blur( .5rem ); +} + +@media(width >= 768px) , (height >= 500px){ + .iy[data-cp="dg"] .iz{ + max-width: 500px; + } +} + +.iy[data-cp="dn"].gi{ + z-index: 9997; +} + +.st-dark-mode .iy{ + background: rgba( var( --secondary-rgba ), .9); +} + +.iy .iz{ + display: flex; + flex-direction: column; + width: 35rem; + max-width: 100%; + max-height: 60%; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.iy .iz.gz{ + width: 75%; + max-height: 75%; +} + +.iy .iz.ha{ + width: 100%; + height: 100%; + max-height: 100%; +} + +@media(width < 768px) , (height < 500px){ + .iy .iz, + .iy .iz.gz{ + width: 100%; + height: 100%; + max-height: 100%; + max-width: 100%; + } +} + + + +/* MODAL HEADER */ +.iy .iz>header h2{ + padding: .5rem 1rem; + border-radius: 0; + text-transform: uppercase; + font-weight: var( --weight-strong-1 ); + box-shadow: inset 0 -.075rem rgba( var( --primary-rgba ), .1); +} + + +/* MODAL CONTENTS */ +.iy .kk{ + flex: auto; + padding: 1rem 1rem .5rem; + overflow: auto; +} + +.iy[data-cp="gc"] .kk{ + padding: 1rem; +} + +.iy[data-cp="dn"] .kk, +.iy[data-cp="dz"] .kk, +.iy[data-cp="dy"] .kk, +.iy[data-cp="ea"] .kk{ + padding: 0; +} + + + +/* MODAL BUTTON */ +.iy .iz button{ + padding: .25rem 1rem; + background: rgba( var( --primary-rgba ), .1); +} +.iy .iz .kk button{ + background: rgba( var( --primary-rgba ), .05); +} + +.iy .iz .ix ul button, +.iy .iz .kt ul button{ + background: none; +} + +.iy .iz .kk>button, +.iy .iz .kk .kt>button{ + padding: .35rem 1rem; +} + + + +/* MODAL TOOLBAR */ +.iy .iz>.kw{ + padding: .5rem 1rem; +} + +.iy .iz>.kw>ul{ + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + gap: .5rem; +} + +.iy .iz>.kw>ul li.ja{ + margin-right: auto; +} + +.iy .iz .jl{ + display: none; +} + + + +/* MODAL TABLE */ +.iy .kk>table{ + width: 100%; + border-collapse: collapse; +} + +.iy .kk>table tr>*{ + padding: .5rem 1rem; + border: .25rem solid var( --secondary ); + background: rgba( var( --primary-rgba ), .05); +} + +.iy .kk>table th{ + background: rgba( var( --primary-rgba ), .1); +} + +.iy[data-cp="dj"] .iz{ + width: auto; +} + +@media(width < 768px) , (height < 500px){ + .iy[data-cp="dj"] .iz{ + width: 100%; + height: 100%; + max-height: 100%; + } +} + +.iy[data-cp="dj"] .kk>table tr>:first-of-type{ + box-shadow: none; +} + +.iy[data-cp="dj"] .kk>table tr>:last-of-type{ + text-align: right; +} + + + +/* MODAL dn */ +.iy[data-cp="dn"] .iz .kk{ + display: flex; + flex-direction: column; +} + + +.iy[data-cp="dn"] .jg{ + display: flex; +} + +.iy[data-cp="dn"] .jg:first-of-type{ + margin: 1rem 1rem .5rem; + background: rgba( var( --primary-rgba ), .025); +} + +.iy[data-cp="dn"] .jg:last-of-type{ + flex: 100%; + flex-direction: column; + justify-content: space-between; + overflow: hidden; +} + + +.iy[data-cp="dn"] .iz .hd{ + flex: auto; + margin: 0; +} + +.iy[data-cp="dn"] .iz .hd:not(:focus-within){ + box-shadow: none; +} + + +.iy[data-cp="dn"] .jh{ + display: grid; + --images: 5; + grid-template-columns: repeat( var( --images ) , minmax( 0 , 1fr ) ); + gap: 1rem; + padding: 1rem; + overflow: auto; +} + +@media(width < 550px) +{ + .iy[data-cp="dn"] .jh{ + --images: 1; + } +} + +@media(width >= 550px) and (width < 768px) +{ + .iy[data-cp="dn"] .jh{ + --images: 2; + } +} + +@media(width >= 768px) and (width < 992px) +{ + .iy[data-cp="dn"] .jh{ + --images: 3; + } +} + +@media(width >= 992px) and (width < 1200px) +{ + .iy[data-cp="dn"] .jh{ + --images: 4; + } +} + + +.iy[data-cp="dn"] .jh img{ + display: block; + width: 100%; + aspect-ratio: 3/2; + padding: .5rem; + object-fit: contain; + object-position: center; + background: rgba( var( --primary-rgba ), .05); + cursor: pointer; +} + +.iy[data-cp="dn"] .jh img.active{ + box-shadow: 0 0 0 .075rem var( --grey-3 ); +} + + + +/* MODAL dm */ +.iy[data-cp="dm"] .kk button{ + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin: 1rem 0 0; +} + + + +/* MODAL METADATA */ +.iy[data-cp="dg"] .kk>*{ + display: block; + margin: 1rem auto; +} + +.iy[data-cp="dg"] .kk>:first-child{ + margin-top: .5rem; +} + +/* COVER IMAGE */ +.iy[data-cp="dg"] .kk>.gh, +.iy[data-cp="dg"] .kk .kt{ + position: relative; +} + +.iy[data-cp="dg"] .kk>.gh img{ + width: 100%; +} + +.iy[data-cp="dg"] .kk>.gh .gl{ + position: absolute; + top: 1rem; + right: 1rem; + background: var( --secondary ); +} + +.iy[data-cp="dg"] .kk>.gh .gj{ + width: 100%; + padding: .35rem 1rem; +} + +/* SELECT */ +.iy[data-cp="dg"] .kk .kt{ + width: 100%; +} + +.iy[data-cp="dg"] .kk .kt>button>i{ + float: right; +} + +.iy[data-cp="dg"] .kk .km{ + display: flex; + flex-wrap: wrap; + align-items: center; + gap: .5rem; + padding: 1.5rem .5rem .5rem; + overflow: auto; +} + +.iy[data-cp="dg"] .kk .km button{ + display: flex; + align-items: center; +} + +.iy[data-cp="dg"] .kk .km button *{ + color: rgba( var( --primary-rgba ), .6); + font-size: 1.1rem; + font-weight: var( --weight-strong-2 ); +} + +.iy[data-cp="dg"] .kk .km input{ + flex: 1; + width: 100%; + padding: .3rem .5rem; + background: rgba( var( --primary-rgba ), .05); + box-shadow: inset 0 0 .2rem .1rem rgba( var( --primary-rgba ), .1); +} + +.iy[data-cp="dg"] .kk .km input:focus{ + background: rgba( var( --blue-rgba ), .05); + box-shadow: inset 0 0 .2rem .1rem rgba( var( --blue-rgba ), .2); +} + +.iy[data-cp="dg"] .kk .km input.disabled{ + display: none; +} +/* ------------------------- END MODAL ------------------------- */ + + + +/* ------------------------- TOAST ------------------------- */ +.je{ + position: fixed; + top: 0; + right: 0; + left: 0; + height: 100%; + width: 25rem; + max-width: 100%; + margin: auto; + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 1rem; + padding: 1rem; + z-index: 9999; + pointer-events: none; +} + +@media(width < 550px) +{ + .je{ + width: 100%; + } +} + +.jf{ + width: 100%; + border-radius: .5rem; + overflow: hidden; + background: var( --secondary ); + box-shadow: 0 0 .1rem .1rem rgba( var( --primary-rgba ), .1); + animation: toastShow .15s linear forwards; + pointer-events: all; +} + +.jf.progress{ + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 1rem; +} + +.jf.la{ + animation: toastHide .15s linear forwards; +} + +@keyframes toastShow{ + 0% { transform: translateY(1.5rem) } + 100% { transform: unset } +} + +@keyframes toastHide{ + 0% { transform: translateY(1.5rem) } + 100% { transform: translateY(100%); opacity: 0; max-height: 0; } +} + +.jf .ky:not(:empty){ + padding: .5rem 1rem; +} + +.jf .ky:only-child{ + text-align: center; +} + +.jf .kz{ + padding: 0 1rem .5rem; +} + + +/* TOAST TYPE */ +.jf .ky{ + font-weight: var( --weight-strong-1 ); +} + +.jf::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.jf.danger::before{ + background: rgba( var( --red-rgba ), .2); +} + +.jf.warning::before{ + background: rgba( var( --yellow-rgba ), .2); +} + +.jf.success::before{ + background: rgba( var( --green-rgba ), .2); +} + +.jf.info::before{ + background: rgba( var( --blue-rgba ), .2); +} + +.jf.progress i{ + font-size: 1.15rem; + color: var( --green ); +} + +.jf.progress .ky{ + padding: .5rem 0; +} + +.jf.progress .kz{ + display: none; +} + + +/* TOAST TOOLBARS */ +.jf .kw{ + display: flex; + padding: .5rem 1rem; + gap: .5rem; +} + +.jf .kw button{ + flex: 1; + text-align: center; + background: rgba( var( --primary-rgba ), .1); + border-radius: .5rem; + overflow: hidden; +} + + +/* CIRCLE PROGRESS PERCENT */ +svg.progress{ + --progress: 0; + --progress-radius: .5rem; + --progress-calc: 2 * 22 / 7 * var( --progress-radius ); + --progress-stroke-dasharray: calc( var( --progress-calc ) ) , calc( var( --progress-calc ) * 60 * 100 ); + width: 1.15rem; + height: 1.15rem; + transform: rotate(-90deg); + overflow: initial; +} + +svg.progress circle{ + fill: none; + stroke-width: .15rem; + stroke-linecap: round; + transform-origin: center center; + transition: all .25s; +} + +svg.progress circle:nth-child(1){ stroke: rgba( var( --primary-rgba ), .1); } +svg.progress circle:nth-child(2){ + stroke-dasharray: var( --progress-stroke-dasharray ); + stroke-dashoffset: calc( var( --progress-calc ) - ( var( --progress-calc ) * var( --progress ) / 100 ) ); + stroke: var( --blue ); +} +/* ------------------------- END TOAST ------------------------- */ \ No newline at end of file diff --git a/docs/plugin/assets/js/apt_query.min.js b/docs/plugin/assets/js/apt_query.min.js new file mode 100644 index 00000000..439702a4 --- /dev/null +++ b/docs/plugin/assets/js/apt_query.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +"use strict";function ne(t,e=document){var n=new nf;if(t===document||t instanceof Node)n.push(t);else if(t instanceof nf)n=t;else if(t instanceof NodeList)for(var r=0;r *").indexOf(this[e]);break;case"object":return this.indexOf(t)}return-1},nf.prototype.mk=function(){for(var t=new nf,e=0;e *").indexOf(this[e]);break;case"object":return this.indexOf(t)}return-1},nf.prototype.mk=function(){for(var t=new nf,e=0;e
',a();break;case!!/https:\/\/twitter\.com\/.*/gm.test(e):n=/https:\/\/twitter\.com\/.*/gm.exec(e);var i="jsonpCallback_"+(new Date).getTime(),s="https://publish.twitter.com/oembed?chrome=noheader%20nofooter%20noborders%20transparent&hide_thread=true&dnt=true&limit=3&maxwidth=1200&url="+encodeURIComponent(n[0])+"&callback="+i,c=document.createElement("script");c.src=s,window[i]=function(e){t='",a(),c.remove(),delete window[i]},c.onerror=function(){nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}),c.remove(),delete window[i]},document.body.append(c);break;case!!/https:\/\/soundcloud\.com\/.*/gm.test(e):n=/https:\/\/soundcloud\.com\/.*/gm.exec(e);var l=new XMLHttpRequest;l.addEventListener("readystatechange",function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=200&&l.status<400?(t='
'+l.response.html+'
',a()):nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}))}),l.open("GET","https://soundcloud.com/oembed?format=json&url="+n[0]),l.responseType="json",l.send();break;case!!/https:\/\/vimeo\.com\/.*/gm.test(e):n=/https:\/\/vimeo\.com\/.*/gm.exec(e),l=new XMLHttpRequest;l.addEventListener("readystatechange",function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=200&&l.status<400?(t='
',a()):nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}))}),l.open("GET","https://vimeo.com/api/oembed.json?url="+encodeURIComponent(n[0])),l.responseType="json",l.send();break;case!!/https:\/\/open.spotify\.com\/(.*)/gm.test(e):n=/https:\/\/open.spotify\.com\/(.*)/gm.exec(e);t='
',a();break;default:nh.ce({type:"warning",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}),a()}}).then(function(){return-1!=t&&(t='
'+t+"
"),t})}function ns(){if(0!=ne(".twitter").length&&ne(".twitter iframe").length!=ne(".twitter").length){ne('[src*="platform.twitter.com"]:not(iframe)').ma();var e=document.createElement("script");e.src="https://platform.twitter.com/widgets.js",document.body.append(e),e.onload=function(){this.remove()}}}function nt(e,t=!1){document.activeElement.blur();var a=ne('.iy[data-cp="'+e+'"]');if(0!=a.length){switch(a.mq({display:"flex"}),e){case"dm":"INLINE"==ng.ba?(a.ne(".hd:nth-of-type(2) input").mv(ng.bk.toString()),a.ne("h2").mw(lang_pack.json.link)):a.ne("h2").mw(lang_pack.json.link_button),a.ne('button span[data-cs="1"]').mt({"data-cs":0});break;case"dj":a.ne(".kk").mw(ng.bg(!0))}if(1==t)switch(a.mt({"data-cx":!0}),e){case"dn":ng.ar.ne("img").forEach(function(e){a.ne('img[src*="'+e.mt("src")+'"]').mn()});break;case"dm":var n;if("INLINE"==ng.ba){var i=ng.bk.commonAncestorContainer;n=1!=i.nodeType?i.parentElement.mg("a"):i.mg("a")}else n=ng.ar;n&&0!=n.length&&(a.ne(".hd:first-of-type input").mv(n.mt("href")),a.ne(".hd:nth-of-type(2) input").mv(n.my()),"_blank"==n.mt("target")&&ne(".jd span").mt({"data-cs":1}))}a.ne(".hd").mi().mf(0).ne("input").mm()}}function ny(e,t=""){e=e.nd(),e.ne("[colspan]").forEach(function(e){for(var t=parseInt(e.mt("colspan"))-1,a=0;a *")[parseInt(e.mt("data-cw"))].before(e)})}),e.ne("[data-cw]").ly("data-cw");var a=0;return e.ne("tr").forEach(function(e){var t=e.ne(":scope > *").length;t>a&&(a=t)}),e.ne("tr").forEach(function(e){var t=e.ne(":scope > *").length;if(t
'+e.mx()+'
"+t+"
'}function nz(e,t="",a=!1,n=!0){var i="";switch(n&&(i='class="il" contenteditable="true"'),e){case"TBODY":if(a){var s=document.createElement("td");return s.mt({contenteditable:"true"}),s.mu("il"),s}return""+t+"";default:if(a){s=document.createElement("th");return s.mt({contenteditable:"true"}),s.mu("il"),s}return""+t+""}}function nm(e){var t=ne("html"),a=ne(".jy"),n=ne(".jo");switch(e){case"dark":if(t.md("st-dark-mode"))return;break;case"light":if(!t.md("st-dark-mode"))return}t.md("st-dark-mode")?(a.mw(''),n.mt({href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/intellij-light.min.css"})):(a.mw(''),n.mt({href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/vs2015.min.css"})),t.mb("st-dark-mode"),ng.p=0==ne(".st-dark-mode").length?"default-mode":"dark-mode",ne('.hm input[list="og"]').mv("").ml("change"),ng.j()}var nk;window.onload=function(){ng.x=ne(".hf").mw(),window.parent.postMessage(["adiptal_studio_live",window.name],"*");var e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";nm(e),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{var t=e.matches?"dark":"light";nm(t)}),ne("head").mz('')},document.addEventListener("touchstart",function(e){nk=setTimeout(function(){ne(e.target).mo()},500)}),document.addEventListener("touchend",function(){nk&&clearTimeout(nk)}),document.addEventListener("click",function(e){var t=e.target;t.matches(".ix ul , .ix ul *")||ne(".ix > button.active").lx("active").lt().ms().ls().ma(),t.matches(".kt ul , .kt ul *")||ne(".kt > button.active").lx("active").lt().ms()}),document.addEventListener("click",function(e){(!e.target.matches(".ku , .is , .is *")||e.target.matches(".go")||e.target.matches(".it")||e.target.matches(".io")||e.target.matches(".ip")||e.target.matches(".iq:not(.disabled)")||e.target.matches(".gy[data-cq]")||e.target.matches(".gw")||e.target.matches(".gv"))&&nq()}),document.addEventListener("scroll",function(e){e.target.matches(".ia , .iy *")&&nq()},!0),document.addEventListener("contextmenu",function(e){e.preventDefault(),document.body.click()}),document.addEventListener("click",function(e){e.target.matches(".hg .kl")&&ng.bo()}),document.addEventListener("click",function(e){var t=e.target;t.matches(".jj")&&nt("dg")}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hd label")&&t.lw("input , textarea").mm()}),["click","dragstart"].forEach(function(e){document.addEventListener(e,function(e){e.target.matches(".adiptal-ui a , .adiptal-ui a *")&&(e.preventDefault(),e.stopPropagation())})});var ng={base_url:window.location.toString().split(/index\.(php|html)/)[0],ar:void 0,bk:void 0,bw:[],aq:0,o:"default-element",p:"default-mode",ba:"INLINE",br:void 0,bu:{autosave_interval:3e4},bi:{},q:{},d:{eb:"Heading",ec:"Paragraph",ed:"Blockquote",eh:"Html Embed",ei:"Preformatted",eg:"Unordered List",ef:"Ordered List",ee:"Check List",dp:"Columns",dt:"Carousel",dq:"Accordion",dr:"Tab",ds:"Container",dm:"Link",dl:"Media Embed",dk:"Table",dn:"Image",ej:"Page Break"},ab:'',aa:function(){return'

'+this.ab+'
'},ay:"",az:'

',ax:function(){return'
'+this.az+this.aa()+'
'+this.ay+"
"},av:function(e){var t="";t+='
'),this.bg()},au:function(){var e=this;ne(".hg:empty").forEach(function(t){t.mw(e.ax()),e.bh(t),e.av(t),e.ag(t);try{e.bx(t)}catch(e){console.warn(e)}})},bz:function(){return null!=this.ar&&(0!=this.ar.mi().length||this.bt&&this.ar.mg("section").md("active"))},bn:function(){ne(".ho.active").lx("active")},bg:function(e=!1,t=this.y()){for(var a,n=document.createTreeWalker(t[0],NodeFilter.SHOW_TEXT);a=n.nextNode();)a.before(document.createTextNode(" "));var i=t.my(),s=i.split(/(\s+)/).filter(function(e){return""!=e&&!/^(\s+)$/.test(e)}).length;if(ne(".hg footer .jx").mw(s+" "+lang_pack.json.words),e)return"
~ "+Math.ceil(s/200)+" mins
"+(ne('.hg .ik[data-cr="ej"]:not(:empty)').length+1)+"
"+ne('.hg .ik:not([data-cr="ej"]):not(:empty)').length+"
"+s+"
"+i.replaceAll(/\s/g,"").length+"
"+i.length+"
"},bj:function(e="",t){switch(e){case"ca":case"bl":case"fw":ne(".twitter > div").forEach(function(e){1==e.children.length&&e.na(decodeURIComponent(e.ne(".ki").mw()))}),ns(),ne(".hg .ko").mi().ne(".hd:first-of-type input").ml("input"),ne(".iy").mi().ne(".jb").mn(),this.bg(),ne(document).ml("RenderPreview"),ne("[data-cn]:not([aria-label])").forEach(function(e){e.mt({"aria-label":lang_pack.json[e.mt("data-cn")]})}),ne("[data-cm]:empty").forEach(function(e){var t=e.childNodes;0!=t.length&&t[0].remove(),e.na(lang_pack.json[e.mt("data-cm")])});break;case"u":ns(),this.bg(!1,t),ne(document).ml("RenderPreview");var a=[];ne("mark[data-cy].active").ly("class").forEach(function(e){for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);t=n.nextNode();)-1==a.indexOf(t)&&a.push(t)}),0!=a.length&&this.aw(a);break;case"w":if(this.at){var n=this.ar.ls('.ik[data-cr="ej"]:not(:empty)').mf(0).ne(".ki").mt("class");null!=n&&this.ar.ne(".ki").mt({class:n}),delete this.at}break;case"paste":ne(".iy").mi().ne(".jb").mn();break;case"fh":t[0].lv().ne("[rowspan]").forEach(function(e){if(t[1]<=e.mg("tr").mj()+parseInt(e.mt("rowspan"))-1){e.mt({rowspan:parseInt(e.mt("rowspan"))+1}),t[0].ne(":scope > *").mf(e.mj()).mu("ir");var a=parseInt(e.mt("colspan"));if(!isNaN(a))for(var n=1;n *").mf(e.mj()+n).mu("ir")}});break;case"fk":t.forEach(function(e){var t=e.mj(),a=e.lv("[colspan]").mf(0);if(0!=a.length&&t<=a.mj()+parseInt(a.mt("colspan"))-1){if(null!=a.mt("rowspan"))for(var n=parseInt(a.mt("rowspan"))-1,i=0;i *").mf(t).mu("ir");e.mu("ir"),a.mt({colspan:parseInt(a.mt("colspan"))+1})}})}},bo:function(e){0==ne('.iy[data-cp="dg"]').mi().length?0!=ne('.iy[data-cp="dg"]').length&&0==Object.keys(this.bi).length?nh.ce({type:"warning",heading:lang_pack.json.empty_file}):(this.bi.content=this.al(),"autosave"==e&&(this.bi[e]=this.bu.autosave_interval),window.parent.postMessage(["adiptal_studio_saveFile",window.name,this.bi],"*")):nh.ce({type:"danger",heading:lang_pack.json.click_continue_to_save})},y:function(){var e=this;ne(".id").lx("id"),ne(".il *").forEach(function(e){"BR"!=e.nodeName&&""==e.textContent.trim()&&e.replaceWith(...e.childNodes)}),ne(".il").ne("b , i , u , span , mark:not([style]) , mark:not([data-cy]) , small , big").forEach(function(e){e.replaceWith(...e.childNodes)}),ne(".il").forEach(function(e){""==e.textContent.trim()&&e.mw("")});var t=!1;if(ne(".ia > .adiptal-ui > section:not(:empty)").forEach(function(e){1!=t&&(e.ne(':scope > .ik[data-cr="ej"]:not(:empty)').length>1||0==e.ne(':scope > .ik[data-cr="ej"]:last-of-type:not(:empty)').length)&&(t=!0)}),ne(".ia > .adiptal-ui > section:not(:empty)").length!=ne('.ik[data-cr="ej"]:not(:empty)').length||t){ne(".ia > .adiptal-ui > section:not(:empty)").forEach(function(e){e.replaceWith(...e.childNodes)}),ne(".ia > .adiptal-ui > section").ma(),0==ne('.ia > .adiptal-ui > .ik[data-cr="ej"]:last-of-type:not(:empty)').length&&ne(".ia > .adiptal-ui").mz('
');var a=0,n=ne(".ia > .adiptal-ui > .ik").length-1;ne(".ia > .adiptal-ui").mz("
"),ne(".ia > .adiptal-ui > .ik").forEach(function(e,t){ne(".ia > .adiptal-ui > section")[a].append(e),e.matches('.ik[data-cr="ej"]:not(:empty)')&&t .adiptal-ui").mz("
"),a++)})}ne(document).ml("oi"),ne('.ik[data-cr="ds"]').forEach(function(e){[...e.classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.lx(t)})}),this.bb(),this.s(),ne(".hg .ik:not([data-cu])").forEach(function(t){t.mt({"data-cu":e.aq}),e.aq=e.aq+1}),ne(".hg .ik:not([data-co])").forEach(function(t){var a=t.mt("data-cr");t.md("checklist")&&(a="ee"),t.mt({"data-co":e.d[a]})});try{this.c()}catch(e){console.warn(e)}var i=ne(".hg .ia").mk();return i.ne("ins").forEach(function(e){e.replaceWith(...e.childNodes)}),i.ne("[style]").forEach(function(e){e.lz("display")}),i.ne(".twitter").forEach(function(e){e.ne(":scope > div").mw(e.ne(":scope .ki").mx())}),i.ne(".it").ms(),i.ne(".active").lx("active"),i.ne("[data-cm]").mw(""),i.ne("[data-cn]").ly("aria-label"),i.ne("[id]").ly("id"),i.ne("[width]").ly("width"),i.ne("[height]").ly("height"),i.ne('[class=""]').ly("class"),i.ne("[__idm_id__]").ly("__idm_id__"),i.ne("[__idm_frm__]").ly("__idm_frm__"),i.ne('[style=""] , [style]:not([data-cy])').ly("style").ly("data-cy"),i},al:function(e=!1,t=0){var a,n=this,i=!0;ne('.ia [class*="st-"]').forEach(function(e){[...e.classList].forEach(function(t){!/\bst-\S+\b/.test(t)||null!=n.q["."+t]&&0!=Object.keys(n.q["."+t]).length||e.lx(t)})}),a=0==t?this.y().ne(":scope > .adiptal-ui > section > .ik:not(:empty)"):this.y().ne("section").mf(t).ne(":scope > .ik:not(:empty)");for(var s="",c=0;c"+o.ne(".il").mw()+"":i?(l="

"+o.ne(".il").mw()+"

",i=!1):l="

"+o.ne(".il").mw()+"

");break;case"ec":""!=o.ne(".il").mw().trim()&&(l="

"+o.ne(".il").mw()+"

");break;case"ed":if(""!=o.ne(".il:first-child").mw().trim()){var r="";""!=o.ne(".il:last-child").mw().trim()&&(r+="
"+o.ne(".il:last-child").mw()+"
"),l='
'+o.ne(".il:first-child").mw()+"
"+r+"
"}break;case"ei":if(""!=o.ne(".il:first-child").mw().trim()){r="";""!=o.ne(".il:last-child").mw().trim()&&(r+="
"+o.ne(".il:last-child").mw()+"
"),l='
'+o.ne(".il:first-child").mw()+"
"+r+"
"}break;case"eh":""!=o.my().trim()&&(l="");break;case"eg":o.ne("li").forEach(function(e){e.mg("ul").md("checklist")&&e.mw(e.ne("span").mw())}),o.ne("li").forEach(function(e){""==e.mw().trim()&&e.remove()}),0!=o.ne("li").length&&(l=o.mx());break;case"ef":o.ne("li").forEach(function(e){""==e.mw().trim()&&e.remove()}),0!=o.ne("li").length&&(l=o.mx());break;case"dp":o.ne(":scope > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=n.al(!0,t),i="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(i+=e+" ")}),l+='
'+a+"
"}),""!=l&&(l='
'+l+"
");break;case"dt":o.ne(":scope > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=n.al(!0,t),i="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(i+=e+" ")}),l+='
'+a+"
"}),""!=l&&(l='");break;case"dq":o.ne(":scope > .js > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=e.lw().ne(":scope > .il").mw(),i=n.al(!0,t),s="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(s+=e+" ")}),""!=a&&(l+="
'+i+"
")}),""!=l&&(l='
'+l+"
");break;case"dr":var d="",m="",h=o.mt("class").split(" ").filter(e=>"horizontal"==e||"vertical"==e)[0];null==h&&(h=""),o.ne(":scope > .tab-body > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=e.mg(".tab").ne(":scope > .tab-heading > li > button > .il")[e.mj()].mw(),i=n.al(!0,t),s="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(s+=e+" ")}),""!=a&&(d+="
  • ",m+='
    '+i+"
    ")}),""!=d&&""!=m&&(l='
      '+d+'
    '+m+"
    ");break;case"ds":var u="";o.ne(":scope > section").forEach(function(e){[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(u+=e+" ")});var t=e.mg(".ia").ne("section").indexOf(e);l+=n.al(!0,t)}),l='
    '+l+"
    ";break;case"dm":var g=o.mk();g.ne(":scope > span").forEach(function(e){e.replaceWith(...e.childNodes)}),l=g.mx();break;case"dl":l=0==o.ne(".ki").length?o.mw().trim():'";break;case"dk":var p=o.ne("table");r="";""!=o.ne(":scope > .il").mw().trim()&&(r+="
    "+o.ne(":scope > .il").mw()+"
    "),l='
    '+p.mx()+"
    "+r+"
    ";break;case"dn":if(0!=o.ne(":scope > *").length){var f="";o.ne("img").forEach(function(e){f+=e.outerHTML});r="";""!=o.ne(":scope > .il").mw().trim()&&(r="
    "+o.ne(":scope > .il").mw()+"
    "),l='
    '+f+r+"
    "}break;case"ej":e||(s+="
    ",i=!0)}if(l=l.nd(),0!=l.length){0!=l.ne(".twitter .ki").length&&l.ne(".twitter > div").forEach(function(e){e.mw(decodeURIComponent(e.ne(".ki").mw()))}),l.md("pre")&&0==l.ne(".hljs").length&&(l.ne(":scope > pre").mz('")}):r.ne("li").mu("il").mt({contenteditable:"true"}),r.mt({"data-cr":"eg"}).mu("ik"),this.w(r[0].outerHTML);break;case"OL":r.mt({"data-cr":"ef"}).mu("ik"),r.ne("li").mu("il").mt({contenteditable:"true"}),this.w(r[0].outerHTML);break;case"DIV":if(r.md("columns")){this.e("dp",!1,!1,r.ne(":scope > *").length);for(var d=this.ar,m=0;m *").length;m++)[...r.ne(":scope > *")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mf(m).mu(e)}),d.ne(":scope > section").mf(m).ml("focusin"),await n.bs(r.ne(":scope > *").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("carousel")){this.e("dt",!1,!1,r.ne(":scope > div:not(.navigation)").length);for(d=this.ar,m=0;m div:not(.navigation)").length;m++)[...r.ne(":scope > div:not(.navigation)")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mf(m).mu(e)}),d.ne(":scope > section").mf(m).ml("focusin"),await n.bs(r.ne(":scope > div:not(.navigation)").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("accordion")){this.e("dq",!1,!1,r.ne(":scope > *").length);for(d=this.ar,m=0;m *").length;m++)[...r.ne(":scope > div > div")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > .js > section").mf(m).mu(e)}),d.ne(":scope > .js > section").mf(m).ml("focusin"),i.ne("section.active").lw().ne(":scope > .il").mw(r.ne(":scope > *").mf(m).ne(":scope > button").mw()),await n.bs(r.ne(":scope > *").mf(m).ne(":scope > button + *"),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("tab")){var h=r.mt("class").split(" ").filter(e=>"horizontal"==e||"vertical"==e)[0];this.e("dr",!1,!1,r.ne(":scope > .tab-heading > li > button").length);d=this.ar;d.mu(h);for(m=0;m .tab-heading > li > button").length;m++)[...r.ne(":scope > .tab-body > *")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > .tab-body > section").mf(m).mu(e)}),d.ne(":scope > .tab-body > section").mf(m).ml("focusin"),d.ne(":scope > .tab-heading > li > button > .il").mf(m).mw(r.ne(":scope > .tab-heading > li > button").mf(m).mw()),await n.bs(r.ne(":scope > .tab-body > *").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("container")){this.e("ds",!1,!1);d=this.ar;[...r[0].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mu(e)}),d.ne(":scope > section").ml("focusin"),await n.bs(r,t,!0),d.mg("section").ml("focusin"),d.mn()}else r.md("media-embed")&&this.w('
    '+r[0].outerHTML+"
    ");break;case"FIGURE":if(r.md("image")){var u="";r.ne("img").forEach(function(e){u+=e.outerHTML});var g="";0!=r.ne("figcaption").length&&(g=r.ne("figcaption").mw()),this.w('
    '+u+'
    "+g+"
    ")}else if(r.md("table")){g="";0!=r.ne(":scope > figcaption").length&&(g+=r.ne(":scope > figcaption").mw(),r.ne(":scope > figcaption").ma()),r.ne("tr > *").mu("il").mt({contenteditable:"true"}),this.w(ny(r.mw(),g))}else r.md("blockquote")?(this.e("ed"),0!=r.ne("figcaption cite").length&&this.ar.ne(".il:last-child").mw(r.ne("figcaption cite").mw()),this.ar.ne(".il:first-child").mw(r.ne("blockquote").mw()).mm()):r.md("pre")&&(this.e("ei"),0!=r.ne("figcaption").length&&this.ar.ne(".il:last-child").mw(r.ne("figcaption").mw()),this.ar.ne(".il:first-child").my(r.ne(":scope > pre > code").my()));break;case"A":this.w(r.mu("ik").mt({"data-cr":"dm"})[0].outerHTML),this.ar.mw(''+this.ar.mw()+"")} +null!=r.mt("data-align")?this.ar.ne(".il:first-child").mt({"data-align":r.mt("data-align")}):-1!=["eb","ed"].indexOf(this.ar.mt("data-cr"))&&null!=r.ne("[data-align]").mt("data-align")&&this.ar.ne(".il:first-child").mt({"data-align":r.ne("[data-align]").mt("data-align")}),null!=r.mt("data-dir")?this.ar.ne(".il:first-child").mt({"data-dir":r.mt("data-dir")}):-1!=["eb","ed"].indexOf(this.ar.mt("data-cr"))&&null!=r.ne("[data-dir]").mt("data-dir")&&this.ar.ne(".il:first-child").mt({"data-dir":r.ne("[data-dir]").mt("data-dir")}),[...r[0].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&n.ar.mu(e)})}this.e("ej"),[...s[l].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&n.ar.ne(".ki").mu(e)})}if(i.ne("section.active").lz("display"),!a){i.ne(".twitter").forEach(function(e){0==e.ne(".ki").length&&e.ne(":scope > div").mz('
    '+encodeURIComponent(e.ne(":scope > div").mw())+"
    ")});var p=e.filter(e=>e.matches(".css_styles"));null!=p&&null!=p.mt("data-css_style")&&(this.q=Object.assign(this.q,JSON.parse(p.mt("data-css_style")))),0!=Object.keys(c).length?this.ap=c:delete this.ap,i.ne("mark:not([data-cy])").mt({"data-cy":"true"}),delete this.bt,this.u(t)}return!0},u:function(e=!1,t=!1){if(1!=this.bt){null==this.ap&&(this.ap={},this.ap.pointer=0,this.ap.style_json_array=[],this.ap.changes=[],this.ap.content={},e||this.ap.changes.push([]));var a=this.y(),n=a.mw().replaceAll(/\> {2,}\ <").nd(),i={},s=[],c=this.ap.content;n.ne(".ik").forEach(function(e){var t=e;0!=t.ne(".ik").length&&(t=t.cloneNode(!0),t.ne(".ik").mw("")),i[t.mt("data-cu")]=t.outerHTML}),Object.keys(i).forEach(function(e){var a=[];if(a[0]=i[e],t&&t.cu==e)a.move_json=t,c[e].kr=[],c[e].ks.push(a);else if(null==c[e])c[e]=[],c[e].kr=[],c[e].ks=[a];else{if(0==c[e].ks.length||c[e].ks[c[e].ks.length-1][0]==i[e])return;c[e].kr=[],c[e].ks.push(a)}s.push(e)}),this.i("_add_history_",void 0,s),0!=s.length&&(this.ap.pointer!=this.ap.changes.length-1&&(this.ap.changes=this.ap.changes.slice(0,this.ap.pointer+1)),this.ap.changes.push(s),this.ap.pointer=this.ap.changes.length-1,ne(".hg .kr").mu("disabled"),this.ap.pointer>0&&ne(".hg .ks").lx("disabled"),ne(".hg")[0].normalize(),this.bj("u",a))}},ca:function(){var e=this;this.ap.pointer>0&&(this.ap.changes[this.ap.pointer].forEach(function(t){/--css-change--/.test(t)?e.i("_undo_",parseInt(t.split("--css-change--")[0])):e.ap.content[t].kr.push(e.ap.content[t].ks.pop())}),this.ap.changes[this.ap.pointer].forEach(function(t){if(!/--css-change--/.test(t))if(0!=e.ap.content[t].ks.length){var a=e.ap.content[t].kr[e.ap.content[t].kr.length-1];e.h(t,a,"from");try{e.g(t,a,"from")}catch(e){console.warn("Ignoring Holder Move Location Issue, as it will be fixed in ongoing iterations !")}}else ne('.hg .ik[data-cu="'+t+'"]').mw("")}),this.ap.pointer=this.ap.pointer-1,ne(".hg .kr").lx("disabled"),this.ap.pointer<1&&ne(".hg .ks").mu("disabled"),this.bj("ca"),delete this.ar,this.bn(),ne(".ia > .adiptal-ui > section").ml("focusin"))},bl:function(){var e=this;this.ap.changes.length>this.ap.pointer+1&&(this.ap.pointer=this.ap.pointer+1,this.ap.changes[this.ap.pointer].forEach(function(t){/--css-change--/.test(t)?e.i("_redo_",parseInt(t.split("--css-change--")[1])):e.ap.content[t].ks.push(e.ap.content[t].kr.pop())}),this.ap.changes[this.ap.pointer].forEach(function(t){if(!/--css-change--/.test(t)){var a=e.ap.content[t].ks[e.ap.content[t].ks.length-1];e.h(t,a,"to");try{e.g(t,a,"to")}catch(e){console.warn("Ignoring Holder Move Location Issue, as it will be fixed in ongoing iterations !")}}}),ne(".hg .ks").lx("disabled"),this.ap.changes.length-1==this.ap.pointer&&ne(".hg .kr").mu("disabled"),this.bj("bl"),delete this.ar,this.bn(),ne(".ia > .adiptal-ui > section").ml("focusin"))},h:function(e,t,a){var n=this;try{n.f(e,t,a)}catch(e){console.warn("Ignoring Holder Absent Issue, as it will be fixed in ongoing iterations !")}ne('.hg .ik[data-cu="'+e+'"]').mx(n.ap.content[e].ks[n.ap.content[e].ks.length-1][0]),ne('.hg .ik[data-cu="'+e+'"] .ik').forEach(function(e){t=n.ap.content[e.mt("data-cu")].ks[n.ap.content[e.mt("data-cu")].ks.length-1],n.h(e.mt("data-cu"),t,a)})},f:function(e,t,a){if(t&&null!=t.move_json){var n=t.move_json;if(0==ne('.hg .ik[data-cu="'+e+'"]').length){var i=ne(".hg section").mf(n[a+"_section"]),s=t[0].nd()[0];0!=i.length&&(i[0].matches(":empty")||i[0].ne(":scope > .ik").length<=n[a+"_holder"]?i[0].append(s):i[0].ne(":scope > .ik")[n[a+"_holder"]].before(s))}}},g:function(e,t,a){var n=t.move_json,i=ne('.hg .ik[data-cu="'+e+'"]')[0];if(null!=n&&null!=i){var s=i.mg(".hg").ne(".ia section")[n[a+"_section"]];if(n.from_section!=n.to_section){if(s.matches(":empty")||s.ne(":scope > .ik").length<=n[a+"_holder"]?s.append(i):s.ne(":scope > .ik")[n[a+"_holder"]].before(i),i.mg(".hg").ne('.ik[data-cu="'+n.cu+'"]').length>1){a="from"==a?"to":"from";var c=i.mg(".hg").ne(".ia section").ne(':scope > .ik[data-cu="'+n.cu+'"]');c=c.filter(function(e){return e!=s.ne(':scope > .ik[data-cu="'+n.cu+'"]')[0]}),c.ma()}}else"from"==a?n.from_holder .ik")[n.from_holder].before(i):s.ne(":scope > .ik")[n.from_holder].after(i):"to"==a&&(n.from_holder>n.to_holder?s.ne(":scope > .ik")[n.to_holder].before(i):s.ne(":scope > .ik")[n.to_holder].after(i))}},i:function(e,t,a){var n=this.ap.style_json_array;if("_undo_"==e||"_redo_"==e)try{this.q=JSON.parse(n[t]),this.s()}catch(e){console.warn(e)}finally{this.t=t}else if("_add_history_"==e){var i=ne(".css_styles").mt("data-css_style");0!=n.length&&n[n.length-1]==i||n.push(i),this.t!=n.length-1&&(a.push(this.t+"--css-change--"+(n.length-1)),this.t=n.length-1)}},s:function(){var e="",t=this.q;Object.keys(t).forEach(function(e){Object.keys(t[e]).forEach(function(a){Object.keys(t[e][a]).forEach(function(n){Object.keys(t[e][a][n]).forEach(function(i){Object.keys(t[e][a][n][i]).forEach(function(s){Object.keys(t[e][a][n][i][s]).forEach(function(c){0==Object.keys(t[e][a][n][i][s][c]).length&&t[e][a][n][i][s][c].constructor===Object&&delete t[e][a][n][i][s][c]}),0==Object.keys(t[e][a][n][i][s]).length&&t[e][a][n][i][s].constructor===Object&&delete t[e][a][n][i][s]}),0==Object.keys(t[e][a][n][i]).length&&t[e][a][n][i].constructor===Object&&delete t[e][a][n][i]}),0==Object.keys(t[e][a][n]).length&&t[e][a][n].constructor===Object&&delete t[e][a][n]}),0==Object.keys(t[e][a]).length&&t[e][a].constructor===Object&&delete t[e][a]})}),Object.keys(t).forEach(function(a){function n(e,t){return e-t}var i=Object.keys(t[a]).sort(n).reduce((e,n)=>(e[n]=t[a][n],e),{});t[a]=i,Object.keys(t[a]).forEach(function(n){Object.keys(t[a][n]).forEach(function(i){Object.keys(t[a][n][i]).forEach(function(s){Object.keys(t[a][n][i][s]).forEach(function(c){"0"!=s&&(e+="@container adiptal-ui ("+c+" "+s+"){");var l="";"dark-mode"==i&&(l+=".st-dark-mode ");var o="";if("default-element"!=n)o=n;e+=l+".adiptal-ui "+a+o+"{",Object.keys(t[a][n][i][s][c].css).forEach(function(l){e+=l+":"+t[a][n][i][s][c].css[l]+";"}),e+="}","0"!=s&&(e+="}")})})})})}),ne(".css_styles").mt({"data-css_style":JSON.stringify(t)}).mw(e)},ah:function(e){if(null!=this.bk){var t=this.bk.commonAncestorContainer;if(1!==t.nodeType&&(t=t.parentElement),null!=t)return t.closest(e)}},am:function(){var e=this.bk.startContainer,t=this.bk.endContainer;if(!this.bk.collapsed){var a=this.ah(".il");if(a&&a.my()!==this.bk.toString()){var n,i;try{n=e.splitText(this.bk.startOffset)}catch(t){n=e}if(e==t)try{n.splitText(this.bk.endOffset)}catch(t){n=e}else try{i=t.splitText(0),i.splitText(this.bk.endOffset)}catch(e){i=t}this.bk=document.createRange(),this.bk.setStartBefore(n),e==t?this.bk.setEndAfter(n):this.bk.setEndAfter(i),this.z().addRange(this.bk)}this.bw=[],this.ai(a,!0,NodeFilter.SHOW_TEXT)}},ac:function(e){var t=this;switch(e){case"dh":case"di":case"dm":return"dm"==e&&"A"==this.ar[0].nodeName?void nh.ce({type:"danger",heading:lang_pack.json.create_link,body:lang_pack.json.link_inside_link}):void nt(e);case"ex":return void this.bm(" ");case"ey":return this.bm("
    "),this.aw(this.bk.commonAncestorContainer.nextSibling),void this.bk.collapse(!0)}if(!this.bk.collapsed){var a;this.am();var n=[];if(this.bw.forEach(function(i){switch(e){case"ek":a=document.createElement("del");break;case"el":a=document.createElement("sup");break;case"em":a=document.createElement("sub");break;case"en":a=document.createElement("em"),a.mu("ul");break;case"eo":a=document.createElement("em"),a.mu("i");break;case"ep":a=document.createElement("strong");break;case"eq":a=document.createElement("code");break;case"et":i.textContent=i.textContent.toLowerCase(),a=i;break;case"eu":i.textContent=i.textContent.toUpperCase(),a=i;break;case"ev":var s=i.textContent.toLowerCase().split(".");s.forEach(function(e,t){var a=e.split(" "),n=!1;a.forEach(function(e,t){""==a[t]||n||(a[t]=a[t][0].toUpperCase()+a[t].slice(1),n=!0)}),s[t]=a.join(" ")}),i.textContent=s.join("."),a=i;break;case"ew":s=i.textContent.toLowerCase().split(".");s.forEach(function(e,t){var a=e.split(" ");a.forEach(function(e,t){""!=a[t]&&(a[t]=a[t][0].toUpperCase()+a[t].slice(1))}),s[t]=a.join(" ")}),i.textContent=s.join("."),a=i;break;case"er":var c=i.parentElement,l=c.mg("[data-cy]:not(.il)")[0];null!=l&&0!=l.mg(".il").length&&t.bk.intersectsNode(l)&&-1!=t.bk.toString().indexOf(l.my())?(a=l,l.ly("data-cy")):a=document.createElement("mark")}if(a){var o=!1;if(1===a.nodeType){if(""==a.innerHTML){var r=i.cloneNode(!0);a.append(r)}else o=!0;n.push(r)}else n.push(a);0==o&&i.replaceWith(a)}}),"er"==e)return;this.u(),this.aw(n)}},by:function(e){if(this.bw=[],this.ai(this.ah(".il"),!0,NodeFilter.SHOW_ELEMENT),0!=this.bw.length)switch(e){case"ek":this.bw.forEach(function(e){e.nodeName+e.className=="DEL"&&e.replaceWith(...e.childNodes)});break;case"el":this.bw.forEach(function(e){e.nodeName+e.className=="SUP"&&e.replaceWith(...e.childNodes)});break;case"em":this.bw.forEach(function(e){e.nodeName+e.className=="SUB"&&e.replaceWith(...e.childNodes)});break;case"en":this.bw.forEach(function(e){e.nodeName+e.className=="EMul"&&e.replaceWith(...e.childNodes)});break;case"eo":this.bw.forEach(function(e){e.nodeName+e.className=="EMi"&&e.replaceWith(...e.childNodes)});break;case"ep":this.bw.forEach(function(e){e.nodeName+e.className=="STRONG"&&e.replaceWith(...e.childNodes)});break;case"eq":this.bw.forEach(function(e){e.nodeName+e.className=="CODE"&&e.replaceWith(...e.childNodes)});break;case"dm":var t=this;return this.bw.forEach(function(e){e.nodeName+e.className=="A"&&t.aw(e)}),void nt("dm",!0);case"es":this.bw.forEach(function(e){null!=e&&0!=e.mg(".il").length&&e.replaceWith(...e.childNodes)})}this.u(),this.bn()},b:function(e){var t=this;if(null==e&&null!=this.bk&&this.bk.commonAncestorContainer!=document){var a=this.bk.commonAncestorContainer;if(1!==a.nodeType||a.md("il")||this.b(a),a.parentElement.md("ik")||ne(a).lo(".il").forEach(function(e){t.b(e)}),!this.bk.collapsed){var n=document.createElement("div");n.append(this.bk.cloneContents()),n.ne("*").forEach(function(e){t.b(e)})}}else if(null!=e&&this.bz()){switch(e.nodeName){case"DEL":this.ar.mg(".hg").ne('.ho[data-cq="ek"]').mu("active");break;case"SUP":this.ar.mg(".hg").ne('.ho[data-cq="el"]').mu("active");break;case"SUB":this.ar.mg(".hg").ne('.ho[data-cq="em"]').mu("active");break;case"EM":e.md("ul")?this.ar.mg(".hg").ne('.ho[data-cq="en"]').mu("active"):e.md("i")&&this.ar.mg(".hg").ne('.ho[data-cq="eo"]').mu("active");break;case"STRONG":this.ar.mg(".hg").ne('.ho[data-cq="ep"]').mu("active");break;case"CODE":this.ar.mg(".hg").ne('.ho[data-cq="eq"]').mu("active");break;case"A":this.ar.mg(".hg").ne('.ho[data-cq="dm"]').mu("active");break;case"MARK":this.ar.mg(".hg").ne('.ho[data-cq="es"]').mu("active")}0!=this.ar.mg(".hg").ne(".ho.active").length&&this.ar.mg(".hg").ne('.ho[data-cq="es"]').mu("active")}},e:function(e,t=!1,a=!0,n=2){switch(e){case"eb":this.w('
    ",t,a);break;case"ec":this.w('
    ",t,a);break;case"ed":this.w('
    ",t,a);break;case"eg":for(var i="",s=0;s';this.w('
      '+i+"
    ",t,a);break;case"ef":for(i="",s=0;s';this.w('
      '+i+"
    ",t,a);break;case"ee":for(i="",s=0;s';this.w('
      '+i+"
    ",t,a);break;case"eh":this.w('
    ",t,a);break;case"ei":this.w('
    ",t,a);break;case"ej":if(0!=ne(".hg .ik section.active").length)return;this.w('
    ',t,a);break;case"dp":for(i="",s=0;s
    ';this.w('
    '+i+"
    ",t,a);break;case"dt":for(i="",s=0;s';this.w('",t,a);break;case"dq":for(i="",s=0;s
    ';this.w('
    '+i+"
    ",t,a);break;case"dr":var c="",l="";for(s=0;s",l+='
    ';this.w('
      '+c+'
    '+l+"
    ",t,a);break;case"ds":this.w('
    ',t,a);break;case"dn":case"dm":case"dk":case"dl":"dm"==e&&(this.ba="BLOCK"),nt(e)}},v:function(e,t){return 0!=e.lv(t).length?e.lv(t):e.mg("section").lv("section").ne(t)},w:function(e,t=!1,a=!0){if(document.activeElement.blur(),0==ne(".hg section.active").length&&ne(".ia > .adiptal-ui > section").ml("focusin"),this.bz())if(t){var n=this.ar.mt("data-cu");this.ar.mx(e.nd().mt({"data-cu":n}).mx()),ne('.ik[data-cu="'+n+'"]').mn()}else this.ar.nc(e),this.ar.lt().mn();else ne(".hg section.active").mz(e),ne(".hg section.active > .ik:last-of-type").mn();this.bj("w"),a&&(this.u(),this.ar.ne(".il:first-child").mf(0).mm())},bb:function(){ne('.hg .ik[data-cr="eb"]').mu("lb"),ne(".ia > .adiptal-ui > section").forEach(function(e){e.ne(':scope > .ik[data-cr="eb"]').mf(0).lx("lb")})},bp:function(e){var t=ne(".hg .ia");0!=t.length&&(null==e||0==e.length?t[0].scrollTop=t[0].scrollHeight:e[0].scrollIntoView({behavior:"smooth"}))},be:async function(e,t=!1,a=!1){var n=await navigator.permissions.query({name:"clipboard-read"});if("denied"!==n.state){var i=await navigator.clipboard.read();for(var s of i){var c="";s.types.includes("text/html")&&!e.target.md("jv")&&0==t?c=await s.getType("text/html"):s.types.includes("text/plain")&&(c=await s.getType("text/plain"),t=!0),""!=c&&(t?this.bm(await c.text(),!0):a?this.bd(await c.text()):this.bm(this.bf(await c.text())))}}else nh.ce({type:"danger",heading:"Enable Clipboard Permission"})},bc:function(e){null==e.mt("data-cy")&&e.ly("style");var t=[...e.attributes].filter(function(t){if(-1==["href","src","data-dir","target","style"].indexOf(t.name)&&(-1==["EMi","EMul"].indexOf(e.nodeName+e.className)||-1==["i","ul"].indexOf(t.value)||"class"!=t.name))return t.name});t.forEach(function(t){e.ly(t.name)})},bf:function(e){var t=this,a=document.createElement("div");a.mw(e);var n=["A","DEL","SUP","SUB","EM","STRONG","CODE","MARK","BR"];return this.bw=[],this.ai(a,!1,NodeFilter.SHOW_ELEMENT),this.bw.forEach(function(e){-1==n.indexOf(e.nodeName)&&null==e.mt("data-cy")?e.replaceWith(...e.childNodes):t.bc(e)}),a.ne("mark:not([data-cy])").mt({"data-cy":"true"}),a.mw()},ak:function(){var e=window.getSelection();e.rangeCount&&(this.bk=e.getRangeAt(0))},aw:function(e,t=!1){if(this.bk=document.createRange(),e instanceof Array){var a=e[0],n=e[e.length-1];this.bk.setStartBefore(a),a==n?this.bk.setEndAfter(a):this.bk.setEndAfter(n)}else this.bk.selectNodeContents(e);this.z().addRange(this.bk),this.b(),t&&this.bk.collapse()},z:function(e=window.getSelection()){return e.removeAllRanges(),e},bm:function(e,t=!1){if(null!=this.bk){if(t)var a=document.createTextNode(e);else{a=document.createElement("div");a.innerHTML=e}if(this.bk.deleteContents(),this.bk.insertNode(a),1===a.nodeType){var n=a.lastChild;a.replaceWith(...a.childNodes),a=n}}this.bj("paste"),this.u(),this.aw(a,!0)},ai:function(e,t=!1,a=NodeFilter.SHOW_ALL){for(var n,i=document.createTreeWalker(e,a);n=i.nextNode();)-1==this.bw.indexOf(n)&&(!t||t&&this.bk.intersectsNode(n)&&this.ah(".ik")==this.ar[0])&&this.bw.push(n)},aj:function(e,t,a){function n(e){if(3==e.nodeType&&e==t)i=!0,c.push(e);else if(3==e.nodeType&&e==a)s=!0,c.push(e);else if(3==e.nodeType)i&&!s&&c.push(e);else for(var l=0,o=e.childNodes.length;!s&&l button").mu("disabled"),a.ne('.hm[data-cp="dd"]').ne(".lh , .li , .lk , .ll").mu("disabled")),t.matches(".hg .ju")&&(a.ne(".lf").mg(".ix").ne(":scope > button").mu("disabled"),a.ne(".lf , .kh").mu("disabled"))}),document.addEventListener("focusout",function(e){var t=e.target;t.matches(".hg .jv")&&(ne(".ho.disabled").lx("disabled"),ne('.hm[data-cp="dd"]').ne(".ho , .lj , .jr").mg(".ix").ne(":scope > button.disabled").lx("disabled"),ne('.hm[data-cp="dd"]').ne(".lh , .li , .lk , .ll").lx("disabled")),t.matches(".hg .ju")&&(ne(".hg .lf").mg(".ix").ne(":scope > button.disabled").lx("disabled"),ne(".lf.disabled , .kh.disabled").lx("disabled"))}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hg ul.checklist button")&&(t.lq().mb("checked"),ng.u())}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".go")){var a=ng.ar;switch(t.mt("data-cq")){case"fr":return"dm"==a.mt("data-cr")&&(ng.ba="BLOCK"),void nt(a.mt("data-cr"),!0);case"fs":a.md("tab")&&a.lx("horizontal").lx("vertical").mu(t.mt("data-cs"));break;case"fn":a.mw("");var n=ng.v(a,".ik:not(:empty)");n.mf(n.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}ng.u()}}),["focusin","click","contextmenu"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.matches(".ia section , .ia section *")&&!t.closest("section").md("active")){var a=ne(".hg .ia section.active");if(t.closest(".hg").ne("section.active").lx("active"),t.closest("section").mu("active"),null!=ng.ar)if(0==ng.ar.mg("section.active").length)delete ng.ar;else{var n=ng.ar.lo("section.active");ng.ar=n.mf(n.length-1)}else if(0!=a.mg("section.active").length){n=a.lo("section.active");ng.ar=n.mf(n.length-1)}ne(document).ml("oj")}t.matches("section.active .ik , section.active .ik *")&&(ng.ar=t.mg(".ik"),ne(document).ml("oj"))})}),document.addEventListener("contextmenu",function(e){var t=e.target;t.matches(".ik section")&&(ng.ar=t.mg(".ik"),ng.ar.mg(".hg").ne("section.active").lx("active"),ng.ar.mg("section").mu("active"),ne(document).ml("oj"))}),["keyup","focusin","focusout","touchmove","touchend","mouseup","contextmenu"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;t.matches(".il , .il *")&&(-1!=["focusin","focusout"].indexOf(e.type)&&ng.u(),"focusout"!=e.type&&(ng.bn(),ng.ak(),ng.b()))})});const observer=new MutationObserver(function(e,t){for(const t of e)t.target.matches('.ik[data-cr="ej"] .ki')&&ne(document).ml("oi")});document.addEventListener("oi",function(e){ne('.ik[data-cr="ej"] .ki').forEach(function(e){[...e.closest("section").classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.closest("section").lx(t)}),[...e.classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.closest("section").mu(t)})})}),observer.observe(document,{attributes:!0,subtree:!0,childList:!0});var nh={ce:async function(e={}){var t="";if(e.hasOwnProperty("heading")&&(t+='
    '+e.heading+"
    "),e.hasOwnProperty("body")&&(t+='
    '+e.body+"
    "),""!=t){e.hasOwnProperty("controllers")&&e.controllers&&(t+='
    ",e.infinite=!0);var a="";e.hasOwnProperty("type")&&(a=e.type,"progress"==a&&(t=''+t,e.infinite=!0));var n="";e.hasOwnProperty("name")&&""!=e.name.trim()&&(n='data-cp="'+e.name+'"'),e.hasOwnProperty("type")&&"success"!=e.type&&"progress"!=e.type&&await this.cg(ne(".jf."+e.type)),e.hasOwnProperty("name")&&await this.cg(ne('.jf[data-cp="'+e.name+'"]')),t='
    "+t+"
    ",await this.cf(t,e)}return!0},cf:async function(e,t){return ne(".je").na(e),t.hasOwnProperty("infinite")&&t.infinite||setTimeout(this.cg,5e3,ne(".jf:first-of-type")),!0},cg:async function(e){return new Promise(function(t){e.mu("la"),setTimeout(function(){e.ma(),t()},150)})},ch:async function(e,t){e.ne(":scope > svg").mq({"--progress":t}),100==t&&setTimeout(function(){e.ne(":scope > :not(div)").ma(),e.na(''),setTimeout(nh.cg,5e3,e)},500)}};document.addEventListener("click",function(e){var t=e.target,a=t.mg(".jf");if(0!=a.length)if(0==a.ne(".kw").length||t.md("jb"))nh.cg(a);else if(t.md("jc")){var n=a.mt("data-cp");switch(n){case"deleteImages":window.parent.postMessage(["adiptal_studio_"+n,window.name,[ng.br.mt("src")]],"*");break;case"approveFile":case"deleteFile":window.parent.postMessage(["adiptal_studio_"+n,window.name],"*")}nh.cg(a)}}),document.addEventListener("mouseover",function(e){if(!(window.innerWidth<768)){var t=e.target;t.matches("[aria-label]:not(.il)")?ne(".ln").mw(t.mt("aria-label")).mr().mq(np(t)):ne(".ln").ms()}}),document.addEventListener("click",function(e){var t=e.target,a=t.parentElement;if(null!=a)if(t.matches(".ix > button:not(.disabled) , .kt > button:not(.disabled)"))a.ne(":scope > ul:first-of-type").mr().mq(no(t)),a.ne(":scope > ul:not(:first-of-type)").ma(),t.mu("active");else if(t.matches(".ix ul button:not(.iu) , .kt ul button:not(.iu)"))document.body.click(),0!=t.mg(".kt").length&&ni.ck(t.mg(".kt"),t.mt("data-cq"));else if(t.matches(".ix ul label:not(.lc)")){var n=t.mg(".ix");n.mz('
    • '+t.lt().mw()+"
    "),n.ne(":scope > ul:last-of-type").mr().mq(no(n.ne(":scope > button"))),n.ne(":scope > ul:not(:last-of-type)").ms()}else if(t.matches(".ix ul label.lc")){n=t.mg(".ix");n.ne(":scope > ul:last-of-type").ma(),n.ne(":scope > ul:last-of-type").mr()}});var ni={ck:function(e,t){this.cj(e);var a=e.ne('[data-cq="'+t+'"]');return 0!=a.length&&(a.mt({"data-ct":!0}),e.ne(":scope > button > span").mw(a.mw())),e.ne("[data-cq]").indexOf(a[0])},ci:function(e){var t=e.ne('[data-ct="true"]');if(0!=t.length)return[t.mt("data-cq"),t.textContent]},cj:function(e,t=""){e.ne("[data-ct]").ly("data-ct");var a=e.ne('[data-cq="'+t+'"]');0!=a.length?(a.mt({"data-ct":!0}),e.ne(":scope > button > span").mw(a.mw())):e.ne(":scope > button > span").mw(e.ne(":scope > button > span").mt("data-cp"))}};document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .gw")){ne(".gw.active").lx("active"),t.mu("active");var a=ne(".hf > .gu");a.mr().mq(nn(t,a))}}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg .accordion > * > button > .il , .hg .tab-heading > li > button > .il")&&t.parentElement.click()}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".gu .gv")){var a=ne(".gw.active").mg(".js"),n=a.mj();switch(t.mt("data-cq")){case"du":case"dv":var i=a.mk(),s=[...i[0].classList].filter(function(e){return/\bst-\S+\b/.test(e)});if(s.forEach(function(e){i[0].classList.remove(e)}),i.ne(".ik").ma(),i.ne(".il").mw(""),i.ly("style").lx("active"),i.ne("[style]").ly("style"),i.ne(".active").lx("active"),i.ne('[class=""]').ly("class"),"du"==t.mt("data-cq")?a.nb(i.mx()):a.nc(i.mx()),0!=ne(".gw.active").mg(".tab").length){a=ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li").mf(n);"du"==t.mt("data-cq")?a.nb('
  • "):a.nc('
  • ")}break;case"dw":case"dx":var c=a[0],l=!1;if("dw"==t.mt("data-cq")){var o=c.lw();0!=o.length&&(o[0].before(c),l=!0)}else{o=c.lt();0!=o.length&&(o[0].after(c),l=!0)}1==l&&0!=ne(".gw.active").mg(".tab").length&&(c=ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li")[n],"dw"==t.mt("data-cq")?c.lw()[0].before(c):c.lt()[0].after(c));break;case"fn":0==ne(".gw.active").mg(".js").mh(".js").length?(ne(".gw.active").mg(".ik").mo(),ne('.gn [data-cq="fn"]').mn()):(0!=ne(".gw.active").mg(".tab").length&&ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li").mf(n).ma(),ne(".gw.active").mg(".js").ma())}ne(".gw.active").lx("active"),ng.u()}}),document.addEventListener("contextmenu",function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .kk img')){var a=ne(".gx");a.mr().mq(nn(t,a)),ng.br=t}else if(0!=t.mg(".ik").length){t=t.mg(".ik");a=ne(".gn");var n=t.mt("data-cr");-1!=["dn","dm"].indexOf(n)?a.ne(".hb").mr():a.ne(".hb").ms(),"dr"==n?(a.ne(".gt").mr(),a.ne(".gt li").ms(),a.ne('.gt li button[data-cr="'+n+'"]').mg("li").mr()):a.ne(".gt").ms(),ne(document).ml("ok",{target:e.target}),a.mr().mq(nn(t,a))}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .jx"))nt("dj");else if(t.matches(".hg .lm"))nt("gb");else if(t.matches(".hg .ge")){ne("script.ge").ma(),t.closest(".ix").ne(":scope > button").ly("data-cm").mw(lang_pack.json[t.mt("data-cs")]);var a=document.createElement("script");a.src=ng.base_url+"assets/langs/"+t.mt("data-cs")+".js",a.classList.add("ge"),document.body.append(a)}}),document.addEventListener("keydown",function(e){var t=e.target;if(t.matches(".il , .il *")){var a=t.mg(".ik"),n=a.mt("data-cr");if("Enter"!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey){if(!("Backspace"!==e.key&&"Delete"!==e.key||""!=t.mw().trim()||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)){if(e.preventDefault(),"ef"==n||"eg"==n)1==a.ne("li").length?(a.mo(),ne('.gn [data-cq="fn"]').mn()):0!=t.mg(".checklist").length?(t.closest("li").lw().ne(".il").mm(),t.closest("li").remove()):(t.lw().mm(),t.remove());else if("dk"==n){var i=!0;if(t.mg("tr").ne(":scope > *").forEach(function(e){""!=e.mw().trim()&&(i=!1)}),i){var s=t.parentElement.lw().ne(".il:not(.ir)");a.ne(".it").mn(),ne('.gm [data-cq="fl"]').mn(),s.mf(s.length-1).mm()}}else 0==a.ne(".il:not(:empty)").length&&(a.mo(),ne('.gn [data-cq="fn"]').mn());ng.u()}}else e.preventDefault(),"ef"!=n&&"eg"!=n||""==t.mw().trim()?"ef"!=n&&"eg"!=n||""!=t.mw().trim()?"dk"==n?(a.ne(".it").mn(),ne('.gm [data-cq="fg"]').mn()):ng.e("ec"):(0!=t.mg(".checklist").length?t.closest("li").remove():t.remove(),0==a.ne("li").length&&a.mw(""),ng.e("ec")):a.md("checklist")?(t.parentElement.nc('
  • '),t.parentElement.lt().ne(".il").mm()):(t.nc('
  • '),t.lt().mm())}}),document.addEventListener("keydown",function(e){var t=e.target;"Escape"!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey?!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey?(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey&&"R"===e.key&&e.preventDefault():"r"===e.key?e.preventDefault():0!=ne(".iy").mi().length&&"Enter"===e.key?ne(".iy").mi().ne(".jc").mf(0).mn():"s"===e.key&&(e.preventDefault(),ng.bo()):0!=ne(".jf").length?nh.cg(ne(".jf")):0!=ne(".ix > ul , .kt > ul").mi().length?document.body.click():0!=ne(".hg .ko").mi().length?ne(".hg .ko .hc").mn():0!=ne(".iy").mi().ne(".jb").length?ne(".iy").mi().ne(".jb").mf(0).mn():0!=ne(".iy").mi().ne(".jc").length&&ne(".iy").mi().ne(".jc").mf(0).mn(),"INPUT"!=t.nodeName&&"TEXTAREA"!=t.nodeName&&(!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey?" "!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(ng.ak(),ng.u()):"z"===e.key?(e.preventDefault(),document.activeElement.blur(),ng.ca()):"y"===e.key&&(e.preventDefault(),document.activeElement.blur(),ng.bl()))}),document.addEventListener("keydown",function(e){var t=e.target;if(t.matches(".il , .il *"))if(!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey)(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey?"L"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="dm"]').mn()):"R"===e.key&&(e.preventDefault(),t.mg(".hg").ne(".kh").mn()):"R"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.altKey&&(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="es"]').mn());else if("a"===e.key)e.preventDefault(),ng.aw(t);else if("c"===e.key||"x"===e.key){e.preventDefault();var a=document.createElement("p");"c"===e.key?a.append(ng.bk.cloneContents()):a.append(ng.bk.extractContents());var n=new ClipboardItem({"text/html":new Blob([a.innerHTML],{type:"text/html"}),"text/plain":new Blob([a.textContent],{type:"text/plain"})});navigator.permissions.query({name:"clipboard-write"}).then(function(e){"granted"===e.state&&navigator.clipboard.write([n]).then(e=>console.warn(e))})}else"b"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="ep"]').mn()):"i"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="eo"]').mn()):"u"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="en"]').mn()):"d"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="ek"]').mn()):"ArrowUp"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="el"]').mn()):"ArrowDown"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="em"]').mn()):"h"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="eq"]').mn()):"l"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="LEFT"]').mn()):"e"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="CENTER"]').mn()):"r"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="RIGHT"]').mn()):"j"===e.key&&(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="JUSTIFY"]').mn())}),document.addEventListener("keydown",function(e){(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey?"H"===e.key?(e.preventDefault(),ng.e("eb")):"P"===e.key?(e.preventDefault(),ng.e("ec")):"B"===e.key?(e.preventDefault(),ng.e("ed")):"U"===e.key?(e.preventDefault(),ng.e("eg")):"O"===e.key?(e.preventDefault(),ng.e("ef")):"C"===e.key&&(e.preventDefault(),ng.e("ee")):(e.ctrlKey||e.metaKey)&&!e.shiftKey&&e.altKey?"p"===e.key?(e.preventDefault(),ng.e("ei")):"h"===e.key&&(e.preventDefault(),ng.e("eh")):"P"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.altKey&&(e.preventDefault(),ng.at=!0,ng.e("ej"))}),document.addEventListener("paste",function(e){e.target.matches(".il , .il *")&&(e.preventDefault(),ng.be(e))}),document.addEventListener("keydown",function(e){ +"v"===e.key&&(e.ctrlKey||e.metaKey)&&e.altKey&&!e.shiftKey?(e.preventDefault(),ng.be(e,!1,!0)):"V"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey&&(e.preventDefault(),ng.be(e,!0))}),document.addEventListener("change",function(e){var t=e.target;t.matches('.iy[data-cp="dn"] .jl')&&(t.files.length>0&&t.files.length<11?window.parent.postMessage(["adiptal_studio_uploadImages",window.name,t.files],"*"):nh.ce({type:"warning",heading:lang_pack.json.image,body:lang_pack.json.maximum_10_files}),t.value="")}),document.addEventListener("click",async function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .jk')){var a=t.lw().ne("input").mv(),n=(new Date).getTime().toString();if(t.lw().ne("input").mv(""),""!=a){await nh.ce({type:"progress",heading:lang_pack.json.loading_image,name:n});var i=new XMLHttpRequest;i.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;t=parseInt(90*t),nh.ch(ne('.jf[data-cp="'+n+'"]'),t)}}),i.addEventListener("readystatechange",function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<400)if(i.response.type.indexOf("image")>-1){var e=new DataTransfer,t=new File([i.response],n+".jpg",{type:i.response.type});e.items.add(t),nh.ch(ne('.jf[data-cp="'+n+'"]'),100),setTimeout(function(){window.parent.postMessage(["adiptal_studio_uploadImages",window.name,e.files],"*")},1e3)}else nh.ce({type:"danger",heading:lang_pack.json.image,body:lang_pack.json.bad_request,name:n});else nh.ce({type:"danger",heading:lang_pack.json.image,body:lang_pack.json.bad_request,name:n})}),i.open("GET",a),i.responseType="blob",i.send()}}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .kk img:not(.active)')){var a=t.mg(".kk");a.ne("img.active").lx("active"),t.mu("active")}}),document.addEventListener("click",function(e){var t=e.target;t.matches('.gy[data-cq="fn"]')&&nh.ce({type:"warning",heading:lang_pack.json.delete_image,body:lang_pack.json.are_you_sure_you_want_to_delete_image,name:"deleteImages",controllers:!0})}),document.addEventListener("click",function(e){var t=e.target;t.matches('.iy[data-cp="dg"] .gj')&&(ne('.iy[data-cp="dn"]').mu("gi"),nt("dn"))}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hm .gg")&&(ne('.iy[data-cp="dn"]').mu("gf"),nt("dn"))}),["keydown","focusout"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.matches(".km input"))if(""!=t.value.trim()&&("Enter"===e.key||" "===e.key||"focusout"==e.type)&&t.lv().length"+t.value.replaceAll(/[^-\.\p{L}\p{N}]/gmu,"").trim().toLowerCase()+"  ×")),t.value="",t.mg(".km").ne("button").length>ng.bv-1&&t.mu("disabled")}else" "===e.key?e.preventDefault():"Backspace"===e.key&&""==t.value.trim()&&t.lw().ma()})}),["keydown","focusin","focusout"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;t.matches(".km input")&&t.mt({style:""}).mt({style:"min-width : calc( "+t.scrollWidth+"px - .25rem )"})})}),document.addEventListener("keydown",function(e){var t=e.target;t.matches(".km input")&&/[^-\.\p{L}\p{N}]/gu.test(e.key)&&e.preventDefault()}),document.addEventListener("click",function(e){var t=e.target;t.matches(".km button")?(t.ls(".disabled").lx("disabled"),t.ls("input").mm(),t.remove()):t.matches(".km")&&t.ne("input").mm()}),document.addEventListener("click",function(e){var t=e.target;t.matches('.iy[data-cp="dg"] .gl')&&t.mg(".iy").ne(".gh").mw(''+s),s="";else if(0!=t.mg(".gf").length){var c="";null!=a.ne("img.active").mt("src")&&(c=a.ne("img.active").mt("src")),ne(document).ml("on",{src:c}),s=""}else i?(ng.ar.ne("img").ma(),ng.ar.na(s),s=""):s='
    '+s+'
    ";break;case"dh":case"di":d=t.mw();ng.bm(d);break;case"dm":s=-1;var l=a.ne(".hd:first-of-type input").mv(),o=a.ne(".hd:nth-of-type(2) input").mv();if(""!=o&&""!=l){var r="";1==ne(".jd span").mt("data-cs")&&(r+='target="_blank"');var d='"+o+"";"INLINE"==ng.ba?i?(l=ng.bk.commonAncestorContainer,l.outerHTML=d,s=""):ng.bm(d):(i||ng.w(''),ng.ar.ly("target").mt({href:l}).ne("span").mw(o),""!=r&&ng.ar.mt({target:"_blank"}),s="")}else nh.ce({type:"danger",heading:lang_pack.json.create_link,body:lang_pack.json.fill_all_credentials});break;case"dk":s=-1;var m=a.ne(".hd input").mv();if(/^\d+$/.test(m)&&m<11){s="";for(var h=0;h"+s+"")}else nh.ce({type:"warning",heading:lang_pack.json.table,body:lang_pack.json.maximum_10_columns});break;case"dl":s=await nr(a.ne(".hd input").mv());break;case"dg":s=-1;o=ne('.iy[data-cp="dg"] .hd input').mv().trim();if(""==o)return void nh.ce({type:"danger",heading:lang_pack.json.set_title});if(0!=ne('.iy[data-cp="dg"] .kt').length){var u=ni.ci(ne('.iy[data-cp="dg"] .kt'));if(null==u)return void nh.ce({type:"danger",heading:lang_pack.json.select_category});ng.bi.title=o,ng.bi.title_url=o.replaceAll(/[^A-Za-z0-9 ]/gm,"").replaceAll(/\s\s+/gm," ").trim().replaceAll(/\s+/gm,"-").toLowerCase().trim(),ng.bi.description=ne('.iy[data-cp="dg"] textarea').mv().trim(),ng.bi.category=u[1],ng.bi.category_index=u[0]}else ng.bi.title=o,ng.bi.title_url=o.replaceAll(/[^A-Za-z0-9 ]/gm,"").replaceAll(/\s\s+/gm," ").trim().replaceAll(/\s+/gm,"-").toLowerCase().trim(),ng.bi.description=ne('.iy[data-cp="dg"] textarea').mv().trim();if(0!=a.ne(".km").length){var g=a.ne(".km button").mk();g.ne("span").ma(),ng.bi.tags=[],g.forEach(function(e){-1==ng.bi.tags.indexOf(e.my().toLowerCase())&&ng.bi.tags.push(e.my().toLowerCase())})}0!=a.ne(".gh img").length?ng.bi.cover_image_url=a.ne(".gh img").mt("src"):ng.bi.cover_image_url="";var p=ne('.hm[data-cp="db"] .kz');return 0==p.ne(".jj").length&&p.na('"}),t.ne(".hd:nth-of-type(2)").nc('
      '+n+"
    ")}a.metadata.hasOwnProperty("tags")&&Number.isInteger(a.metadata.tags)&&(ng.bv=a.metadata.tags,t.ne(".hd:nth-of-type(2)").nc('
    "))}if(0==ne('[href*="highlight.js"] , [src*="highlight.js"]').length){ne("head").mz('');var i=document.createElement("script");i.src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js",document.body.append(i)}a.hasOwnProperty("metadata")&&(a.metadata||a.metadata.constructor===Object)||t.ma(),a.hasOwnProperty("autosave")&&Number.isInteger(a.autosave)&&a.autosave>4999&&(ng.bu.autosave_interval=a.autosave,ne('.jq[data-cq="fx"]').mn()),a.hasOwnProperty("relative_url")&&""!=a.relative_url&&ne("head").mz('');break;case"reset":ne("html").lx("disabled"),ne("base").ma(),ne(".hf").mw(ng.x),delete ng.ap,delete ng.ar,window.parent.postMessage(["adiptal_studio_live",window.name],"*");break;case"enable":ne("html").md("disabled")&&(ne("html").lx("disabled"),ne("base").ma(),ne(".hf").mw(ng.x),delete ng.ap,delete ng.ar,window.parent.postMessage(["adiptal_studio_live",window.name],"*"));break;case"disable":ne("html").md("disabled")||(ne('.iy[data-cp="gc"] .kk span').mw(e.data[1]),ne("html").mu("disabled"),nt("gc"));break;case"toggleTheme":nm(e.data[1]);break;case"addFileOptions":a=e.data[1];if(ng.bi.fileOptions={},a&&a.constructor===Object){ne(".hg .kd").ma(),ne('.hm[data-cp="db"] .kz').mz('
      ');var s=ne(".hg .kd");a.hasOwnProperty("allow_comments")&&(ng.bi.fileOptions.allow_comments=a.allow_comments,s.mz('
    1. ')),a.hasOwnProperty("is_draft")&&(ng.bi.fileOptions.is_draft=a.is_draft,s.mz('
    2. ')),a.hasOwnProperty("is_featured")&&(ng.bi.fileOptions.is_featured=a.is_featured,s.mz('
    3. ')),a.hasOwnProperty("scheduled_at")&&a.scheduled_at.constructor===Object&&(ng.bi.fileOptions.scheduled_at="",a.scheduled_at.readonly?s.mz("
    4. '):(s.mz("
    5. "),a.scheduled_at.hasOwnProperty("min_date")&&a.scheduled_at.hasOwnProperty("max_date")&&(ne('.kd [type="date"]')[0].min=a.scheduled_at.min_date.getFullYear()+"-"+("0"+(a.scheduled_at.min_date.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.min_date.getDate()).slice(-2),ne('.kd [type="date"]')[0].max=a.scheduled_at.max_date.getFullYear()+"-"+("0"+(a.scheduled_at.max_date.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.max_date.getDate()).slice(-2))),a.scheduled_at.hasOwnProperty("value")&&a.scheduled_at.value&&(ne('.kd [type="date"]').mv(a.scheduled_at.value.getFullYear()+"-"+("0"+(a.scheduled_at.value.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.value.getDate()).slice(-2)),ne('.kd [type="time"]').mv(("0"+a.scheduled_at.value.getHours()).slice(-2)+":"+("0"+a.scheduled_at.value.getMinutes()).slice(-2)),ng.bi.fileOptions.scheduled_at=new Date(ne('.kd [type="date"]').mv()+" "+ne('.kd [type="time"]').mv()))),a.hasOwnProperty("approveFile")&&a.approveFile&&s.mz('
    6. "),a.hasOwnProperty("deleteFile")&&a.deleteFile&&s.mz('
    7. ")}break;case"saveFile":ng.bo();break;case"loadFile":var c=!1;a=e.data[1];if(0!=t.length)if(a.hasOwnProperty("title")){if(t.ne(".hd:first-of-type input").mv(a.title),a.hasOwnProperty("description")&&t.ne("textarea").mv(a.description),a.hasOwnProperty("cover_image_url")&&""!=a.cover_image_url&&0!=t.ne(".gh").length&&t.ne(".gh").mw(''),0!=t.ne(".kt").length&&(a.hasOwnProperty("category_index")?-1==ni.ck(t.ne(".kt")[0],a.category_index)&&(c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.undefined_category_index})):(c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_category_index}))),a.hasOwnProperty("tags")&&a.tags.constructor===Array&&0!=t.ne(".km").length){n="";a.tags.forEach(function(e){n+=""}),t.ne(".km").na(n)}}else c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_title});c||(a.hasOwnProperty("content")?(ng.bs(a.content.nd()),t.ne(".jc").mn(),null==ng.bu.reworkCache&&(ng.bu.reworkCache=a.content)):nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_content}));break;case"showToast":await nh.ce(e.data[1]);break;case"hideToast":nh.cg(ne('.jf[data-cp="'+e.data[1]+'"]'));break;case"progressToast":nh.ch(ne('.jf[data-cp="'+e.data[1]+'"]'),e.data[2]);break;case"showMetadata":nt("dg");break;case"manageImages":if(!e.data[1]||e.data[1].constructor!==Array)return;var l=ne('.iy[data-cp="dn"]');ne(".hg .ik img").forEach(function(e){if(0==ne('.iy[data-cp="dn"] .kk img[src*="'+e.mt("src")+'"]').length){var t=e.mt("alt");null==t&&(t="Image "+(l.ne(".jh img").length+1)),l.ne(".jh").mz(''+t+'')}}),e.data[1].forEach(function(e){if(0==ne('.iy[data-cp="dn"] .kk img[src*="'+e+'"]').length){var t="Image "+(l.ne(".jh img").length+1);l.ne(".jh").mz(''+t+'')}}),ne('.iy[data-cp="dn"] .kk img').forEach(function(t){-1==e.data[1].indexOf(t.mt("src"))&&0==ne('.hg .ik img[src*="'+t.mt("src")+'"]').length&&ne(t).ma()}),null!=ng.br&&-1==e.data[1].indexOf(ng.br.mt("src"))&&ne('img[src*="'+ng.br.mt("src")+'"]').mt({src:ng.br.mt("src")+"?reload=true"})}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".kd li > button , .kd li > div button"))if(t.md("deleteFile"))nh.ce({type:"danger",heading:lang_pack.json.delete,body:lang_pack.json.are_you_sure_you_want_to_delete_file,name:"deleteFile",controllers:!0});else if(t.md("approveFile"))nh.ce({type:"info",heading:lang_pack.json.approve,body:lang_pack.json.are_you_sure_you_want_to_approve_file,name:"approveFile",controllers:!0});else if(t.md("jp"))t.lv("input").mv(""),ng.bi.fileOptions.scheduled_at="",nh.ce({heading:lang_pack.json.schedule,body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"});else{var a="Disable";1==t.ne("span").mt("data-cs")?t.ne("span").mt({"data-cs":0}):(t.ne("span").mt({"data-cs":1}),a="Enable"),ng.bi.fileOptions[t.mt("class").split(" ").filter(e=>"iu"!=e)[0]]=t.ne("span").mt("data-cs"),nh.ce({heading:a+" "+t.my(),body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"})}}),document.addEventListener("focusout",function(e){var t=e.target;if(t.matches(".kd li input")){if(!t.mg("li").ne('input[type="date"]')[0].validity.valid||!t.mg("li").ne('input[type="time"]')[0].validity.valid)return;ng.bi.fileOptions.scheduled_at=new Date(ne('.kd [type="date"]').mv()+" "+ne('.kd [type="time"]').mv()),nh.ce({heading:lang_pack.json.schedule,body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"})}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hi")){var a=":not(.hk)";t.matches(".hk")&&(a=".hk"),ne(".hl"+a).mr(),ne(".hl"+a+" .hm").mi().ms(),ne(".hl"+a+' .hm[data-cp="'+t.mt("data-cs")+'"]').mq({display:"flex"})}else if(t.matches(".hj"))t.mg(".hl").ms();else if(t.matches(".hl .hm button:not(.iu)")&&!t.matches(".ix > button")){if(window.innerWidth>=992)return;t.mg(".hl").ms()}}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg tr > .il")&&(ne(".hg tr .active").lx("active"),t.mu("active"),ne(".hg .it").ms(),t.mg(".ik").ne(".it").mr().mq({top:t.mp().top-t.mg(".ik").mp().top+"px"}))}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg .il:not(th):not(td)")&&(ne(".hg .im .active").lx("active"),ne(".hg .it").ms())}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .it")){ne(".gm").mr().mq(nn(t,ne(".gm"),210));var a=ne(".hg .il.active").mg("tr").lq()[0].nodeName;ne(".gm").ne('[data-cq="'+a+'"]').mu("kf"),t.mg(".hg").ne("tr > .active").length>1?ne(".gm .ix:nth-child(-n+3) button").mu("disabled"):ne(".gm .ix:nth-child(-n+3) button").lx("disabled"),1!=t.mg(".hg").ne("tr.active").lq().length?ne('.gm [data-cq="fq"]').mu("disabled"):ne('.gm [data-cq="fq"]').lx("disabled")}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".io")){var a=ng.ar.ne(".im"),n=ne(".hg .il.active").mg("tr"),i=n.mj(),s=n.lq()[0].nodeName,c=t.mt("data-cq"),l="";switch(c){case"THEAD":case"TBODY":case"TFOOT":for(var o=0;o *").length;o++)l+=nz(c,n.ne(":scope > *")[o].innerHTML);c!=s&&(a.ne(s).ne("tr").mf(i).ma(),a.ne(c).mz(""+l+""),a.mg(".ik").ne(".it").ms());break;case"ff":for(o=0;o *").length;o++)l+=nz(s);n.nb(""+l+""),n=n.lw(),ng.bj("fh",[n,i]),n.ne(":scope > :first-of-type").mm();break;case"fg":for(o=0;o *").length;o++)l+=nz(s);n.nc(""+l+""),n=n.lt(),ng.bj("fh",[n,i]),n.ne(":scope > :first-of-type").mm();break;case"fl":if(n.ne("[rowspan]").mu("active"),ne('[data-cq="fp"]').ml("click",{addHistory:!1}),n=a.ne(s).ne("tr").mf(i),n.lv().ne("[rowspan]").forEach(function(e){i<=e.mg("tr").mj()+parseInt(e.mt("rowspan"))-1&&e.mt({rowspan:parseInt(e.mt("rowspan"))-1})}),n.ma(),a.mg(".ik").ne(".it").ms(),0==a.ne("tr").length){a.mg(".ik").mw("");var r=ng.v(a.mg(".ik"),".ik:not(:empty)");r.mf(r.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}}ng.u()}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".ip")){var a=ng.ar.ne(".im"),n=t.mt("data-cq"),i=0;0!=a.ne(".il.active").length&&(i=a.ne(".il.active").mj());var s=a.ne("tr > :nth-of-type("+(i+1)+")");switch(n){case"fi":s.forEach(function(e){e.before(nz(e.mg("tr").lq()[0].nodeName,"",!0).mt({"data-cw":i})[0])}),ng.bj("fk",a.ne("[data-cw]")),a.ne("[data-cw]").ly("data-cw");break;case"fj":s.forEach(function(e){e.after(nz(e.mg("tr").lq()[0].nodeName,"",!0).mt({"data-cw":i})[0])}),ng.bj("fk",a.ne("[data-cw]")),a.ne("[data-cw]").ly("data-cw");break;case"fm":if(s.ne("[colspan]").mu("active"),ne('[data-cq="fo"]').ml("click",{addHistory:!1}),s.forEach(function(e){var t=e.mj(),a=e.lv("[colspan]").mf(0);0!=a.length&&t<=a.mj()+parseInt(a.mt("colspan"))-1&&a.mt({colspan:parseInt(a.mt("colspan"))-1})}),s.ma(),a.mg(".ik").ne(".it").ms(),0==a.ne(".il").length){a.mg(".ik").mw("");var c=ng.v(a.mg(".ik"),".ik:not(:empty)");c.mf(c.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}}ng.u()}}),document.addEventListener("click",function(e){e.target.md("jy")&&nm()}),document.addEventListener("click",function(e){e.target.md("hp")&&("ej"==e.target.mt("data-cq")&&(ng.at=!0),ng.e(e.target.mt("data-cq")),ng.bn())}),document.addEventListener("click",function(e){var t=e.target,a=ng.ah(".il");if(!t.md("disabled")&&ng.bz()&&null!=ng.bk&&null!=a)if(t.md("lf"))if(a.md("ju"))nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied});else{var n=t.mt("data-cq");0!=a.mg(".checklist").length?"LEFT"==n?a.mg("li").ly("data-align"):a.mg("li").mt({"data-align":n}):"LEFT"==n?a.ly("data-align"):a.mt({"data-align":n}),a.focus(),ng.u()}else t.md("kh")?a.md("ju")?nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied}):(0!=a.mg(".checklist").length?"rtl"==a.mg("li").mt("data-dir")?a.mg("li").ly("data-dir"):a.mg("li").mt({"data-dir":"rtl"}):"rtl"==a.mt("data-dir")?a.ly("data-dir"):a.mt({"data-dir":"rtl"}),a.focus(),ng.u()):t.matches(".ho:not(.active)")?a.md("jv")?nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied}):ng.ac(t.mt("data-cq")):t.matches(".ho.active")&&ng.by(t.mt("data-cq"))}),["keyup","focusin"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.md("il")){var a=t.mg(".hg"),n=a.ne(".kh");null==t.mt("data-dir")&&0==t.mg("li[data-dir]").length?n.lx("active"):n.mu("active");var i=t.mt("data-align");null==i&&(i="LEFT"),a.ne(".ld").mw(a.ne('.lf[data-cq="'+i+'"]').mw())}})}),document.addEventListener("click",function(e){var t=e.target;t.md("disabled")||(t.md("ks")?ng.ca():t.md("kr")&&ng.bl())}); \ No newline at end of file diff --git a/docs/plugin/assets/js/iframe.min.js b/docs/plugin/assets/js/iframe.min.js new file mode 100644 index 00000000..f4787de3 --- /dev/null +++ b/docs/plugin/assets/js/iframe.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +if(!adiptal)var adiptal={};adiptal.studio={settings:{},init:function(e){ne(e).mt({src:ne(e).mt("data-src")}).ly("data-src")},reset:function(e){e.contentWindow.postMessage(["reset"],"*")},enable:function(e){e.contentWindow.postMessage(["enable"],"*")},disable:function(e,t="Anonymous user"){e.contentWindow.postMessage(["disable",t],"*")},toggleTheme:function(e,t){e.contentWindow.postMessage(["toggleTheme",t],"*")},addFileOptions:function(e,t){e.contentWindow.postMessage(["addFileOptions",t],"*")},saveFile:function(e){e.contentWindow.postMessage(["saveFile"],"*")},loadFile:function(e,t){e.contentWindow.postMessage(["loadFile",t],"*")},showToast:function(e,t){e.contentWindow.postMessage(["showToast",t],"*")},hideToast:function(e,t){e.contentWindow.postMessage(["hideToast",t],"*")},progressToast:function(e,t,a){e.contentWindow.postMessage(["progressToast",t,a],"*")},showMetadata:function(e){e.contentWindow.postMessage(["showMetadata"],"*")},manageImages:function(e,t){e.contentWindow.postMessage(["manageImages",t],"*")}},window.addEventListener("message",e=>{switch(e.data[0]){case"adiptal_studio_live":case"adiptal_studio_approveFile":case"adiptal_studio_deleteFile":case"adiptal_studio_lastActive":"adiptal_studio_live"==e.data[0]&&ne('[name="'+e.data[1]+'"]')[0].contentWindow.postMessage(["init",adiptal.studio.settings[e.data[1]]],"*"),ne(document).ml(e.data[0],{0:[e.data[1]]});break;case"adiptal_studio_uploadImages":case"adiptal_studio_deleteImages":case"adiptal_studio_saveFile":ne(document).ml(e.data[0],{0:[e.data[1],e.data[2]]});break;case"adiptal_studio_fullscreen":ne('[name="'+e.data[1]+'"]').mb("fullscreen")}}); \ No newline at end of file diff --git a/docs/plugin/assets/langs/arabic.js b/docs/plugin/assets/langs/arabic.js new file mode 100644 index 00000000..710f099b --- /dev/null +++ b/docs/plugin/assets/langs/arabic.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'حذف العلامة', + 'delete_cover_image': 'حذف صورة الغلاف', + 'strike_through': 'يتوسطه خط', + 'superscript': 'نص علوي', + 'subscript': 'نص سفلي', + 'inline_code': 'كود مضمن', + 'bold': 'عريض', + 'italic': 'مائل', + 'underline': 'تحته خط', + 'inline_link': 'رابط مضمن', + 'remove_format': 'إزالة التنسيق', + 'align': 'محاذاة', + 'left': 'يسار', + 'center': 'وسط', + 'right': 'يمين', + 'justify': 'ملئ السطر', + 'right_to_left': 'من اليمين إلى اليسار', + 'undo': 'تراجع', + 'redo': 'إعادة', + 'insert': 'إدراج', + 'menu': 'القائمة', + 'website': 'موقع الويب', + 'key_shortcuts': 'اختصارات لوحة المفاتيح', + 'toggle_theme': 'تبديل السمة', + 'previous': 'السابق', + 'next': 'التالي', + 'options': 'خيارات', + 'title': 'العنوان', + 'settings': 'الإعدادات', + 'font_family': 'عائلة الخط', + 'color': 'لون', + 'highlight': 'تمييز', + 'font_case': 'حالة الخط', + 'space': 'مسافة', + 'new_line': 'سطر جديد', + 'emojis': 'رموز تعبيرية', + 'special_characters': 'أحرف خاصة', + 'date_time': 'التاريخ والوقت', + 'find_and_replace': 'البحث والاستبدال', + 'fullscreen': 'ملئ الشاشة', + 'blue': 'أزرق', + 'red': 'أحمر', + 'yellow': 'أصفر', + 'green': 'أخضر', + 'grey_3': 'رمادي 3', + 'grey_2': 'رمادي 2', + 'grey': 'رمادي', + 'secondary': 'ثانوي', + 'pick_color': 'اختيار اللون', + 'delete': 'حذف', + 'close': 'إغلاق', + 'find_previous': 'العثور على السابق', + 'find_next': 'العثور على التالي', + 'refresh_search': 'تحديث البحث', + 'search_filters': 'مرشحات البحث', + 'replace_options': 'خيارات الاستبدال', + 'replace_format': 'تنسيق الاستبدال', + 'edit': 'تحرير', + 'move': 'تحريك', + 'clone': 'استنساخ', + 'move_section': 'نقل القسم', + 'add_section': 'إضافة قسم', + 'delete_section': 'حذف القسم', + 'upload_image': 'تحميل الصورة', + 'caption': 'التعليق', + 'citation': 'اقتباس', + 'heading': 'عنوان', + 'paragraph': 'فقرة', + 'paste': 'لصق', + 'text_styling': 'تنسيق النص', + 'styling_cannot_be_applied': 'لا يمكن تطبيق التنسيق', + 'media_embed': 'تضمين الوسائط', + 'bad_request': 'طلب خاطئ', + 'empty_file': 'ملف فارغ', + 'set_content': 'تعيين المحتوى', + 'this_changes_will_be_applied_on_save': 'سيتم تطبيق هذه التغييرات عند الحفظ', + 'image': 'صورة', + 'maximum_10_files': 'الحد الأقصى للملفات هو 10', + 'loading_image': 'جاري التحميل', + 'delete_image': 'حذف الصورة', + 'are_you_sure_you_want_to_delete_image': 'هل أنت متأكد أنك تريد حذف الصورة؟', + 'create_link': 'إنشاء رابط', + 'fill_all_credentials': 'املأ جميع بيانات الاعتماد', + 'table': 'جدول', + 'maximum_10_columns': 'الحد الأقصى للأعمدة هو 10', + 'select_category': 'اختر الفئة', + 'set_title': 'تعيين العنوان', + 'click_continue_to_save': 'انقر على المتابعة للحفظ', + 'undefined_category_index': 'غير معرف: [category_index]', + 'missing_category_index': 'مفقود: [category_index]', + 'missing_title': 'مفقود: [title]', + 'missing_content': 'مفقود: [content]', + 'are_you_sure_you_want_to_delete_file': 'هل أنت متأكد أنك تريد حذف الملف؟', + 'approve': 'الموافقة', + 'are_you_sure_you_want_to_approve_file': 'هل أنت متأكد أنك تريد الموافقة على الملف؟', + 'schedule': 'جدولة', + 'autosave_enabled': 'تم تمكين الحفظ التلقائي', + 'autosave_disabled': 'تم تعطيل الحفظ التلقائي', + 'import': 'استيراد', + 'import_json_file': 'استيراد ملف .json', + 'import_csv_file': 'استيراد ملف .csv', + 'cancel': 'إلغاء', + 'ok': 'موافق', + 'add_cover_image': 'صورة الغلاف', + 'properties': 'خصائص', + 'link': 'رابط', + 'save': 'حفظ', + 'blockquote': 'اقتباس', + 'html_embed': 'تضمين HTML', + 'preformatted': 'منسق مسبقًا', + 'unordered_list': 'قائمة غير مرتبة', + 'ordered_list': 'قائمة مرتبة', + 'check_list': 'قائمة التحقق', + 'link_button': 'زر الرابط', + 'columns': 'أعمدة', + 'carousel': 'دائري', + 'accordion': 'أكورديون', + 'tab': 'علامة التبويب', + 'container': 'حاوية', + 'page_break': 'فاصل الصفحات', + 'copy': 'نسخ', + 'clear': 'مسح', + 'tags': 'العلامات', + 'lower_case': 'حالة صغيرة', + 'upper_case': 'حالة كبيرة', + 'title_case': 'حالة العنوان', + 'sentence_case': 'حالة الجملة.', + 'view': 'عرض', + 'find': 'بحث', + 'replace': 'استبدال', + 'match_case': 'مطابقة الحالة', + 'match_whole_word_only': 'مطابقة الكلمة الكاملة فقط', + 'replace_all': 'استبدال الكل', + 'new': 'جديد', + 'rework': 'إعادة العمل', + 'export': 'تصدير', + 'preview': 'معاينة', + 'print': 'طباعة', + 'output': 'إخراج', + 'horizontal': 'أفقي', + 'vertical': 'عمودي', + 'merge': 'دمج', + 'import_csv': 'استيراد CSV', + 'style': 'نمط', + 'header': 'رأس', + 'body': 'جسم', + 'footer': 'تذييل', + 'add_row_above': 'إضافة صف أعلى', + 'add_row_below': 'إضافة صف أسفل', + 'delete_row': 'حذف الصف', + 'add_column_left': 'إضافة عمود إلى اليسار', + 'add_column_right': 'إضافة عمود إلى اليمين', + 'delete_column': 'حذف العمود', + 'before': 'قبل', + 'after': 'بعد', + 'width': 'عرض', + 'description': 'الوصف', + 'continue': 'استمر', + 'file_info': 'معلومات الملف', + 'images': 'الصور', + 'add_image': 'إضافة صورة', + 'edit_disabled': 'تحرير معطل', + 'components': 'المكونات', + 'text': 'نص', + 'list': 'قائمة', + 'format': 'تنسيق', + 'read': 'قراءة', + 'sections': 'الأقسام', + 'blocks': 'الكتل', + 'words': 'الكلمات', + 'characters_no_spaces': 'الأحرف ( بدون مسافات )', + 'characters_with_spaces': 'الأحرف ( مع المسافات )', + 'block_quote': 'اقتباس', + 'category': 'الفئة', + 'comments': 'التعليقات', + 'draft': 'مسودة', + 'feature': 'ميزة', + 'autosave': 'حفظ تلقائي', + 'search': 'بحث', + 'split': 'تقسيم', + 'smileys_emotion': 'الابتسامات والعواطف', + 'people_body': 'الناس والجسم', + 'component': 'المكون', + 'animals_nature': 'الحيوانات والطبيعة', + 'food_drink': 'الطعام والشراب', + 'travel_places': 'السفر والأماكن', + 'activities': 'الأنشطة', + 'objects': 'الأشياء', + 'symbols': 'الرموز', + 'flags': 'الأعلام', + 'latin': 'اللاتينية', + 'greek': 'اليونانية', + 'punctuation_more': 'الترقيم والمزيد', + 'math': 'الرياضيات', + 'currency': 'العملة', + 'rows': 'الصفوف', + 'cells': 'الخلايا', + 'new_tab': 'علامة تبويب جديدة', + 'categories': 'الفئات', + 'file_edited_by': 'يتم تحرير الملف بواسطة', + 'light_mode': 'وضع الإضاءة', + 'st-dark-mode': 'وضع الظلام', + 'set_date' : 'تحديد التاريخ', + 'set_time' : 'تحديد الوقت', + 'upgrade_n_icon' : ' ترقية الخطة' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/chinese.js b/docs/plugin/assets/langs/chinese.js new file mode 100644 index 00000000..fd80ac79 --- /dev/null +++ b/docs/plugin/assets/langs/chinese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + "delete_tag": "删除标签", + "delete_cover_image": "删除封面图片", + "strike_through": "删除线", + "superscript": "上标", + "subscript": "下标", + "inline_code": "行内代码", + "bold": "加粗", + "italic": "斜体", + "underline": "下划线", + "inline_link": "行内链接", + "remove_format": "移除格式", + "align": "对齐", + "left": "左对齐", + "center": "居中", + "right": "右对齐", + "justify": "两端对齐", + "right_to_left": "从右到左", + "undo": "撤销", + "redo": "重做", + "insert": "插入", + "menu": "菜单", + "website": "网站", + "key_shortcuts": "快捷键", + "toggle_theme": "切换主题", + "previous": "上一个", + "next": "下一个", + "options": "选项", + "title": "标题", + "settings": "设置", + "font_family": "字体", + "color": "颜色", + "highlight": "高亮", + "font_case": "字母大小写", + "space": "空格", + "new_line": "新行", + "emojis": "表情符号", + "special_characters": "特殊字符", + "date_time": "日期时间", + "find_and_replace": "查找和替换", + "fullscreen": "全屏", + "blue": "蓝色", + "red": "红色", + "yellow": "黄色", + "green": "绿色", + "grey_3": "灰色3", + "grey_2": "灰色2", + "grey": "灰色", + "secondary": "次要", + "pick_color": "选择颜色", + "delete": "删除", + "close": "关闭", + "find_previous": "查找上一个", + "find_next": "查找下一个", + "refresh_search": "刷新搜索", + "search_filters": "搜索过滤器", + "replace_options": "替换选项", + "replace_format": "替换格式", + "edit": "编辑", + "move": "移动", + "clone": "复制", + "move_section": "移动段落", + "add_section": "添加段落", + "delete_section": "删除段落", + "upload_image": "上传图片", + "caption": "图片标题", + "citation": "引用", + "heading": "标题", + "paragraph": "段落", + "paste": "粘贴", + "text_styling": "文本样式", + "styling_cannot_be_applied": "无法应用样式", + "media_embed": "媒体嵌入", + "bad_request": "错误请求", + "empty_file": "空文件", + 'set_content': '设置内容', + 'this_changes_will_be_applied_on_save': '此更改将在保存时应用', + 'image': '图片', + 'maximum_10_files': '最多 10 个文件', + 'loading_image': '正在加载图片', + 'delete_image': '删除图片', + 'are_you_sure_you_want_to_delete_image': '您确定要删除图片吗?', + 'create_link': '创建链接', + 'fill_all_credentials': '填写所有凭据', + 'table': '表格', + 'maximum_10_columns': '最多 10 列', + 'select_category': '选择分类', + 'set_title': '设置标题', + 'click_continue_to_save': '点击继续保存', + 'undefined_category_index': '未定义:[category_index]', + 'missing_category_index': '缺少:[category_index]', + 'missing_title': '缺少:[title]', + 'missing_content': '缺少:[content]', + 'are_you_sure_you_want_to_delete_file': '您确定要删除文件吗?', + 'approve': '批准', + 'are_you_sure_you_want_to_approve_file': '您确定要批准文件吗?', + 'schedule': '安排', + 'autosave_enabled': '自动保存已启用', + 'autosave_disabled': '自动保存已禁用', + 'import': '导入', + 'import_json_file': '导入 .json 文件', + 'import_csv_file': '导入 .csv 文件', + 'cancel': '取消', + 'ok': '确定', + 'add_cover_image': '封面图片', + 'properties': '属性', + 'link': '链接', + 'save': '保存', + 'blockquote': '块引用', + 'html_embed': 'HTML 嵌入', + 'preformatted': '预格式化', + 'unordered_list': '无序列表', + 'ordered_list': '有序列表', + 'check_list': '复选列表', + 'link_button': '链接按钮', + 'columns': '列', + 'carousel': '轮播图', + 'accordion': '手风琴', + 'tab': '选项卡', + 'container': '容器', + 'page_break': '分页符', + 'copy': '复制', + 'clear': '清除', + 'tags': '标签', + 'lower_case': '小写', + 'upper_case': '大写', + 'title_case': '首字母大写', + 'sentence_case': '句首大写', + 'view': '查看', + 'find': '查找', + 'replace': '替换', + 'match_case': '区分大小写', + 'match_whole_word_only': '全字匹配', + 'replace_all': '全部替换', + 'new': '新建', + 'rework': '重做', + 'export': '导出', + 'preview': '预览', + 'print': '打印', + 'output': '输出', + 'horizontal': '水平', + 'vertical': '垂直', + 'merge': '合并', + 'import_csv': '导入 CSV', + 'style': '样式', + 'header': '页眉', + 'body': '正文', + 'footer': '页脚', + 'add_row_above': '在上方添加行', + 'add_row_below': '在下方添加行', + 'delete_row': '删除行', + 'add_column_left': '在左侧添加列', + 'add_column_right': '在右侧添加列', + 'delete_column': '删除列', + 'before': '前面', + 'after': '后面', + 'width': '宽度', + 'description': '描述', + 'continue': '继续', + 'file_info': '文件信息', + 'images': '图片', + 'add_image': '添加图片', + 'edit_disabled': '禁止编辑', + 'components': '组件', + 'text': '文本', + 'list': '列表', + 'format': '格式', + 'read': '阅读', + 'sections': '章节', + 'blocks': '块', + 'words': '单词', + 'characters_no_spaces': '字符(不含空格)', + 'characters_with_spaces': '字符(包含空格)', + 'block_quote': '引用块', + 'category': '类别', + 'comments': '评论', + 'draft': '草稿', + 'feature': '特色', + 'autosave': '自动保存', + 'search': '搜索', + 'split': '分隔', + 'smileys_emotion': '表情符号', + 'people_body': '人物与身体', + 'component': '组件', + 'animals_nature': '动物与自然', + 'food_drink': '食品和饮料', + 'travel_places': '旅游和地点', + 'activities': '活动', + 'objects': '物品', + 'symbols': '符号', + 'flags': '旗帜', + 'latin': '拉丁', + 'greek': '希腊', + 'punctuation_more': '标点符号和更多', + 'math': '数学', + 'currency': '货币', + 'rows': '行', + 'cells': '单元格', + 'new_tab': '新标签页', + 'categories': '分类', + 'file_edited_by': '文件正在被编辑', + 'light_mode': '亮色模式', + 'st-dark-mode': '暗色模式', + 'set_date' : '设置日期', + 'set_time' : '设置时间', + 'upgrade_n_icon' : ' 升级计划' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/english.js b/docs/plugin/assets/langs/english.js new file mode 100644 index 00000000..02b80636 --- /dev/null +++ b/docs/plugin/assets/langs/english.js @@ -0,0 +1,297 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +var lang_pack = {}; + +lang_pack.json = { + 'delete_tag': 'Delete Tag', + 'delete_cover_image': 'Delete Cover Image', + 'strike_through': 'Strike Through', + 'superscript': 'Superscript', + 'subscript': 'Subscript', + 'inline_code': 'Inline Code', + 'bold': 'Bold', + 'italic': 'Italic', + 'underline': 'Underline', + 'inline_link': 'Inline Link', + 'remove_format': 'Remove Format', + 'align': 'Align', + 'left': 'Left', + 'center': 'Center', + 'right': 'Right', + 'justify': 'Justify', + 'right_to_left': 'Right to Left', + 'undo': 'Undo', + 'redo': 'Redo', + 'insert': 'Insert', + 'menu': 'Menu', + 'website': 'Website', + 'key_shortcuts': 'Key Shortcuts', + 'toggle_theme': 'Toggle Theme', + 'previous': 'Previous', + 'next': 'Next', + 'options': 'Options', + 'title': 'Title', + 'settings': 'Settings', + 'font_family': 'Font Family', + 'color': 'Color', + 'highlight': 'Highlight', + 'font_case': 'Font Case', + 'space': 'Space', + 'new_line': 'New Line', + 'emojis': 'Emojis', + 'special_characters': 'Special Characters', + 'date_time': 'Date Time', + 'find_and_replace': 'Find and Replace', + 'fullscreen': 'Fullscreen', + 'blue': 'Blue', + 'red': 'Red', + 'yellow': 'Yellow', + 'green': 'Green', + 'grey_3': 'Grey 3', + 'grey_2': 'Grey 2', + 'grey': 'Grey', + 'secondary': 'Secondary', + 'pick_color': 'Pick Color', + 'delete': 'Delete', + 'close': 'Close', + 'find_previous': 'Find Previous', + 'find_next': 'Find Next', + 'refresh_search': 'Refresh Search', + 'search_filters': 'Search Filters', + 'replace_options': 'Replace Options', + 'replace_format': 'Replace Format', + 'edit': 'Edit', + 'drag_move': 'Drag to move', + 'drag_clone': 'Drag to clone', + 'move_section': 'Move Section', + 'add_section': 'Add Section', + 'delete_section': 'Delete Section', + + + 'upload_image': 'Upload Image', + 'caption': 'Caption', + 'citation': 'Citation', + 'heading': 'Heading', + 'paragraph': 'Paragraph', + 'paste': 'Paste', + 'text_styling': 'Text Styling', + 'styling_cannot_be_applied': 'Styling cannot be applied', + 'media_embed': 'Media Embed', + 'bad_request': 'Bad Request', + 'empty_file': 'Empty File', + 'set_content': 'Set Content', + 'this_changes_will_be_applied_on_save': 'This changes will be applied on save', + 'image': 'Image', + 'maximum_10_files': 'Maximum 10 files', + 'loading_image': 'Loading Image', + 'delete_image': 'Delete Image', + 'are_you_sure_you_want_to_delete_image': 'Are you sure you want to delete image ?', + 'create_link': 'Create Link', + 'link_inside_link': 'Cannot create link inside link', + 'fill_all_credentials': 'Fill all credentials', + 'table': 'Table', + 'maximum_10_columns': 'Maximum 10 columns', + 'select_category': 'Select Category', + 'set_title': 'Set Title', + 'click_continue_to_save': 'Click Continue to save', + 'undefined_category_index': 'Undefined : [category_index]', + 'missing_category_index': 'Missing : [category_index]', + 'missing_title': 'Missing : [title]', + 'missing_content': 'Missing : [content]', + 'are_you_sure_you_want_to_delete_file': 'Are you sure you want to delete file ?', + 'approve': 'Approve', + 'are_you_sure_you_want_to_approve_file': 'Are you sure you want to approve file ?', + 'schedule': 'Schedule', + 'autosave_enabled': 'Autosave Enabled', + 'autosave_disabled': 'Autosave Disabled', + 'import': 'Import', + 'import_json_file': 'Import .json file', + 'import_csv_file': 'Import .csv file', + 'cancel': 'Cancel', + 'ok': 'Ok', + 'add_cover_image': 'Cover Image', + 'properties': 'Properties', + 'link': 'Link', + 'save': 'Save', + 'blockquote': 'Blockquote', + 'html_embed': 'Html Embed', + 'preformatted': 'Preformatted', + + + 'unordered_list': 'Unordered List', + 'ordered_list': 'Ordered List', + 'check_list': 'Check List', + 'link_button': 'Link Button', + 'columns': 'Columns', + 'carousel': 'Carousel', + 'accordion': 'Accordion', + 'tab': 'Tab', + 'container': 'Container', + 'page_break': 'Page Break', + 'copy': 'Copy', + 'clear': 'Clear', + 'tags': 'Tags', + 'lower_case': 'lower case', + 'upper_case': 'UPPER CASE', + 'title_case': 'Title Case', + 'sentence_case': 'Sentence case.', + 'view': 'View', + 'find': 'Find', + 'replace': 'Replace', + 'match_case': 'Match case', + 'match_whole_word_only': 'Match whole word only', + 'replace_all': 'Replace All', + 'new': 'New', + 'rework': 'Rework', + 'export': 'Export', + 'preview': 'Preview', + 'print': 'Print', + 'output': 'Output', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Merge', + 'import_csv': 'Import CSV', + 'style': 'Style', + 'header': 'Header', + 'body': 'Body', + 'footer': 'Footer', + 'add_row_above': 'Add Row Above', + 'add_row_below': 'Add Row Below', + 'delete_row': 'Delete Row', + 'add_column_left': 'Add Column Left', + 'add_column_right': 'Add Column Right', + 'delete_column': 'Delete Column', + 'before': 'Before', + 'after': 'After', + 'width': 'Width', + + + 'description': 'Description', + 'continue': 'Continue', + 'file_info': 'File Info', + 'images': 'Images', + 'add_image': 'Add Image', + 'edit_disabled': 'Edit Disabled', + 'components': 'Components', + 'text': 'Text', + 'list': 'List', + 'format': 'Format', + 'read': 'Read', + 'sections': 'Sections', + 'blocks': 'Blocks', + 'words': 'Words', + 'characters_no_spaces': 'Characters ( no spaces )', + 'characters_with_spaces': 'Characters ( with spaces )', + 'block_quote': 'Block Quote', + 'category': 'Category', + 'comments': 'Comments', + 'draft': 'Draft', + 'feature': 'Feature', + 'autosave': 'Autosave', + 'search': 'Search', + 'light_mode': 'Light Mode', + 'st-dark-mode': 'Dark Mode', + 'split': 'Split', + 'smileys_emotion': 'Smileys & Emotion', + 'people_body': 'People & Body', + 'component': 'Component', + 'animals_nature': 'Animals & Nature', + 'food_drink': 'Food & Drink', + 'travel_places': 'Travel & Places', + 'activities': 'Activities', + 'objects': 'Objects', + 'symbols': 'Symbols', + 'flags': 'Flags', + 'latin': 'Latin', + 'greek': 'Greek', + 'punctuation_more': 'Punctuation & More', + 'math': 'Math', + 'currency': 'Currency', + 'rows': 'Rows', + 'cells': 'Cells', + 'new_tab': 'New Tab', + 'categories': 'Categories', + 'file_edited_by': 'File is being edited by', + + + 'font_size': 'Font Size', + 'font_weight': 'Font Weight', + 'style' : 'Style', + 'set_date' : 'Set Date', + 'set_time' : 'Set Time', + 'upgrade_n_icon' : ' Upgrade Plan', + 'english' : 'English', + 'hindi' : 'हिंदी', + 'chinese' : '中文', + 'spanish' : 'Español', + 'portuguese' : 'Português', + 'russian' : 'Русский', + 'french' : 'Français', + 'german' : 'Allemand', + 'japanese' : '日本語', + 'arabic' : 'العربية', + + 'typography' : 'Typography', + 'background' : 'Background', + 'customize' : 'Customize', + 'layers' : 'Layers', + 'toggle_collapse' : 'Toggle All', + 'section' : 'Section', + 'resolution' : 'Resolution', + 'classes' : 'Classes', + 'add_class' : 'Add Class', + 'remove_class' : 'Remove Class', + 'property' : 'Property', + 'condition' : 'Condition', + 'value' : 'Value', + 'portrait' : 'Portrait', + // '' : '', +}; + +lang_pack.label = function( key ){ + return 'data-cn="'+ key +'" aria-label="'+ lang_pack.json[ key ] +'"'; +} + +lang_pack.text = function( key ){ + return 'data-cm="'+ key +'">'+ lang_pack.json[ key ]; +} + +lang_pack.change = function(){ + if( lang_pack.new_json != undefined ) + { + Object.keys( lang_pack.new_json ).forEach(function(i){ + lang_pack.json[i] = lang_pack.new_json[i]; + }); + } + + ne( '[data-cn]' ).forEach(function(i){ + i.mt({ + 'aria-label' : lang_pack.json[ i.mt( 'data-cn' ) ] + }); + }); + + ne( '[data-cm]' ).forEach(function(i){ + var nodes = i.childNodes; + if( nodes.length != 0 ) + { + nodes[0].remove(); + } + + i.na( lang_pack.json[ i.mt( 'data-cm' ) ] ); + }); +}; + +document.addEventListener( 'DOMContentLoaded' , function(){ + lang_pack.change(); +}); + +try { + lang_pack.change(); +} catch (error) { + console.warn(error); +} \ No newline at end of file diff --git a/docs/plugin/assets/langs/french.js b/docs/plugin/assets/langs/french.js new file mode 100644 index 00000000..67999e2e --- /dev/null +++ b/docs/plugin/assets/langs/french.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Supprimer la balise', + 'delete_cover_image': "Supprimer l'image de couverture", + 'strike_through': 'Barrer', + 'superscript': 'Exposant', + 'subscript': 'Indice', + 'inline_code': 'Code en ligne', + 'bold': 'Gras', + 'italic': 'Italique', + 'underline': 'Souligné', + 'inline_link': 'Lien en ligne', + 'remove_format': 'Supprimer le format', + 'align': 'Aligner', + 'left': 'Gauche', + 'center': 'Centre', + 'right': 'Droite', + 'justify': 'Justifier', + 'right_to_left': 'De droite à gauche', + 'undo': 'Annuler', + 'redo': 'Rétablir', + 'insert': 'Insérer', + 'menu': 'Menu', + 'website': 'Site web', + 'key_shortcuts': 'Raccourcis clavier', + 'toggle_theme': 'Basculer le thème', + 'previous': 'Précédent', + 'next': 'Suivant', + 'options': 'Options', + 'title': 'Titre', + 'settings': 'Paramètres', + 'font_family': 'Police de caractères', + 'color': 'Couleur', + 'highlight': 'Surligner', + 'font_case': 'Cas de police', + 'space': 'Espace', + 'new_line': 'Nouvelle ligne', + 'emojis': 'Emojis', + 'special_characters': 'Caractères spéciaux', + 'date_time': 'Date et heure', + 'find_and_replace': 'Rechercher et remplacer', + 'fullscreen': 'Plein écran', + 'blue': 'Bleu', + 'red': 'Rouge', + 'yellow': 'Jaune', + 'green': 'Vert', + 'grey_3': 'Gris 3', + 'grey_2': 'Gris 2', + 'grey': 'Gris', + 'secondary': 'Secondaire', + 'pick_color': 'Choisir une couleur', + 'delete': 'Supprimer', + 'close': 'Fermer', + 'find_previous': 'Rechercher précédent', + 'find_next': 'Rechercher suivant', + 'refresh_search': 'Actualiser la recherche', + 'search_filters': 'Filtres de recherche', + 'replace_options': 'Options de remplacement', + 'replace_format': 'Format de remplacement', + 'edit': 'Modifier', + 'move': 'Déplacer', + 'clone': 'Cloner', + 'move_section': 'Déplacer la section', + 'add_section': 'Ajouter une section', + 'delete_section': 'Supprimer la section', + 'upload_image': 'Télécharger une image', + 'caption': 'Légende', + 'citation': 'Citation', + 'heading': 'Titre', + 'paragraph': 'Paragraphe', + 'paste': 'Coller', + 'text_styling': 'Mise en forme du texte', + 'styling_cannot_be_applied': 'La mise en forme ne peut pas être appliquée', + 'media_embed': 'Intégration de médias', + 'bad_request': 'Requête incorrecte', + 'empty_file': 'Fichier vide', + 'set_content': 'Définir le contenu', + 'this_changes_will_be_applied_on_save': "Ces modifications seront appliquées lors de l'enregistrement", + 'image': 'Image', + 'maximum_10_files': 'Maximum 10 fichiers', + 'loading_image': "Chargement de l'image", + 'delete_image': "Supprimer l'image", + 'are_you_sure_you_want_to_delete_image': "Êtes-vous sûr de vouloir supprimer l'image ?", + 'create_link': 'Créer un lien', + 'fill_all_credentials': "Remplissez toutes les informations d'identification", + 'table': 'Tableau', + 'maximum_10_columns': 'Maximum 10 colonnes', + 'select_category': 'Sélectionner une catégorie', + 'set_title': 'Définir le titre', + 'click_continue_to_save': 'Cliquez sur Continuer pour enregistrer', + 'undefined_category_index': 'Indéfini : [category_index]', + 'missing_category_index': 'Manquant : [category_index]', + 'missing_title': 'Manquant : [title]', + 'missing_content': 'Manquant : [content]', + 'are_you_sure_you_want_to_delete_file': 'Êtes-vous sûr de vouloir supprimer le fichier ?', + 'approve': 'Approuver', + 'are_you_sure_you_want_to_approve_file': 'Êtes-vous sûr de vouloir approuver le fichier ?', + 'schedule': 'Programmer', + 'autosave_enabled': 'Enregistrement automatique activé', + 'autosave_disabled': 'Enregistrement automatique désactivé', + 'import': 'Importer', + 'import_json_file': 'Importer un fichier .json', + 'import_csv_file': 'Importer un fichier .csv', + 'cancel': 'Annuler', + 'ok': 'Ok', + 'add_cover_image': 'Image de couverture', + 'properties': 'Propriétés', + 'link': 'Lien', + 'save': 'Enregistrer', + 'blockquote': 'Citation', + 'html_embed': 'Intégration HTML', + 'preformatted': 'Préformaté', + 'unordered_list': 'Liste non ordonnée', + 'ordered_list': 'Liste ordonnée', + 'check_list': 'Liste de contrôle', + 'link_button': 'Bouton de lien', + 'columns': 'Colonnes', + 'carousel': 'Carrousel', + 'accordion': 'Accordéon', + 'tab': 'Onglet', + 'container': 'Conteneur', + 'page_break': 'Saut de page', + 'copy': 'Copie', + 'clear': 'Effacer', + 'tags': 'Tags', + 'lower_case': 'minuscule', + 'upper_case': 'MAJUSCULE', + 'title_case': 'Titre Case', + 'sentence_case': 'Phrase cas.', + 'view': 'Vue', + 'find': 'Trouver', + 'replace': 'Remplacer', + 'match_case': 'Respecter la casse', + 'match_whole_word_only': 'Correspondance exacte', + 'replace_all': 'Remplacer tout', + 'new': 'Nouveau', + 'rework': 'Revoir', + 'export': 'Exporter', + 'preview': 'Aperçu', + 'print': 'Imprimer', + 'output': 'Sortie', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Fusionner', + 'import_csv': 'Importer CSV', + 'style': 'Style', + 'header': 'En-tête', + 'body': 'Corps', + 'footer': 'Pied de page', + 'add_row_above': 'Ajouter une ligne au-dessus', + 'add_row_below': 'Ajouter une ligne ci-dessous', + 'delete_row': 'Supprimer la ligne', + 'add_column_left': 'Ajouter une colonne à gauche', + 'add_column_right': 'Ajouter une colonne à droite', + 'delete_column': 'Supprimer la colonne', + 'before': 'Avant', + 'after': 'Après', + 'width': 'Largeur', + 'description': 'Description', + 'continue': 'Continuer', + 'file_info': 'Informations sur le fichier', + 'images': 'Images', + 'add_image': 'Ajouter une image', + 'edit_disabled': 'Modification désactivée', + 'components': 'Composants', + 'text': 'Texte', + 'list': 'Liste', + 'format': 'Format', + 'read': 'Lire', + 'sections': 'Sections', + 'blocks': 'Blocs', + 'words': 'Mots', + 'characters_no_spaces': 'Caractères (sans espaces)', + 'characters_with_spaces': 'Caractères (avec espaces)', + 'block_quote': 'Citation en bloc', + 'category': 'Catégorie', + 'comments': 'Commentaires', + 'draft': 'Brouillon', + 'feature': 'Fonctionnalité', + 'autosave': 'Sauvegarde automatique', + 'search': 'Recherche', + 'split': 'Divisé', + 'smileys_emotion': 'Émoticônes et émotions', + 'people_body': 'Personnes et corps', + 'component': 'Composant', + 'animals_nature': 'Animaux et nature', + 'food_drink': 'Nourriture et boisson', + 'travel_places': 'Voyages et lieux', + 'activities': 'Activités', + 'objects': 'Objets', + 'symbols': 'Symboles', + 'flags': 'Drapeaux', + 'latin': 'Latin', + 'greek': 'Grec', + 'punctuation_more': 'Ponctuation et plus', + 'math': 'Mathématiques', + 'currency': 'Devise', + 'rows': 'Lignes', + 'cells': 'Cellules', + 'new_tab': 'Nouvel onglet', + 'categories': 'Catégories', + 'file_edited_by': "Le fichier est en cours d'édition par", + 'light_mode': 'Mode lumière', + 'st-dark-mode': 'Mode sombre', + 'set_date' : 'Définir la date', + 'set_time' : "Définir l'heure", + 'upgrade_n_icon' : ' Mettre à niveau le plan' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/german.js b/docs/plugin/assets/langs/german.js new file mode 100644 index 00000000..45530287 --- /dev/null +++ b/docs/plugin/assets/langs/german.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Tag löschen', + 'delete_cover_image': 'Titelbild löschen', + 'strike_through': 'Durchgestrichen', + 'superscript': 'Hochgestellt', + 'subscript': 'Tiefgestellt', + 'inline_code': 'Inline-Code', + 'bold': 'Fett', + 'italic': 'Kursiv', + 'underline': 'Unterstrichen', + 'inline_link': 'Inline-Link', + 'remove_format': 'Formatierung entfernen', + 'align': 'Ausrichten', + 'left': 'Links', + 'center': 'Zentriert', + 'right': 'Rechts', + 'justify': 'Blocksatz', + 'right_to_left': 'Rechts nach links', + 'undo': 'Rückgängig machen', + 'redo': 'Wiederholen', + 'insert': 'Einfügen', + 'menu': 'Menü', + 'website': 'Webseite', + 'key_shortcuts': 'Tastenkürzel', + 'toggle_theme': 'Design umschalten', + 'previous': 'Zurück', + 'next': 'Weiter', + 'options': 'Optionen', + 'title': 'Titel', + 'settings': 'Einstellungen', + 'font_family': 'Schriftfamilie', + 'color': 'Farbe', + 'highlight': 'Hervorheben', + 'font_case': 'Schriftart', + 'space': 'Leerzeichen', + 'new_line': 'Neue Zeile', + 'emojis': 'Emojis', + 'special_characters': 'Sonderzeichen', + 'date_time': 'Datum und Uhrzeit', + 'find_and_replace': 'Suchen und Ersetzen', + 'fullscreen': 'Vollbild', + 'blue': 'Blau', + 'red': 'Rot', + 'yellow': 'Gelb', + 'green': 'Grün', + 'grey_3': 'Grau 3', + 'grey_2': 'Grau 2', + 'grey': 'Grau', + 'secondary': 'Sekundär', + 'pick_color': 'Farbe wählen', + 'delete': 'Löschen', + 'close': 'Schließen', + 'find_previous': 'Vorheriges finden', + 'find_next': 'Nächstes finden', + 'refresh_search': 'Suche aktualisieren', + 'search_filters': 'Suchfilter', + 'replace_options': 'Ersetzungsoptionen', + 'replace_format': 'Ersetzungsformat', + 'edit': 'Bearbeiten', + 'move': 'Bewegen', + 'clone': 'Klonen', + 'move_section': 'Abschnitt verschieben', + 'add_section': 'Abschnitt hinzufügen', + 'delete_section': 'Abschnitt löschen', + 'upload_image': 'Bild hochladen', + 'caption': 'Bildunterschrift', + 'citation': 'Zitat', + 'heading': 'Überschrift', + 'paragraph': 'Absatz', + 'paste': 'Einfügen', + 'text_styling': 'Textformatierung', + 'styling_cannot_be_applied': 'Formatierung kann nicht angewendet werden', + 'media_embed': 'Medieneinbettung', + 'bad_request': 'Fehlerhafte Anfrage', + 'empty_file': 'Leere Datei', + 'set_content': 'Inhalt festlegen', + 'this_changes_will_be_applied_on_save': 'Diese Änderungen werden beim Speichern angewendet', + 'image': 'Bild', + 'maximum_10_files': 'Maximal 10 Dateien', + 'loading_image': 'Bild wird geladen', + 'delete_image': 'Bild löschen', + 'are_you_sure_you_want_to_delete_image': 'Möchten Sie das Bild wirklich löschen?', + 'create_link': 'Link erstellen', + 'fill_all_credentials': 'Füllen Sie alle Anmeldeinformationen aus', + 'table': 'Tabelle', + 'maximum_10_columns': 'Maximal 10 Spalten', + 'select_category': 'Kategorie auswählen', + 'set_title': 'Titel festlegen', + 'click_continue_to_save': 'Klicken Sie auf Weiter, um zu speichern', + 'undefined_category_index': 'Undefiniert: [category_index]', + 'missing_category_index': 'Fehlt: [category_index]', + 'missing_title': 'Fehlt: [title]', + 'missing_content': 'Fehlt: [content]', + 'are_you_sure_you_want_to_delete_file': 'Möchten Sie die Datei wirklich löschen?', + 'approve': 'Genehmigen', + 'are_you_sure_you_want_to_approve_file': 'Möchten Sie die Datei wirklich genehmigen?', + 'schedule': 'Zeitplan', + 'autosave_enabled': 'Automatisches Speichern aktiviert', + 'autosave_disabled': 'Automatisches Speichern deaktiviert', + 'import': 'Importieren', + 'import_json_file': '.json-Datei importieren', + 'import_csv_file': '.csv-Datei importieren', + 'cancel': 'Abbrechen', + 'ok': 'Ok', + 'add_cover_image': 'Titelbild hinzufügen', + 'properties': 'Eigenschaften', + 'link': 'Link', + 'save': 'Speichern', + 'blockquote': 'Blockzitat', + 'html_embed': 'Html-Einbettung', + 'preformatted': 'Vorformatiert', + 'unordered_list': 'Ungeordnete Liste', + 'ordered_list': 'Geordnete Liste', + 'check_list': 'Checkliste', + 'link_button': 'Link-Schaltfläche', + 'columns': 'Spalten', + 'carousel': 'Karussell', + 'accordion': 'Akkordeon', + 'tab': 'Tab', + 'container': 'Behälter', + 'page_break': 'Seitenumbruch', + 'copy': 'Kopieren', + 'clear': 'Löschen', + 'tags': 'Tags', + 'lower_case': 'Kleinbuchstaben', + 'upper_case': 'GROSSBUCHSTABEN', + 'title_case': 'Titel Case', + 'sentence_case': 'Satz Fall.', + 'view': 'Ansicht', + 'find': 'Finden', + 'replace': 'Ersetzen', + 'match_case': 'Groß-/Kleinschreibung beachten', + 'match_whole_word_only': 'Nur ganzes Wort abgleichen', + 'replace_all': 'Alle ersetzen', + 'new': 'Neu', + 'rework': 'Überarbeiten', + 'export': 'Exportieren', + 'preview': 'Vorschau', + 'print': 'Drucken', + 'output': 'Ausgabe', + 'horizontal': 'Horizontal', + 'vertical': 'Vertikal', + 'merge': 'Zusammenführen', + 'import_csv': 'CSV importieren', + 'style': 'Stil', + 'header': 'Kopfzeile', + 'body': 'Körper', + 'footer': 'Fußzeile', + 'add_row_above': 'Zeile oben hinzufügen', + 'add_row_below': 'Zeile unten hinzufügen', + 'delete_row': 'Zeile löschen', + 'add_column_left': 'Spalte links hinzufügen', + 'add_column_right': 'Spalte rechts hinzufügen', + 'delete_column': 'Spalte löschen', + 'before': 'Vor', + 'after': 'Nach', + 'width': 'Breite', + 'description': 'Beschreibung', + 'continue': 'Fortsetzen', + 'file_info': 'Dateiinformationen', + 'images': 'Bilder', + 'add_image': 'Bild hinzufügen', + 'edit_disabled': 'Bearbeitung deaktiviert', + 'components': 'Komponenten', + 'text': 'Text', + 'list': 'Liste', + 'format': 'Format', + 'read': 'Lesen', + 'sections': 'Abschnitte', + 'blocks': 'Blöcke', + 'words': 'Wörter', + 'characters_no_spaces': 'Zeichen (ohne Leerzeichen)', + 'characters_with_spaces': 'Zeichen (mit Leerzeichen)', + 'block_quote': 'Blockzitat', + 'category': 'Kategorie', + 'comments': 'Kommentare', + 'draft': 'Entwurf', + 'feature': 'Funktion', + 'autosave': 'Automatische Speicherung', + 'search': 'Suche', + 'split': 'Teilen', + 'smileys_emotion': 'Smileys & Emotionen', + 'people_body': 'Menschen & Körper', + 'component': 'Komponente', + 'animals_nature': 'Tiere & Natur', + 'food_drink': 'Essen & Trinken', + 'travel_places': 'Reisen & Orte', + 'activities': 'Aktivitäten', + 'objects': 'Objekte', + 'symbols': 'Symbole', + 'flags': 'Flaggen', + 'latin': 'Latein', + 'greek': 'Griechisch', + 'punctuation_more': 'Interpunktion & Mehr', + 'math': 'Mathematik', + 'currency': 'Währung', + 'rows': 'Zeilen', + 'cells': 'Zellen', + 'new_tab': 'Neuer Tab', + 'categories': 'Kategorien', + 'file_edited_by': 'Datei wird bearbeitet von', + 'light_mode': 'Hellmodus', + 'st-dark-mode': 'Dunkelmodus', + 'set_date' : 'Datum einstellen', + 'set_time' : 'Uhrzeit einstellen', + 'upgrade_n_icon' : ' Plan aktualisieren' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/hindi.js b/docs/plugin/assets/langs/hindi.js new file mode 100644 index 00000000..bd8deabd --- /dev/null +++ b/docs/plugin/assets/langs/hindi.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'टैग हटाएं', + 'delete_cover_image': 'कवर छवि हटाएं', + 'strike_through': 'बीच में रेखांकित करें', + 'superscript': 'ऊर्ध्वश्रेणी', + 'subscript': 'अधोष्रेणी', + 'inline_code': 'इनलाइन कोड', + 'bold': 'बोल्ड', + 'italic': 'इटैलिक', + 'underline': 'अंडरलाइन', + 'inline_link': 'इनलाइन लिंक', + 'remove_format': 'फ़ॉर्मेट हटाएं', + 'align': 'एलाइनमेंट', + 'left': 'बाएं', + 'center': 'केंद्र', + 'right': 'दाएं', + 'justify': 'जस्टीफाई', + 'right_to_left': 'दाएं से बाएं', + 'undo': 'वापस ले जाएँ', + 'redo': 'पुनः लागू करें', + 'insert': 'डालें', + 'menu': 'मेनू', + 'website': 'वेबसाइट', + 'key_shortcuts': 'कुंजी शॉर्टकट', + 'toggle_theme': 'थीम टॉगल करें', + 'previous': 'पिछला', + 'next': 'अगला', + 'options': 'विकल्प', + 'title': 'शीर्षक', + 'settings': 'सेटिंग', + 'font_family': 'फ़ॉन्ट परिवार', + 'color': 'रंग', + 'highlight': 'हाइलाइट', + 'font_case': 'फ़ॉन्ट केस', + 'space': 'अंतर', + 'new_line': 'नई पंक्ति', + 'emojis': 'इमोजी', + 'special_characters': 'विशेष अक्षर', + 'date_time': 'तारीख समय', + 'find_and_replace': 'खोजें और बदलें', + 'fullscreen': 'फुल स्क्रीन', + 'blue': 'नीला', + 'red': 'लाल', + 'yellow': 'पीला', + 'green': 'हरा', + 'grey_3': 'धूसर 3', + 'grey_2': 'धूसर 2', + 'grey': 'धूसर', + 'secondary': 'सेकेंडरी', + 'pick_color': 'रंग चुनें', + 'delete': 'हटाएं', + 'close': 'बंद करें', + 'find_previous': 'पिछले खोजें', + 'find_next': 'अगले खोजें', + 'refresh_search': 'ताजगी दें', + 'search_filters': 'खोज फ़िल्टर', + 'replace_options': 'विकल्प बदलें', + 'replace_format': 'फ़ॉर्मेट बदलें', + 'edit': 'संपादित करें', + 'move': 'हटाएं', + 'clone': 'नकल', + 'move_section': 'सेक्शन ले जाएँ', + 'add_section': 'सेक्शन जोड़ें', + 'delete_section': 'सेक्शन हटाएं', + 'upload_image': 'छवि अपलोड करें', + 'caption': 'कैप्शन', + 'citation': 'उद्धरण', + 'heading': 'शीर्षक', + 'paragraph': 'अनुच्छेद', + 'paste': 'पेस्ट करें', + 'text_styling': 'टेक्स्ट स्टाइलिंग', + 'styling_cannot_be_applied': 'स्टाइलिंग लागू नहीं की जा सकती', + 'media_embed': 'मीडिया एम्बेड', + 'bad_request': 'बुरा अनुरोध', + 'empty_file': 'खाली फ़ाइल', + 'set_content': 'सेट सामग्री', + 'this_changes_will_be_applied_on_save': 'यह परिवर्तन सहेजें पर लागू होंगे', + 'image': 'छवि', + 'maximum_10_files': 'अधिकतम 10 फ़ाइलें', + 'loading_image': 'लोड हो रहा है छवि', + 'delete_image': 'छवि हटाएं', + 'are_you_sure_you_want_to_delete_image': 'क्या आप वाकई छवि हटाना चाहते हैं?', + 'create_link': 'लिंक बनाएँ', + 'fill_all_credentials': 'सभी क्रेडेंशियल भरें', + 'table': 'तालिका', + 'maximum_10_columns': 'अधिकतम 10 कॉलम', + 'select_category': 'श्रेणी चुनें', + 'set_title': 'शीर्षक सेट करें', + 'click_continue_to_save': 'जारी रखने के लिए जारी रखें पर क्लिक करें', + 'undefined_category_index': 'अपरिभाषित: [category_index]', + 'missing_category_index': 'लापता: [category_index]', + 'missing_title': 'लापता: [title]', + 'missing_content': 'लापता: [content]', + 'are_you_sure_you_want_to_delete_file': 'क्या आप वाकई फ़ाइल को हटाना चाहते हैं?', + 'approve': 'मंजूरी दें', + 'are_you_sure_you_want_to_approve_file': 'क्या आप वाकई फ़ाइल को मंजूरी देना चाहते हैं?', + 'schedule': 'अनुसूची', + 'autosave_enabled': 'ऑटोसेव एनेबल है', + 'autosave_disabled': 'ऑटोसेव डिसेबल है', + 'import': 'आयात करें', + 'import_json_file': '.json फ़ाइल आयात करें', + 'import_csv_file': '.csv फ़ाइल आयात करें', + 'cancel': 'रद्द करना', + 'ok': 'ठीक है', + 'add_cover_image': 'कवर चित्र जोड़ें', + 'properties': 'गुण', + 'link': 'लिंक', + 'save': 'सहेजें', + 'blockquote': 'ब्लॉक कोट', + 'html_embed': 'HTML एम्बेड', + 'preformatted': 'पूर्व-स्वरूपित', + 'unordered_list': 'अव्यवस्थित सूची', + 'ordered_list': 'व्यवस्थित सूची', + 'check_list': 'जांच सूची', + 'link_button': 'लिंक बटन', + 'columns': 'स्तंभ', + 'carousel': 'कैरोसेल', + 'accordion': 'अकॉर्डियन', + 'tab': 'टैब', + 'container': 'डिब्बा', + 'page_break': 'पृष्ठ अंत', + 'copy': 'कॉपी', + 'clear': 'साफ़ करें', + 'tags': 'टैग', + 'lower_case': 'निचले अक्षर', + 'upper_case': 'ऊपरी अक्षर', + 'title_case': 'शीर्षक के अक्षर', + 'sentence_case': 'वाक्य शुरू के अक्षर', + 'view': 'देखें', + 'find': 'खोजें', + 'replace': 'प्रतिस्थापित करें', + 'match_case': 'मिलान (मामला)', + 'match_whole_word_only': 'केवल पूरे शब्द मिलाएँ', + 'replace_all': 'सभी प्रतिस्थापित करें', + 'new': 'नया', + 'rework': 'पुनः काम करें', + 'export': 'निर्यात', + 'preview': 'पूर्वावलोकन', + 'print': 'प्रिंट करें', + 'output': 'आउटपुट', + 'horizontal': 'क्षैतिज', + 'vertical': 'ऊर्ध्वाधर', + 'merge': 'विलय', + 'import_csv': 'CSV आयात करें', + 'style': 'शैली', + 'header': 'हैडर', + 'body': 'बॉडी', + 'footer': 'फ़ुटर', + 'add_row_above': 'ऊपर से पंक्ति जोड़ें', + 'add_row_below': 'नीचे पंक्ति जोड़ें', + 'delete_row': 'पंक्ति हटाएं', + 'add_column_left': 'बाएं स्तंभ जोड़ें', + 'add_column_right': 'दाएं स्तंभ जोड़ें', + 'delete_column': 'स्तंभ हटाएं', + 'before': 'पहले', + 'after': 'बाद में', + 'width': 'चौड़ाई', + 'description': 'विवरण', + 'continue': 'जारी रखें', + 'file_info': 'फ़ाइल जानकारी', + 'images': 'छवियाँ', + 'add_image': 'छवि जोड़ें', + 'edit_disabled': 'संपादन अक्षम', + 'components': 'घटक', + 'text': 'टेक्स्ट', + 'list': 'सूची', + 'format': 'फ़ॉर्मेट', + 'read': 'पढ़ें', + 'sections': 'अनुभाग', + 'blocks': 'खंड', + 'words': 'शब्द', + 'characters_no_spaces': 'वर्ण ( अंतरिक्ष बिना )', + 'characters_with_spaces': 'वर्ण ( अंतरिक्ष सहित )', + 'block_quote': 'ब्लॉक कोट', + 'category': 'श्रेणी', + 'comments': 'टिप्पणियाँ', + 'draft': 'ड्राफ़्ट', + 'feature': 'फ़ीचर', + 'autosave': 'ऑटो सेव', + 'search': 'खोज', + 'split': 'विभाजित', + 'smileys_emotion': 'स्माइलीज़ और भावना', + 'people_body': 'लोग और शरीर', + 'component': 'घटक', + 'animals_nature': 'जानवर और प्रकृति', + 'food_drink': 'खाने-पीने की वस्तुएँ', + 'travel_places': 'यात्रा और स्थान', + 'activities': 'गतिविधियाँ', + 'objects': 'वस्तुएँ', + 'symbols': 'प्रतीक', + 'flags': 'झंडे', + 'latin': 'लैटिन', + 'greek': 'ग्रीक', + 'punctuation_more': 'विराम चिह्न और अधिक', + 'math': 'गणित', + 'currency': 'मुद्रा', + 'rows': 'पंक्तियाँ', + 'cells': 'सेल्स', + 'new_tab': 'नई टैब', + 'categories': 'श्रेणियाँ', + 'file_edited_by': 'फ़ाइल का संपादन किसी द्वारा किया जा रहा है', + 'light_mode': 'प्रकाश मोड', + 'st-dark-mode': 'अंधेरा मोड', + 'set_date' : 'तिथि सेट करें', + 'set_time' : 'समय सेट करें', + 'upgrade_n_icon' : ' प्लान अपग्रेड करें' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/japanese.js b/docs/plugin/assets/langs/japanese.js new file mode 100644 index 00000000..5f206981 --- /dev/null +++ b/docs/plugin/assets/langs/japanese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'タグを削除', + 'delete_cover_image': 'カバー画像を削除', + 'strike_through': '取り消し線', + 'superscript': '上付き文字', + 'subscript': '下付き文字', + 'inline_code': 'インラインコード', + 'bold': '太字', + 'italic': '斜体', + 'underline': '下線', + 'inline_link': 'インラインリンク', + 'remove_format': 'フォーマットを削除', + 'align': '配置', + 'left': '左', + 'center': '中央', + 'right': '右', + 'justify': '両端揃え', + 'right_to_left': '右から左へ', + 'undo': '元に戻す', + 'redo': 'やり直す', + 'insert': '挿入', + 'menu': 'メニュー', + 'website': 'ウェブサイト', + 'key_shortcuts': 'キーショートカット', + 'toggle_theme': 'テーマを切り替える', + 'previous': '前へ', + 'next': '次へ', + 'options': 'オプション', + 'title': 'タイトル', + 'settings': '設定', + 'font_family': 'フォントファミリー', + 'color': '色', + 'highlight': 'ハイライト', + 'font_case': 'フォントケース', + 'space': 'スペース', + 'new_line': '改行', + 'emojis': '絵文字', + 'special_characters': '特殊文字', + 'date_time': '日付時刻', + 'find_and_replace': '検索して置換', + 'fullscreen': 'フルスクリーン', + 'blue': '青', + 'red': '赤', + 'yellow': '黄色', + 'green': '緑', + 'grey_3': 'グレー3', + 'grey_2': 'グレー2', + 'grey': 'グレー', + 'secondary': 'セカンダリ', + 'pick_color': '色を選ぶ', + 'delete': '削除', + 'close': '閉じる', + 'find_previous': '前を検索', + 'find_next': '次を検索', + 'refresh_search': '検索を更新', + 'search_filters': '検索フィルター', + 'replace_options': '置換オプション', + 'replace_format': 'フォーマットを置換', + 'edit': '編集', + 'move': '移動', + 'clone': '複製', + 'move_section': 'セクションを移動', + 'add_section': 'セクションを追加', + 'delete_section': 'セクションを削除', + 'upload_image': '画像をアップロード', + 'caption': 'キャプション', + 'citation': '引用', + 'heading': '見出し', + 'paragraph': '段落', + 'paste': '貼り付け', + 'text_styling': 'テキストスタイリング', + 'styling_cannot_be_applied': 'スタイルを適用できません', + 'media_embed': 'メディア埋め込み', + 'bad_request': '不正なリクエスト', + 'empty_file': '空のファイル', + 'set_content': 'コンテンツを設定', + 'this_changes_will_be_applied_on_save': 'この変更は保存時に適用されます', + 'image': '画像', + 'maximum_10_files': '最大10ファイル', + 'loading_image': '画像を読み込んでいます', + 'delete_image': '画像を削除', + 'are_you_sure_you_want_to_delete_image': '画像を削除してもよろしいですか?', + 'create_link': 'リンクを作成', + 'fill_all_credentials': 'すべての資格情報を入力してください', + 'table': 'テーブル', + 'maximum_10_columns': '最大10列', + 'select_category': 'カテゴリを選択', + 'set_title': 'タイトルを設定', + 'click_continue_to_save': '続行をクリックして保存', + 'undefined_category_index': '未定義:[category_index]', + 'missing_category_index': '不足:[category_index]', + 'missing_title': '不足:[title]', + 'missing_content': '不足:[content]', + 'are_you_sure_you_want_to_delete_file': 'ファイルを削除してもよろしいですか?', + 'approve': '承認する', + 'are_you_sure_you_want_to_approve_file': 'ファイルを承認してもよろしいですか?', + 'schedule': 'スケジュール', + 'autosave_enabled': '自動保存が有効になっています', + 'autosave_disabled': '自動保存が無効になっています', + 'import': 'インポート', + 'import_json_file': '.jsonファイルをインポート', + 'import_csv_file': '.csvファイルをインポート', + 'cancel': 'キャンセル', + 'ok': 'OK', + 'add_cover_image': 'カバー画像を追加', + 'properties': 'プロパティ', + 'link': 'リンク', + 'save': '保存', + 'blockquote': '引用', + 'html_embed': 'HTML埋め込み', + 'preformatted': '整形済み', + 'unordered_list': '順不同リスト', + 'ordered_list': '順序付きリスト', + 'check_list': 'チェックリスト', + 'link_button': 'リンクボタン', + 'columns': 'カラム', + 'carousel': 'カルーセル', + 'accordion': 'アコーディオン', + 'tab': 'タブ', + 'container': 'コンテナ', + 'page_break': '改ページ', + 'copy': 'コピー', + 'clear': 'クリア', + 'tags': 'タグ', + 'lower_case': '小文字', + 'upper_case': '大文字', + 'title_case': 'タイトルケース', + 'sentence_case': '文の先頭を大文字にする。', + 'view': 'ビュー', + 'find': '検索', + 'replace': '置換', + 'match_case': '大文字と小文字を区別する', + 'match_whole_word_only': '単語全体にマッチする', + 'replace_all': 'すべて置換', + 'new': '新規', + 'rework': '再作業', + 'export': 'エクスポート', + 'preview': 'プレビュー', + 'print': '印刷', + 'output': '出力', + 'horizontal': '水平', + 'vertical': '垂直', + 'merge': 'マージ', + 'import_csv': 'CSVをインポート', + 'style': 'スタイル', + 'header': 'ヘッダー', + 'body': '本文', + 'footer': 'フッター', + 'add_row_above': '上に行を追加', + 'add_row_below': '下に行を追加', + 'delete_row': '行を削除', + 'add_column_left': '左に列を追加', + 'add_column_right': '右に列を追加', + 'delete_column': '列を削除', + 'before': '前', + 'after': '後', + 'width': '幅', + 'description': '説明', + 'continue': '続ける', + 'file_info': 'ファイル情報', + 'images': '画像', + 'add_image': '画像を追加', + 'edit_disabled': '編集不可', + 'components': 'コンポーネント', + 'text': 'テキスト', + 'list': 'リスト', + 'format': 'フォーマット', + 'read': '読む', + 'sections': 'セクション', + 'blocks': 'ブロック', + 'words': '単語', + 'characters_no_spaces': '文字数(スペースなし)', + 'characters_with_spaces': '文字数(スペースあり)', + 'block_quote': '引用', + 'category': 'カテゴリー', + 'comments': 'コメント', + 'draft': '下書き', + 'feature': '特徴', + 'autosave': '自動保存', + 'search': '検索', + 'split': '分割', + 'smileys_emotion': 'スマイリー&エモーション', + 'people_body': '人々&体', + 'component': 'コンポーネント', + 'animals_nature': '動物&自然', + 'food_drink': '食べ物&飲み物', + 'travel_places': '旅行&場所', + 'activities': 'アクティビティ', + 'objects': 'オブジェクト', + 'symbols': 'シンボル', + 'flags': '旗', + 'latin': 'ラテン語', + 'greek': 'ギリシャ語', + 'punctuation_more': '句読点&その他', + 'math': '数学', + 'currency': '通貨', + 'rows': '行', + 'cells': 'セル', + 'new_tab': '新しいタブ', + 'categories': 'カテゴリー', + 'file_edited_by': 'ファイルを編集しているユーザー', + 'light_mode': 'ライトモード', + 'st-dark-mode': 'ダークモード', + 'set_date' : '日付の設定', + 'set_time' : '時刻の設定', + 'upgrade_n_icon' : ' プランのアップグレード' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/portuguese.js b/docs/plugin/assets/langs/portuguese.js new file mode 100644 index 00000000..2b95c53c --- /dev/null +++ b/docs/plugin/assets/langs/portuguese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Excluir Tag', + 'delete_cover_image': 'Excluir Imagem de Capa', + 'strike_through': 'Riscar', + 'superscript': 'Sobrescrito', + 'subscript': 'Subscrito', + 'inline_code': 'Código em Linha', + 'bold': 'Negrito', + 'italic': 'Itálico', + 'underline': 'Sublinhado', + 'inline_link': 'Link em Linha', + 'remove_format': 'Remover Formato', + 'align': 'Alinhar', + 'left': 'Esquerda', + 'center': 'Centro', + 'right': 'Direita', + 'justify': 'Justificar', + 'right_to_left': 'Da Direita para a Esquerda', + 'undo': 'Desfazer', + 'redo': 'Refazer', + 'insert': 'Inserir', + 'menu': 'Menu', + 'website': 'Website', + 'key_shortcuts': 'Atalhos de Teclado', + 'toggle_theme': 'Alternar Tema', + 'previous': 'Anterior', + 'next': 'Próximo', + 'options': 'Opções', + 'title': 'Título', + 'settings': 'Configurações', + 'font_family': 'Família de Fontes', + 'color': 'Cor', + 'highlight': 'Realçar', + 'font_case': 'Caixa de Fonte', + 'space': 'Espaço', + 'new_line': 'Nova Linha', + 'emojis': 'Emojis', + 'special_characters': 'Caracteres Especiais', + 'date_time': 'Data e Hora', + 'find_and_replace': 'Localizar e Substituir', + 'fullscreen': 'Tela Cheia', + 'blue': 'Azul', + 'red': 'Vermelho', + 'yellow': 'Amarelo', + 'green': 'Verde', + 'grey_3': 'Cinza 3', + 'grey_2': 'Cinza 2', + 'grey': 'Cinza', + 'secondary': 'Secundário', + 'pick_color': 'Escolher Cor', + 'delete': 'Excluir', + 'close': 'Fechar', + 'find_previous': 'Localizar Anterior', + 'find_next': 'Localizar Próximo', + 'refresh_search': 'Atualizar Busca', + 'search_filters': 'Filtros de Busca', + 'replace_options': 'Opções de Substituição', + 'replace_format': 'Formato de Substituição', + 'edit': 'Editar', + 'move': 'Mover', + 'clone': 'Clonar', + 'move_section': 'Mover Seção', + 'add_section': 'Adicionar Seção', + 'delete_section': 'Excluir Seção', + 'upload_image': 'Enviar Imagem', + 'caption': 'Legenda', + 'citation': 'Citação', + 'heading': 'Cabeçalho', + 'paragraph': 'Parágrafo', + 'paste': 'Colar', + 'text_styling': 'Estilo de Texto', + 'styling_cannot_be_applied': 'O estilo não pode ser aplicado', + 'media_embed': 'Incorporação de Mídia', + 'bad_request': 'Requisição Inválida', + 'empty_file': 'Arquivo Vazio', + 'set_content': 'Definir Conteúdo', + 'this_changes_will_be_applied_on_save': 'Essas alterações serão aplicadas ao salvar', + 'image': 'Imagem', + 'maximum_10_files': 'Máximo de 10 arquivos', + 'loading_image': 'Carregando Imagem', + 'delete_image': 'Excluir Imagem', + 'are_you_sure_you_want_to_delete_image': 'Tem certeza de que deseja excluir a imagem?', + 'create_link': 'Criar Link', + 'fill_all_credentials': 'Preencha todas as credenciais', + 'table': 'Tabela', + 'maximum_10_columns': 'Máximo de 10 colunas', + 'select_category': 'Selecione a Categoria', + 'set_title': 'Definir Título', + 'click_continue_to_save': 'Clique em Continuar para salvar', + 'undefined_category_index': 'Indefinido: [category_index]', + 'missing_category_index': 'Faltando: [category_index]', + 'missing_title': 'Faltando: [title]', + 'missing_content': 'Faltando: [content]', + 'are_you_sure_you_want_to_delete_file': 'Tem certeza de que deseja excluir o arquivo?', + 'approve': 'Aprovar', + 'are_you_sure_you_want_to_approve_file': 'Tem certeza de que deseja aprovar o arquivo?', + 'schedule': 'Agendar', + 'autosave_enabled': 'Autosalvar Habilitado', + 'autosave_disabled': 'Autosalvar Desabilitado', + 'import': 'Importar', + 'import_json_file': 'Importar arquivo .json', + 'import_csv_file': 'Importar arquivo .csv', + 'cancel': 'Cancelar', + 'ok': 'Ok', + 'add_cover_image': 'Imagem de Capa', + 'properties': 'Propriedades', + 'link': 'Link', + 'save': 'Salvar', + 'blockquote': 'Citação', + 'html_embed': 'Incorporação de HTML', + 'preformatted': 'Pré-formatado', + 'unordered_list': 'Lista Não Ordenada', + 'ordered_list': 'Lista Ordenada', + 'check_list': 'Lista de Verificação', + 'link_button': 'Botão de Link', + 'columns': 'Colunas', + 'carousel': 'Carrossel', + 'accordion': 'Acordeão', + 'tab': 'Guia', + 'container': 'Contêiner', + 'page_break': 'Quebra de Página', + 'copy': 'Copiar', + 'clear': 'Limpar', + 'tags': 'Tags', + 'lower_case': 'minúsculas', + 'upper_case': 'MAIÚSCULAS', + 'title_case': 'Capitalização de Título', + 'sentence_case': 'Capitalização de Frase.', + 'view': 'Visualizar', + 'find': 'Encontrar', + 'replace': 'Substituir', + 'match_case': 'Diferenciar maiúsculas de minúsculas', + 'match_whole_word_only': 'Corresponder somente a palavras inteiras', + 'replace_all': 'Substituir Tudo', + 'new': 'Novo', + 'rework': 'Revisar', + 'export': 'Exportar', + 'preview': 'Visualização', + 'print': 'Imprimir', + 'output': 'Saída', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Mesclar', + 'import_csv': 'Importar CSV', + 'style': 'Estilo', + 'header': 'Cabeçalho', + 'body': 'Corpo', + 'footer': 'Rodapé', + 'add_row_above': 'Adicionar Linha Acima', + 'add_row_below': 'Adicionar Linha Abaixo', + 'delete_row': 'Excluir Linha', + 'add_column_left': 'Adicionar Coluna à Esquerda', + 'add_column_right': 'Adicionar Coluna à Direita', + 'delete_column': 'Excluir Coluna', + 'before': 'Antes', + 'after': 'Depois', + 'width': 'Largura', + 'description': 'Descrição', + 'continue': 'Continuar', + 'file_info': 'Informações do Arquivo', + 'images': 'Imagens', + 'add_image': 'Adicionar Imagem', + 'edit_disabled': 'Edição Desativada', + 'components': 'Componentes', + 'text': 'Texto', + 'list': 'Lista', + 'format': 'Formato', + 'read': 'Lido', + 'sections': 'Seções', + 'blocks': 'Blocos', + 'words': 'Palavras', + 'characters_no_spaces': 'Caracteres (sem espaços)', + 'characters_with_spaces': 'Caracteres (com espaços)', + 'block_quote': 'Citação em Bloco', + 'category': 'Categoria', + 'comments': 'Comentários', + 'draft': 'Rascunho', + 'feature': 'Recurso', + 'autosave': 'Salvamento Automático', + 'search': 'Pesquisar', + 'split': 'Dividir', + 'smileys_emotion': 'Emojis e Emoções', + 'people_body': 'Pessoas e Corpo', + 'component': 'Componente', + 'animals_nature': 'Animais e Natureza', + 'food_drink': 'Comida e Bebida', + 'travel_places': 'Viagens e Lugares', + 'activities': 'Atividades', + 'objects': 'Objetos', + 'symbols': 'Símbolos', + 'flags': 'Bandeiras', + 'latin': 'Latim', + 'greek': 'Grego', + 'punctuation_more': 'Pontuação e Mais', + 'math': 'Matemática', + 'currency': 'Moeda', + 'rows': 'Linhas', + 'cells': 'Células', + 'new_tab': 'Nova Guia', + 'categories': 'Categorias', + 'file_edited_by': 'Arquivo está sendo editado por', + 'light_mode': 'Modo Claro', + 'st-dark-mode': 'Modo Escuro', + 'set_date' : 'Definir Data', + 'set_time' : 'Definir Hora', + 'upgrade_n_icon' : ' Atualizar Plano' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/russian.js b/docs/plugin/assets/langs/russian.js new file mode 100644 index 00000000..ee5f1f15 --- /dev/null +++ b/docs/plugin/assets/langs/russian.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Удалить тег', + 'delete_cover_image': 'Удалить изображение обложки', + 'strike_through': 'Зачеркнутый', + 'superscript': 'Надстрочный', + 'subscript': 'Подстрочный', + 'inline_code': 'Встроенный код', + 'bold': 'Жирный', + 'italic': 'Курсив', + 'underline': 'Подчеркнутый', + 'inline_link': 'Встроенная ссылка', + 'remove_format': 'Удалить формат', + 'align': 'Выровнять', + 'left': 'По левому краю', + 'center': 'По центру', + 'right': 'По правому краю', + 'justify': 'По ширине', + 'right_to_left': 'Справа налево', + 'undo': 'Отменить', + 'redo': 'Повторить', + 'insert': 'Вставить', + 'menu': 'Меню', + 'website': 'Веб-сайт', + 'key_shortcuts': 'Горячие клавиши', + 'toggle_theme': 'Переключить тему', + 'previous': 'Предыдущий', + 'next': 'Следующий', + 'options': 'Опции', + 'title': 'Заголовок', + 'settings': 'Настройки', + 'font_family': 'Шрифт', + 'color': 'Цвет', + 'highlight': 'Выделить', + 'font_case': 'Регистр', + 'space': 'Пробел', + 'new_line': 'Новая строка', + 'emojis': 'Эмодзи', + 'special_characters': 'Специальные символы', + 'date_time': 'Дата и время', + 'find_and_replace': 'Найти и заменить', + 'fullscreen': 'Полноэкранный режим', + 'blue': 'Синий', + 'red': 'Красный', + 'yellow': 'Желтый', + 'green': 'Зеленый', + 'grey_3': 'Серый 3', + 'grey_2': 'Серый 2', + 'grey': 'Серый', + 'secondary': 'Вторичный', + 'pick_color': 'Выбрать цвет', + 'delete': 'Удалить', + 'close': 'Закрыть', + 'find_previous': 'Найти предыдущее', + 'find_next': 'Найти следующее', + 'refresh_search': 'Обновить поиск', + 'search_filters': 'Фильтры поиска', + 'replace_options': 'Опции замены', + 'replace_format': 'Формат замены', + 'edit': 'Редактировать', + 'move': 'Переместить', + 'clone': 'Клонировать', + 'move_section': 'Переместить раздел', + 'add_section': 'Добавить раздел', + 'delete_section': 'Удалить раздел', + 'upload_image': 'Загрузить изображение', + 'caption': 'Подпись', + 'citation': 'Цитата', + 'heading': 'Заголовок', + 'paragraph': 'Параграф', + 'paste': 'Вставить', + 'text_styling': 'Стилизация текста', + 'styling_cannot_be_applied': 'Стилизация не может быть применена', + 'media_embed': 'Вставить медиа', + 'bad_request': 'Неверный запрос', + 'empty_file': 'Пустой файл', + 'set_content': 'Установить содержимое', + 'this_changes_will_be_applied_on_save': 'Эти изменения будут применены при сохранении', + 'image': 'Изображение', + 'maximum_10_files': 'Максимум 10 файлов', + 'loading_image': 'Загрузка изображения', + 'delete_image': 'Удалить изображение', + 'are_you_sure_you_want_to_delete_image': 'Вы уверены, что хотите удалить изображение?', + 'create_link': 'Создать ссылку', + 'fill_all_credentials': 'Заполните все учетные данные', + 'table': 'Таблица', + 'maximum_10_columns': 'Максимум 10 столбцов', + 'select_category': 'Выберите категорию', + 'set_title': 'Установить заголовок', + 'click_continue_to_save': 'Нажмите Продолжить, чтобы сохранить', + 'undefined_category_index': 'Неопределенный: [category_index]', + 'missing_category_index': 'Отсутствует: [category_index]', + 'missing_title': 'Отсутствует: [title]', + 'missing_content': 'Отсутствует: [content]', + 'are_you_sure_you_want_to_delete_file': 'Вы уверены, что хотите удалить файл?', + 'approve': 'Одобрить', + 'are_you_sure_you_want_to_approve_file': 'Вы уверены, что хотите одобрить файл?', + 'schedule': 'Расписание', + 'autosave_enabled': 'Автосохранение включено', + 'autosave_disabled': 'Автосохранение отключено', + 'import': 'Импорт', + 'import_json_file': 'Импорт файла .json', + 'import_csv_file': 'Импорт файла .csv', + 'cancel': 'Отмена', + 'ok': 'Ок', + 'add_cover_image': 'Обложка', + 'properties': 'Свойства', + 'link': 'Ссылка', + 'save': 'Сохранить', + 'blockquote': 'Цитата', + 'html_embed': 'Html вставка', + 'preformatted': 'Предварительно отформатированный', + 'unordered_list': 'Ненумерованный список', + 'ordered_list': 'Нумерованный список', + 'check_list': 'Список проверки', + 'link_button': 'Кнопка ссылки', + 'columns': 'Колонки', + 'carousel': 'Карусель', + 'accordion': 'Аккордеон', + 'tab': 'Вкладка', + 'container': 'контейнер', + 'page_break': 'Разрыв страницы', + 'copy': 'Копировать', + 'clear': 'Очистить', + 'tags': 'Теги', + 'lower_case': 'нижний регистр', + 'upper_case': 'ВЕРХНИЙ РЕГИСТР', + 'title_case': 'Заглавные буквы', + 'sentence_case': 'Предложение.', + 'view': 'Просмотр', + 'find': 'Найти', + 'replace': 'Заменить', + 'match_case': 'Учитывать регистр', + 'match_whole_word_only': 'Соответствие всему слову', + 'replace_all': 'Заменить все', + 'new': 'Новый', + 'rework': 'Переработка', + 'export': 'Экспорт', + 'preview': 'Предварительный просмотр', + 'print': 'Печать', + 'output': 'Выход', + 'horizontal': 'Горизонтальный', + 'vertical': 'Вертикальный', + 'merge': 'Объединить', + 'import_csv': 'Импорт CSV', + 'style': 'Стиль', + 'header': 'Заголовок', + 'body': 'Тело', + 'footer': 'Нижний колонтитул', + 'add_row_above': 'Добавить строку выше', + 'add_row_below': 'Добавить строку ниже', + 'delete_row': 'Удалить строку', + 'add_column_left': 'Добавить столбец слева', + 'add_column_right': 'Добавить столбец справа', + 'delete_column': 'Удалить столбец', + 'before': 'Перед', + 'after': 'После', + 'width': 'Ширина', + 'description': 'Описание', + 'continue': 'Продолжить', + 'file_info': 'Информация о файле', + 'images': 'Изображения', + 'add_image': 'Добавить изображение', + 'edit_disabled': 'Редактирование отключено', + 'components': 'Компоненты', + 'text': 'Текст', + 'list': 'Список', + 'format': 'Формат', + 'read': 'Читать', + 'sections': 'Разделы', + 'blocks': 'Блоки', + 'words': 'Слова', + 'characters_no_spaces': 'Символы ( без пробелов )', + 'characters_with_spaces': 'Символы ( с пробелами )', + 'block_quote': 'Цитата', + 'category': 'Категория', + 'comments': 'Комментарии', + 'draft': 'Черновик', + 'feature': 'Особенность', + 'autosave': 'Автосохранение', + 'search': 'Поиск', + 'split': 'Разделить', + 'smileys_emotion': 'Смайлики и эмоции', + 'people_body': 'Люди и тело', + 'component': 'Компонент', + 'animals_nature': 'Животные и природа', + 'food_drink': 'Еда и напитки', + 'travel_places': 'Путешествия и места', + 'activities': 'Деятельность', + 'objects': 'Объекты', + 'symbols': 'Символы', + 'flags': 'Флаги', + 'latin': 'Латиница', + 'greek': 'Греческий', + 'punctuation_more': 'Знаки препинания и многое другое', + 'math': 'Математика', + 'currency': 'Валюта', + 'rows': 'Строки', + 'cells': 'Ячейки', + 'new_tab': 'Новая вкладка', + 'categories': 'Категории', + 'file_edited_by': 'Файл редактируется', + 'light_mode': 'Светлый режим', + 'st-dark-mode': 'Темный режим', + 'set_date' : 'Установить дату', + 'set_time' : 'Установить время', + 'upgrade_n_icon' : ' Обновить план' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/assets/langs/spanish.js b/docs/plugin/assets/langs/spanish.js new file mode 100644 index 00000000..901ee7d8 --- /dev/null +++ b/docs/plugin/assets/langs/spanish.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Eliminar etiqueta', + 'delete_cover_image': 'Eliminar imagen de portada', + 'strike_through': 'Tachado', + 'superscript': 'Superíndice', + 'subscript': 'Subíndice', + 'inline_code': 'Código en línea', + 'bold': 'Negrita', + 'italic': 'Cursiva', + 'underline': 'Subrayado', + 'inline_link': 'Enlace en línea', + 'remove_format': 'Eliminar formato', + 'align': 'Alinear', + 'left': 'Izquierda', + 'center': 'Centro', + 'right': 'Derecha', + 'justify': 'Justificar', + 'right_to_left': 'De derecha a izquierda', + 'undo': 'Deshacer', + 'redo': 'Rehacer', + 'insert': 'Insertar', + 'menu': 'Menú', + 'website': 'Sitio web', + 'key_shortcuts': 'Atajos de teclado', + 'toggle_theme': 'Alternar tema', + 'previous': 'Anterior', + 'next': 'Siguiente', + 'options': 'Opciones', + 'title': 'Título', + 'settings': 'Configuración', + 'font_family': 'Familia de fuentes', + 'color': 'Color', + 'highlight': 'Resaltar', + 'font_case': 'Mayúsculas y minúsculas', + 'space': 'Espacio', + 'new_line': 'Nueva línea', + 'emojis': 'Emojis', + 'special_characters': 'Caracteres especiales', + 'date_time': 'Fecha y hora', + 'find_and_replace': 'Buscar y reemplazar', + 'fullscreen': 'Pantalla completa', + 'blue': 'Azul', + 'red': 'Rojo', + 'yellow': 'Amarillo', + 'green': 'Verde', + 'grey_3': 'Gris 3', + 'grey_2': 'Gris 2', + 'grey': 'Gris', + 'secondary': 'Secundario', + 'pick_color': 'Seleccionar color', + 'delete': 'Eliminar', + 'close': 'Cerrar', + 'find_previous': 'Buscar anterior', + 'find_next': 'Buscar siguiente', + 'refresh_search': 'Actualizar búsqueda', + 'search_filters': 'Filtros de búsqueda', + 'replace_options': 'Opciones de reemplazo', + 'replace_format': 'Formato de reemplazo', + 'edit': 'Editar', + 'move': 'Mover', + 'clone': 'Clonar', + 'move_section': 'Mover sección', + 'add_section': 'Agregar sección', + 'delete_section': 'Eliminar sección', + 'upload_image': 'Subir imagen', + 'caption': 'Leyenda', + 'citation': 'Cita', + 'heading': 'Encabezado', + 'paragraph': 'Párrafo', + 'paste': 'Pegar', + 'text_styling': 'Estilo de texto', + 'styling_cannot_be_applied': 'No se puede aplicar estilo', + 'media_embed': 'Incrustación de medios', + 'bad_request': 'Solicitud incorrecta', + 'empty_file': 'Archivo vacío', + 'set_content': 'Establecer contenido', + 'this_changes_will_be_applied_on_save': 'Estos cambios se aplicarán al guardar', + 'image': 'Imagen', + 'maximum_10_files': 'Máximo 10 archivos', + 'loading_image': 'Cargando imagen', + 'delete_image': 'Eliminar imagen', + 'are_you_sure_you_want_to_delete_image': '¿Estás seguro de que quieres eliminar la imagen?', + 'create_link': 'Crear enlace', + 'fill_all_credentials': 'Complete todas las credenciales', + 'table': 'Tabla', + 'maximum_10_columns': 'Máximo 10 columnas', + 'select_category': 'Seleccionar categoría', + 'set_title': 'Establecer título', + 'click_continue_to_save': 'Haga clic en Continuar para guardar', + 'undefined_category_index': 'Indefinido: [category_index]', + 'missing_category_index': 'Falta: [category_index]', + 'missing_title': 'Falta: [title]', + 'missing_content': 'Falta: [content]', + 'are_you_sure_you_want_to_delete_file': '¿Estás seguro de que quieres eliminar el archivo?', + 'approve': 'Aprobar', + 'are_you_sure_you_want_to_approve_file': '¿Estás seguro de que quieres aprobar el archivo?', + 'schedule': 'Programar', + 'autosave_enabled': 'Autoguardado habilitado', + 'autosave_disabled': 'Autoguardado deshabilitado', + 'import': 'Importar', + 'import_json_file': 'Importar archivo .json', + 'import_csv_file': 'Importar archivo .csv', + 'cancel': 'Cancelar', + 'ok': 'Aceptar', + 'add_cover_image': 'Imagen de portada', + 'properties': 'Propiedades', + 'link': 'Enlace', + 'save': 'Guardar', + 'blockquote': 'Cita en bloque', + 'html_embed': 'Incrustación de HTML', + 'preformatted': 'Preformateado', + 'unordered_list': 'Lista desordenada', + 'ordered_list': 'Lista ordenada', + 'check_list': 'Lista de verificación', + 'link_button': 'Botón de enlace', + 'columns': 'Columnas', + 'carousel': 'Carrusel', + 'accordion': 'Acordeón', + 'tab': 'Pestaña', + 'container': 'Contenedor', + 'page_break': 'Salto de página', + 'copy': 'Copiar', + 'clear': 'Borrar', + 'tags': 'Etiquetas', + 'lower_case': 'minúsculas', + 'upper_case': 'MAYÚSCULAS', + 'title_case': 'Título', + 'sentence_case': 'Caso de oración.', + 'view': 'Ver', + 'find': 'Buscar', + 'replace': 'Reemplazar', + 'match_case': 'Coincidir mayúsculas y minúsculas', + 'match_whole_word_only': 'Coincidir solo palabras completas', + 'replace_all': 'Reemplazar todo', + 'new': 'Nuevo', + 'rework': 'Rehacer', + 'export': 'Exportar', + 'preview': 'Vista previa', + 'print': 'Imprimir', + 'output': 'Salida', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Combinar', + 'import_csv': 'Importar CSV', + 'style': 'Estilo', + 'header': 'Encabezado', + 'body': 'Cuerpo', + 'footer': 'Pie de página', + 'add_row_above': 'Agregar fila arriba', + 'add_row_below': 'Agregar fila debajo', + 'delete_row': 'Eliminar fila', + 'add_column_left': 'Agregar columna a la izquierda', + 'add_column_right': 'Agregar columna a la derecha', + 'delete_column': 'Eliminar columna', + 'before': 'Antes', + 'after': 'Después', + 'width': 'Ancho', + 'description': 'Descripción', + 'continue': 'Continuar', + 'file_info': 'Información del archivo', + 'images': 'Imágenes', + 'add_image': 'Agregar imagen', + 'edit_disabled': 'Edición deshabilitada', + 'components': 'Componentes', + 'text': 'Texto', + 'list': 'Lista', + 'format': 'Formato', + 'read': 'Leer', + 'sections': 'Secciones', + 'blocks': 'Bloques', + 'words': 'Palabras', + 'characters_no_spaces': 'Caracteres ( sin espacios )', + 'characters_with_spaces': 'Caracteres ( con espacios )', + 'block_quote': 'Cita en bloque', + 'category': 'Categoría', + 'comments': 'Comentarios', + 'draft': 'Borrador', + 'feature': 'Característica', + 'autosave': 'Autoguardado', + 'search': 'Buscar', + 'split': 'Dividir', + 'smileys_emotion': 'Emoticonos y emociones', + 'people_body': 'Personas y cuerpo', + 'component': 'Componente', + 'animals_nature': 'Animales y naturaleza', + 'food_drink': 'Comida y bebida', + 'travel_places': 'Viajes y lugares', + 'activities': 'Actividades', + 'objects': 'Objetos', + 'symbols': 'Símbolos', + 'flags': 'Banderas', + 'latin': 'Latín', + 'greek': 'Griego', + 'punctuation_more': 'Puntuación y más', + 'math': 'Matemáticas', + 'currency': 'Moneda', + 'rows': 'Filas', + 'cells': 'Celdas', + 'new_tab': 'Nueva pestaña', + 'categories': 'Categorías', + 'file_edited_by': 'El archivo está siendo editado por', + 'light_mode': 'Modo Claro', + 'st-dark-mode': 'Modo Oscuro', + 'set_date' : 'Establecer Fecha', + 'set_time' : 'Establecer Hora', + 'upgrade_n_icon' : ' Actualizar Plan' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/docs/plugin/index.html b/docs/plugin/index.html new file mode 100644 index 00000000..98cc0865 --- /dev/null +++ b/docs/plugin/index.html @@ -0,0 +1,1004 @@ + + + + + + + + + + + Adiptal Studio + + + + + + + + + + +
      + + +
      + +
      + + + + +
      +
      +
      + +
        +
      • +
      • +
      +
      + + +
      +
      + +
      +
      + +
        +
      • +
        + + + +
        +
      • +
      • +
      • +
      • +
      +
      +
      + +
        +
      • +
      • +
      • +
      +
      +
      + +
      +
        +
      • +
      +
      + +
      +
      +
      + +
        +
      • +
      • +
      +
      +
      + +
        +
      • +
      • +
      +
      + +
      +
      + +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      +
      +
      +

      +
      + +
      +
      + + +
      + +
      + + +
      +
      + +
      +
        +
      • +
      +
      +
      +
      + +
      +
      +
      +

      +
      + +
      +
      + +
      +
        +
      • +
        + +
          +
          +
        • + +
        • +
        +
        +
        +
        + +
        +
        +
        +

        +
        + +
        +
        + +
        +
          +
        • +
          + +
            +
            +
          • + +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +
          + +
          +
            +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +
          + + +
          +
          + +
          +
            +
          • +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +
          + + +
          +
          + +
          +
            +
          • +
          • +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +
          + + +
          + +
          + + +
          + + +
          + +
          +
            +
          • +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +
          +
          + + +
          + + + + +
          +
          +
          +
          +
          + +
          +
            +
          • +
          • +
          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          +

          +
          +
          +
          + +
          +
          +
          +

          +
          + +
          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
          Windows / LinuxMacActionAvailable
          ctrl + scmd + sSaveYes
          ctrl + shift + Scmd + shift + SAutosave ( Toggle on/off ) Pro
          ctrl + fcmd + fFind and Replace Pro
          ctrl + pcmd + pPrint Pro
          ctrl + alt + vcmd + alt + vPaste Pro (Paste as HTML from Websites, Google Docs & Google Sheets) Pro
          ctrl + shift + Icmd + shift + IImport Pro
          ctrl + shift + Ecmd + shift + EExport Pro
          ctrl + shift + Fcmd + shift + FFullscreen ( Toggle on/off ) Pro
          Popup / Modal
          EscEscCancelYes
          ctrl + Entercmd + EnterSubmitYes
          Insert Element
          ctrl + shift + Hcmd + shift + HHeadingYes
          ctrl + shift + Pcmd + shift + PParagraphYes
          ctrl + shift + Bcmd + shift + BBlockquoteYes
          ctrl + alt + hcmd + alt + hHtml EmbedYes
          ctrl + alt + pcmd + alt + pPreformattedYes
          ctrl + shift + Ucmd + shift + UUnorder ListYes
          ctrl + shift + Ocmd + shift + OOrder ListYes
          ctrl + shift + Ccmd + shift + CCheck ListYes
          ctrl + shiftalt + Pcmd + shiftalt + PPage BreakYes
          Text Style
          shift + Entershift + EnterEnter/New LineYes
          ctrl + bcmd + bBoldYes
          ctrl + icmd + iItalicYes
          ctrl + ucmd + uUnderlineYes
          ctrl + dcmd + dStrikethroughYes
          ctrl + Arrow Upcmd + Arrow UpSuperscriptYes
          ctrl + Arrow Downcmd + Arrow DownSubscriptYes
          ctrl + hcmd + hInline CodeYes
          ctrl + lcmd + lAlign LeftYes
          ctrl + ecmd + eAlign CenterYes
          ctrl + rcmd + rAlign RightYes
          ctrl + jcmd + jAlign JustifyYes
          ctrl + shift + Rcmd + shift + RParagraph Direction ( RTL / LTR )Yes
          ctrl + shift + Lcmd + shift + LCreate/Edit Inline LinkYes
          ctrl + shift + altRcmd + shift + altRRemove FormatYes
          +
          + +
          +
            +
          • +
          +
          +
          +
          + +
          + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/plugin/ui/assets/css/default.min.css b/docs/plugin/ui/assets/css/default.min.css new file mode 100644 index 00000000..b8dc2eab --- /dev/null +++ b/docs/plugin/ui/assets/css/default.min.css @@ -0,0 +1,605 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +/* --------------------- DEFAULT --------------------- */ +:root{ + --primary: #282828; + --primary-rgba: 40,40,40; + + --secondary: #FFFFFF; + --secondary-rgba: 255,255,255; + + --blue: #1976d2; + --blue-rgba: 25,118,210; + + --red: #e53935; + --red-rgba: 229,57,53; + + --yellow: #ffb300; + --yellow-rgba: 255,179,0; + + --green: #66bb6a; + --green-rgba: 102,187,106; + + --grey-1: #EEEEEE; + --grey-2: #DDDDDD; + --grey-3: #AAAAAA; + + --weight-normal: 400; + --weight-strong-1: 500; + --weight-strong-2: 700; +} + +.st-dark-mode:root{ + color-scheme: dark; + --primary: #DDDDDD; + --primary-rgba: 221,221,221; + + --secondary: #252525; + --secondary-rgba: 37,37,37; + + --blue: #64b5f6; + --blue-rgba: 100,181,246; + + --red: #ef5350; + --red-rgba: 239,83,80; + + --yellow: #dbc070; + --yellow-rgba: 219,192,112; + + --green: #81c784; + --green-rgba: 129,199,132; + + --grey-1: #353535; + --grey-2: #454545; + --grey-3: #555555; +} + +*{ + overflow-wrap: break-word; +} + +[data-dir="rtl"], +[data-dir="rtl"] *{ + text-align: initial; + direction: rtl; +} + +pre{ + position: relative; + white-space: pre-wrap; +} + +pre .copy_to_clipboard{ + position: absolute; + top: 0; + right: 0; + background: var( --grey-1 ); + padding: .25rem .5rem; +} + +.hljs{ + background: var( --secondary ) !important; +} + +.hljs *{ + color: inherit; +} + +ul, +ol{ + list-style: none; +} +/* ------------------------- END DEFAULT ------------------------- */ + + + +.adiptal-ui{ + display: flex; + flex-direction: column; + container: adiptal-ui / inline-size; +} + +.adiptal-ui *{ + line-height: 1.6; +} + +.adiptal-ui p, +.adiptal-ui li, +.adiptal-ui td, +.adiptal-ui th, +.adiptal-ui pre>code, +.adiptal-ui blockquote, +.adiptal-ui .il:not([data-cr="eb"]){ + color: rgba( var( --primary-rgba ), .85); +} + + +/* --------------------- TITLE --------------------- */ +.adiptal-ui>header{ + margin-bottom: 1rem; +} + +.adiptal-ui>header h1{ + padding: 0 1rem; + font-size: 3rem; + font-weight: var( --weight-strong-2 ); + letter-spacing: .05rem; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui>header h1{ + font-size: 2.25rem; + } +} + + +/* --------------------- SECTION --------------------- */ +.adiptal-ui>section{ + position: relative; + padding: 3rem 0; +} + +.adiptal-ui>section:not(:first-of-type){ + box-shadow: 0 -.05rem rgba( var( --primary-rgba ), .1); +} + +.adiptal-ui section>*, +.adiptal-ui section .columns>div>*, +.adiptal-ui section .carousel>*:not(.navigation)>*, +.adiptal-ui section .accordion>div>*>*, +.adiptal-ui section .tab>div>*>*, +.adiptal-ui section .container>*{ + position: relative; + margin: 1.5rem; + z-index: 1; +} + +@container adiptal-ui (width >= 768px){ + .adiptal-ui>section>*{ + margin: 1.5rem 15%; + } +} + + + +.adiptal-ui section .columns>div, +.adiptal-ui section .carousel>*:not(.navigation), +.adiptal-ui section .accordion>*>button.active+*, +.adiptal-ui section .tab>.tab-body>*, +.adiptal-ui section .container{ + position: relative; + overflow: auto; +} + + +/* --------------------- ALIGN --------------------- */ +[data-align="CENTER"], +[data-align="CENTER"] *{ + text-align: center; +} + +[data-align="JUSTIFY"], +[data-align="JUSTIFY"] *{ + text-align: justify; +} + +[data-align="RIGHT"], +[data-align="RIGHT"] *{ + text-align: right; +} + + +/* --------------------- STYLING --------------------- */ +.adiptal-ui del, +.adiptal-ui sup, +.adiptal-ui sub, +.adiptal-ui em, +.adiptal-ui strong, +.adiptal-ui code, +.adiptal-ui a, +.adiptal-ui mark{ + display: inline; + font: inherit; + color: inherit; +} + +.adiptal-ui sup, +.adiptal-ui sub{ + font-size: .85rem; +} + +.adiptal-ui em.i{ + font-style: italic; +} + +.adiptal-ui em.ul, +.adiptal-ui a{ + text-decoration: underline; +} + +.adiptal-ui strong{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui mark{ + background: none; +} + +.adiptal-ui code:not(.hljs){ + padding: 0 .25rem .15rem; + border-radius: .25rem; + background: rgba( var( --primary-rgba ), .05); + box-shadow: 0 0 0 .1rem rgba( var( --primary-rgba ), .1); +} + +.adiptal-ui a{ + color: var( --blue ); +} + + +/* --------------------- HEADING --------------------- */ +.adiptal-ui h2{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui h2, +.adiptal-ui h3, +.adiptal-ui h4{ + font-size: 1.6rem; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui h2, + .adiptal-ui h3, + .adiptal-ui h4{ + font-size: 1.5rem; + } +} + +.adiptal-ui h3:not(:first-child), +.adiptal-ui h4:not(:first-child){ + margin-top: 3rem; +} + + +/* --------------------- ASIDE --------------------- */ +.adiptal-ui aside *{ + min-width: unset !important; + max-width: 100% !important; +} + + +/* --------------------- dm --------------------- */ +.adiptal-ui section>a, +.adiptal-ui section div:not(.il)>a{ + display: block; + text-decoration: none; + color: rgba( var( --primary-rgba ), .85); +} + + +/* --------------------- PRE --------------------- */ +.adiptal-ui figure.pre{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui figure.pre figcaption{ + padding: .35rem 1rem; + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui figure.pre>pre>code{ + padding: 1.5rem; +} + + +/* --------------------- dn --------------------- */ +.adiptal-ui figure.image img{ + display: block; + width: 100%; + height: 100%; + object-fit: contain; +} + + +/* --------------------- BLOCKQUOTE --------------------- */ +.adiptal-ui figure.blockquote{ + position: relative; +} + +.adiptal-ui figure blockquote{ + padding: 1rem; +} + +.adiptal-ui figure.blockquote figcaption{ + padding: .35rem 1rem; +} + + +/* --------------------- CAPTION --------------------- */ +.adiptal-ui figure figcaption{ + font-style: italic; + color: rgba( var( --primary-rgba ), .6); +} + +.adiptal-ui figure cite{ + font-size: inherit; + color: inherit; +} + + +/* --------------------- LISTS --------------------- */ +.adiptal-ui li{ + margin: .75rem 0; + margin-left: 1.5rem; +} + +.adiptal-ui section>ul:not(.checklist), +.adiptal-ui section .columns>div>ul:not(.checklist), +.adiptal-ui section .carousel>*>ul:not(.checklist), +.adiptal-ui section .accordion>div>*>ul:not(.checklist), +.adiptal-ui section .tab>div>*>ul:not(.checklist), +.adiptal-ui section .container>ul:not(.checklist){ + list-style-type: disc; +} + +.adiptal-ui section>ol, +.adiptal-ui section .columns>div>ol, +.adiptal-ui section .carousel>*>ol, +.adiptal-ui section .accordion>div>*>ol, +.adiptal-ui section .tab>div>*>ol, +.adiptal-ui section .container>ol{ + list-style-type: decimal; +} + +.adiptal-ui li::marker{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui ul.checklist li{ + position: relative; +} + +.adiptal-ui ul.checklist li::before{ + content: '\025A2'; +} + +.adiptal-ui ul.checklist li.checked::before{ + content: '\2713'; +} + +.adiptal-ui ul.checklist li::before, +.hg ul.checklist button{ + position: absolute; + left: -1.5rem; +} + +.hg ul.checklist button{ + top: .35rem; + padding: .45rem; + z-index: 1; +} + + +/* --------------------- dk --------------------- */ +.adiptal-ui .table>div, +.adiptal-ui .im{ + table-layout: fixed; + overflow-x: auto; +} + +.adiptal-ui table{ + width: 100%; + border-collapse: collapse; +} + +.adiptal-ui table, +.adiptal-ui table td, +.adiptal-ui table th{ + border: solid .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui table td, +.adiptal-ui table th{ + padding: .5rem 1rem; +} + +.adiptal-ui table th{ + font-weight: var( --weight-strong-1 ); +} + + +/* ------------------------- MEDIA EMBED ------------------------- */ +.adiptal-ui .media-embed.spotify, +.adiptal-ui .media-embed.vimeo, +.adiptal-ui .media-embed.youtube, +.adiptal-ui .media-embed.soundcloud{ + aspect-ratio: 16/9; +} + +.adiptal-ui .media-embed.twitter *{ + width: 100% !important; + max-width: 100% !important; +} + +.adiptal-ui .media-embed.spotify iframe, +.adiptal-ui .media-embed.vimeo iframe, +.adiptal-ui .media-embed.youtube iframe, +.adiptal-ui .media-embed.soundcloud iframe{ + display: block; + width: 100%; + height: 100%; +} + + +/* --------------------- dp --------------------- */ +.adiptal-ui .columns{ + display: flex; + flex-wrap: wrap; +} + +.adiptal-ui .columns>*{ + flex: 0 0 50%; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui .columns>*{ + flex: 0 0 100%; + } +} + + +/* ------------------------- dt ------------------------- */ +.adiptal-ui .carousel{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .carousel>.navigation{ + display: flex; + align-items: center; + justify-content: center; + gap: .5rem; + padding: .5rem; + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .carousel>.navigation button{ + background: rgba( var( --primary-rgba ), .05); + padding: .25rem .5rem; + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui .carousel>.navigation .prev{ + transform: rotateY(180deg); +} + +.adiptal-ui .carousel>*:not(.navigation):not(:first-of-type){ + display: none; +} + + +/* --------------------- dq --------------------- */ +.adiptal-ui .accordion{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .accordion>*:not(:last-of-type){ + box-shadow: inset 0 -.05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .accordion>*>button{ + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: .75rem 1.5rem; +} + +.adiptal-ui .accordion>*>button::after{ + content: '+'; + margin-bottom: .25rem; + line-height: 0; + font-size: 1.5rem; + font-weight: var( --weight-strong-1 ); + color: rgba( var( --primary-rgba ), .6); +} + +.adiptal-ui .accordion>*>button.active{ + font-weight: var( --weight-strong-1 ); + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .accordion>*>button.active::after{ + content: '-'; + font-size: 2rem; +} + +.adiptal-ui .accordion>*>button:not(.active)+*{ + display: none; +} + + +/* --------------------- dr --------------------- */ +.adiptal-ui .tab{ + position: relative; + display: flex; + flex-wrap: wrap; + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading{ + width: 100%; + padding: 0; + display: flex; + overflow: auto; + box-shadow: 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading>li{ + flex: 0 0 auto; + margin: 0; + padding: 0; + box-shadow: 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading>li.active{ + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .tab>.tab-heading>li button{ + width: 100%; + padding: .75rem 1.5rem; + text-align: center; +} + +.adiptal-ui .tab>.tab-heading>li.active button{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui .tab>.tab-body{ + width: 100%; +} + +.adiptal-ui .tab>.tab-body>*{ + display: none; +} + +@container adiptal-ui (width >= 768px) +{ + .adiptal-ui .tab.vertical>.tab-heading{ + flex-direction: column; + flex: 0 0 25%; + box-shadow: .05rem 0 rgba( var( --primary-rgba ), .2); + } + + .adiptal-ui .tab.vertical>.tab-body{ + flex: 0 0 75%; + } + + .adiptal-ui .tab.vertical>.tab-heading>li button{ + text-align: left; + } +} + + + +/* --------------------- DIRECTION RIGHT --------------------- */ +.adiptal-ui li[data-dir]{ + margin-left: unset; + margin-right: 1.5rem; +} + +.adiptal-ui ul.checklist li[data-dir]::before, +.hg ul.checklist [data-dir] button{ + left: unset; + right: -1.5rem; +} \ No newline at end of file diff --git a/docs/plugin/ui/assets/js/default.min.js b/docs/plugin/ui/assets/js/default.min.js new file mode 100644 index 00000000..69d8510c --- /dev/null +++ b/docs/plugin/ui/assets/js/default.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .carousel > .navigation .prev")){var o=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)").mi(),a=o.lw(":not(.navigation)");0==a.length&&(a=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)"),a=a.mf(a.length-1)),a.mr(),o.ms()}}),document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .carousel > .navigation .next")){var o=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)").mi(),a=o.lt(":not(.navigation)");0==a.length&&(a=ne(e).mg(".carousel").ne(":scope > *:not(.navigation):first-of-type")),a.mr(),o.ms()}}),document.addEventListener("click",function(t){var e=t.target;e.matches(".adiptal-ui .accordion > * > button:not(.active)")&&(ne(e).mg(".accordion").ne(":scope > * > button.active").lx("active"),ne(e).mb("active"),ne(e.closest(".accordion")).mp().top<0&&e.closest(".accordion").scrollIntoView({behavior:"smooth"}))}),document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .tab-heading > li:not(.active) > button")){var o=ne(e).mg("li").mj();ne(e).mg("ul").ne(":scope > li.active").lx("active"),ne(e).mg(".tab").ne(":scope > .tab-body > *").ms(),ne(e).mg("li").mu("active"),ne(e).mg(".tab").ne(":scope > .tab-body > *").mf(o).mr(),ne(e.closest(".tab")).mp().top<0&&e.closest(".tab").scrollIntoView({behavior:"smooth"})}}),document.addEventListener("click",function(t){var e=t.target;if(e.matches("pre .copy_to_clipboard")){var o=new ClipboardItem({"text/html":new Blob([ne(e).lq().ne(":scope > code").my()],{type:"text/html"}),"text/plain":new Blob([ne(e).lq().ne(":scope > code").my()],{type:"text/plain"})});navigator.permissions.query({name:"clipboard-write"}).then(function(t){"granted"===t.state&&(navigator.clipboard.write([o]).then(t=>console.warn(t)),ne(e).mw("Coppied").mq({background:"rgba( var( --blue-rgba ), .2)",color:"var( --blue )"}),setTimeout(function(){ne(e).mw("Copy").lz("background").lz("color")},500))})}}),["DOMContentLoaded","RenderPreview"].forEach(function(t){document.addEventListener(t,function(t){ne(".adiptal-ui .accordion , .adiptal-ui .tab").forEach(function(t){0==ne(t).ne(":scope > * > button + *").mi().length&&ne(t).ne(":scope > *:first-of-type > button").mn(),0==ne(t).ne(":scope > .tab-body > *").mi().length&&ne(t).ne(":scope > .tab-heading > li:first-of-type > button").mn()})})}); \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000..ad02bcf0 --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "@adiptal/studio", + "version": "1.0.0", + "description": "Adiptal Studio is an iframe based self-host headless page builder to integrate in any cms/framework. It's feature-rich design and gives clean output to design responsive pages.", + "main": "index.html", + "repository": { + "type": "git", + "url": "git+https://github.com/adiptal/studio.git" + }, + "author": "Aditya Patel https://github.com/adiptal/", + "license": "MIT", + "bugs": { + "url": "https://github.com/adiptal/studio/issues" + }, + "homepage": "https://github.com/adiptal/studio#readme" +} diff --git a/plugin/assets/css/main.min.css b/plugin/assets/css/main.min.css new file mode 100644 index 00000000..70e8e4eb --- /dev/null +++ b/plugin/assets/css/main.min.css @@ -0,0 +1,1810 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +/* ------------------------- DEFAULT ------------------------- */ +:root{ + --font-name: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + --font-size: 14px; +} + +*{ + padding: 0; + margin: 0; + border-radius: .15rem; + box-sizing: border-box; + + color: var( --primary ); + font-family: var( --font-name ); + font-size: var( --font-size ); + font-weight: var( --weight-normal ); + text-align: left; + letter-spacing: .025rem; + + user-select: none; + cursor: auto; +} + +*::selection{ + background: var( --blue ); + color: var( --secondary ); +} + +*::before, +*::after{ + border-radius: .15rem; + box-sizing: border-box; +} + +.hf, +.hg{ + width: 100vw; + height: 100vh; +} + +a, +button, +input, +textarea, +iframe{ + border: none; + outline: none; + text-decoration: none; + background: none; + resize: none; +} + +input[type="file"]{ + display: none; +} + +input[type="number"]::-webkit-inner-spin-button, +input[type="number"]::-webkit-outer-spin-button{ + appearance: none; +} + +input[type="range"]{ + appearance: none; + width: 100%; + height: .5rem; + border-radius: 1rem; + background: rgba( var( --primary-rgba ), .1); +} + +input[type="range"]::-webkit-slider-thumb{ + appearance: none; + width: 1.15rem; + height: 1.15rem; + border-radius: 2rem; + background: var( --secondary ); + border: solid .15rem rgba( var( --primary-rgba ), .2); + cursor: pointer; +} + +input[type="color"]{ + display: block; + position: relative; + flex: auto; + height: 1rem; + max-width: 1rem; + aspect-ratio: 1/1; + border-radius: 2rem; + appearance: none; + cursor: pointer; + overflow: hidden; + box-shadow: 0 0 0 .15rem rgba( var( --primary-rgba ), .2); +} + +input[type="color"]:not(:disabled):not(:focus)::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: #c73e1d; + background-image: linear-gradient(315deg, #c73e1d 0%, #a23b72 37%, #2e86ab 100%); +} + +input[type="color"]::-webkit-color-swatch, +input[type="color"]::-webkit-color-swatch-wrapper{ + padding: 0; + border: none; + border-radius: 1rem; +} + +label:has(>input[type="color"]){ + cursor: pointer; +} + +.disabled input[type="range"]::-webkit-slider-thumb{ + display: none; +} + +.disabled input[type="color"]:not(:disabled):not(:focus)::before{ + filter: grayscale(100%); +} + +a, +button{ + display: inline-block; + cursor: pointer; +} + +a *, +button *, +i{ + pointer-events: none; +} + + +a .il{ + pointer-events: all; +} + +.hr{ + position: relative; + padding: .025rem; + width: 100%; + height: 0; + background: rgba( var( --primary-rgba ), .15); +} + +input, +textarea, +.il{ + user-select: text; +} + +strong{ + font-weight: var( --weight-strong-1 ); +} + + +.hg .kw [data-cq="es"], +.hg .hm .kz [data-cq="es"] label{ + position: relative; + height: 100%; + aspect-ratio: 1/1; + box-shadow: inset 0 0 0 .1rem var( --red ); +} + +.hg .hm .kz [data-cq="es"] label{ + border-radius: 1rem; +} + +.hg .kw [data-cq="es"]::after, +.hg .hm .kz [data-cq="es"] label::after{ + content: ''; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + margin: auto; + width: 100%; + height: 0; + padding-bottom: .1rem; + transform: rotate( 45deg ); + background: var( --red ); +} + +.hg [data-cq="es"].disabled label{ + box-shadow: inset 0 0 0 .1rem rgba( var( --primary-rgba ), .4) !important; +} + +.hg [data-cq="es"].disabled label::after{ + background: rgba( var( --primary-rgba ), .4) !important; +} +/* ------------------------- END DEFAULT ------------------------- */ + + + +/* ------------------------- EDITING DISABLED ------------------------- */ +html.disabled::after{ + content: ''; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba( var( --primary-rgba ), .1); + z-index: 9999; +} +/* ------------------------- END EDITING DISABLED ------------------------- */ + + + +/* ------------------------- BUTTON ------------------------- */ +button{ + position: relative; + display: inline-block; + padding: .25rem .5rem; +} + +button::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + margin: auto; + transition: all .15s; + border-radius: inherit; +} + +button:not(.disabled):hover::before{ + background: rgba( var( --primary-rgba ), .05); +} + +button:not(.disabled):active::before, +button:not(.disabled).active::before, +button:not(.disabled).kf::before{ + background: rgba( var( --primary-rgba ), .1); +} + +.accordion>.js>button.active::before, +.tab .tab-heading li.active button::before{ + background: none; +} + +.accordion>.js>button.active, +.tab li.active{ + border-radius: 0; +} + +button span[data-cs]{ + position: relative; + display: inline-block; + margin-left: 1.5rem; + padding: .4rem .8rem; + background: rgba( var( --primary-rgba ), .1); + border-radius: .35rem; +} + +button span[data-cs]::before{ + content: ''; + position: absolute; + top: -.1rem; + left: -.1rem; + width: 1rem; + height: 1rem; + border-radius: 5rem; + background: var( --grey-3 ); +} + +button span[data-cs="1"]::before{ + left: unset; + right: -.1rem; + background: var( --primary ); +} + +.disabled, +.disabled :not(i){ + cursor: not-allowed !important; + color: rgba( var( --primary-rgba ), .6) !important; +} + +.disabled i{ + color: rgba( var( --primary-rgba ), .4) !important; +} +/* ------------------------- END BUTTON ------------------------- */ + + + +/* ------------------------- ADIPTAL UI ------------------------- */ +.hg .adiptal-ui{ + position: relative; + min-height: 100%; +} + +.hg .adiptal-ui>section{ + box-shadow: none !important; +} + +.hg .adiptal-ui>section:only-child{ + flex: 1 0 100%; +} +/* ------------------------- END ADIPTAL UI ------------------------- */ + + + +/* ------------------------- FORM INPUT ------------------------- */ +.hd{ + position: relative; + margin: 1rem auto; + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .2); +} + +.hd:first-of-type{ + margin-top: 0; +} + +.hd:last-of-type{ + margin-bottom: 0; +} + +.hd:focus-within{ + box-shadow: inset 0 0 0 .075rem var( --blue ); +} + +.hd input:not([type="range"]):not([type="color"]), +.hd textarea{ + display: block; + width: 100%; + box-shadow: none; + padding: 1.5rem .5rem .5rem; +} + +.hd textarea{ + min-height: 6rem; +} + +.hd input ~ label, +.hd textarea ~ label{ + position: absolute; + top: .25rem; + left: .5rem; + width: calc( 100% - 1rem ); + font-size: .85rem; + color: rgba( var( --primary-rgba ), .6); + pointer-events: none; +} + +.hd input:focus ~ label, +.hd textarea:focus ~ label{ + color: var( --blue ); +} +/* ------------------------- END FORM INPUT ------------------------- */ + + + +/* ------------------------- TOOLTIP ------------------------- */ +.ln{ + position: fixed; + display: inline-block; + padding: .25rem .5rem; + font-size: .85rem; + color: var( --secondary ); + background: rgba( var( --primary-rgba ), .9); + pointer-events: none; + z-index: 9999; +} + +.st-dark-mode .ln{ + background: var( --primary ); +} +/* ------------------------- END TOOLTIP ------------------------- */ + + + +/* ------------------------- CREATE RECTANGLE ------------------------- */ +.kc{ + position: absolute; + display: none; + pointer-events: none; + background: rgba( var( --primary-rgba ), .1); + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} +/* ------------------------- END CREATE RECTANGLE ------------------------- */ + + + +/* ------------------------- EDITOR ------------------------- */ +.hg{ + display: flex; + background: var( --secondary ); +} + +.hg i{ + font-size: .85rem; +} + +.hg .hl, +.hg .kw, +.hg .hq, +.hg .hy, +.hg .ia, +.hg .adiptal-ui{ + border-radius: 0; +} + + + +/* EDITOR CONTAINERS */ +.hg .hn{ + display: flex; + flex-direction: column; + flex: 1; + max-width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hn .kw > div{ + display: flex; + gap: .5rem; +} + + + +/* SIDEBAR */ +.hg .hl{ + display: none; + flex: 15rem; + width: 100%; + height: 100%; + max-width: 15rem; + background: var( --secondary ); + border-right: solid .2rem rgba( var( --primary-rgba ), .15); + z-index: 4; +} + +.hg .hl.hk{ + flex: 20rem; + max-width: 20rem; + border-right: none; + border-left: solid .2rem rgba( var( --primary-rgba ), .15); +} + +@media(width < 992px) +{ + .hg .hl{ + position: absolute; + } + + .hg .hl.hk{ + right: 0; + } +} + +@media(width < 550px) +{ + .hg .hl, + .hg .hl.hk{ + max-width: unset; + } +} + +.hg .hl .hm{ + display: none; + flex-direction: column; + height: 100%; + overflow: hidden; +} + + + +.hg .hm header{ + padding: .5rem 1rem; + gap: .5rem; +} + +.hg .hm header, +.hg .hm header>.ix>button, +.hg .hm .kz button{ + display: flex; + align-items: center; + justify-content: space-between; +} + +.hg .hm header h2{ + font-size: 1rem; + font-weight: var( --weight-strong-1 ); + text-transform: uppercase; +} + +.hg .hm header>.ix{ + flex: auto; +} + + + +.hg .hm header>button, +.hg .hm .ix>button, +.hg .hm .kz>button, +.hg .hm .kz .hh>button{ + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hm .kz .hh>button, +.hg .hm .kz .hh>label, +.hg .hm .kz .ix>button{ + padding: .4rem .6rem; + font-size: .85rem; + text-transform: uppercase; + font-weight: var( --weight-strong-1 ); +} + +.hg .hm .kz .ix>button>i{ + padding-top: .25rem; +} + + + +.hg .hm .kz{ + display: flex; + flex-direction: column; + gap: .5rem; + padding: .5rem; + overflow: auto; +} + +.hg .hm .kz section{ + display: flex; + flex-direction: column; + gap: 2rem; +} + +.hg .hm .kz .hh:empty, +.hg .hm .kz .hh:has(>.kx:empty), +.hg .hm .kz .kx:empty{ + display: none !important; +} + +.hg .hm .kz .hh{ + display: flex; + flex-direction: column; + gap: .5rem; +} + +.hg .hm .kz>button{ + width: 100%; +} + +.hg .hm .kz .kx{ + align-items: center; + gap: .5rem; + padding: .25rem .5rem; +} + +.hg .hm .hd{ + margin: 0; +} + +.hg .hm .hh .kx:not(label){ + justify-content: center; + padding: 0; + background: none; +} + + +.hg .hm[data-cp="de"] .hh .kx, +.hg .hm[data-cp="dd"] .hh label.kx{ + justify-content: space-between; +} + + +.hg .hm[data-cp="dd"] .hh .ho[data-cq="es"]:not(.active){ + cursor: not-allowed; +} + +.hg .hm[data-cp="dd"] .hh .kx:not(label)>*{ + flex: 0 0 calc( 25% - .5rem ); + max-width: 25%; + display: block; + padding: .4rem; + text-align: center; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .hm[data-cp="dd"] .hh .kx>.ix{ + padding: 0; +} + +.hg .hm[data-cp="dd"] .hh .kx>.ix>button{ + padding: .4rem; + justify-content: center; + background: none; +} + +.hg .hm[data-cp="dd"] .hh .le li{ + display: inline-block; +} + +.hg .hm[data-cp="dd"] .hh .le button{ + display: inline-block; + text-align: center; +} + + + +/* TOOLBAR */ +.hg .kw, +.hg .ko, +.hg footer{ + flex-wrap: wrap; + gap: .5rem; + padding: .5rem; +} + +.hg .kw{ + display: flex; + align-items: center; + justify-content: space-between; + background: rgba( var( --primary-rgba ), .1); +} + + +.kx{ + display: flex; + flex-wrap: wrap; +} + +.kx:empty{ + display: none; +} + +.hg .kx{ + background: rgba( var( --primary-rgba ), .05); +} + +.iy .kx{ + gap: .5rem; + justify-content: space-between; +} + +.iy .kx>.hd{ + flex: 0 0 calc( 33.33% - .5rem ); + margin: 0; +} + + + +/* FILE OPTIONS */ +.hg .kd{ + display: flex; + flex-direction: column; + gap: .5rem; +} + +.hg .kd li{ + margin: 0; +} + +.hg .kd label{ + display: block; + padding: .25rem .5rem; + font-weight: var( --weight-normal ); + background: rgba( var( --primary-rgba ), .05); +} +.hg .kd button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.hg .kd div{ + display: flex; + flex-direction: column; + gap: .5rem; + padding: .5rem; + background: rgba( var( --primary-rgba ), .025); + box-shadow: inset 0 0 0 .1rem rgba( var( --primary-rgba ), .05); +} + +.hg .kd input{ + position: relative; + padding: .25rem .5rem; + background: var( --secondary ); + border: solid .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .kd input:focus{ + border: solid .075rem var( --blue ); +} + +.hg .kd input:not(:disabled):not(:valid):not(:focus)::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: .4rem .5rem; + background: var( --secondary ); + color: rgba( var( --primary-rgba ), .6); + pointer-events: none; +} + +.hg .kd input:not(:disabled):not(:valid):not(:focus)::before{ + content: attr( aria-label ); +} + + + +/* SCROLLABLE */ +.hg .hq{ + flex: auto; +} + +.hg .hq, +.hg .hy{ + overflow: hidden; +} + +.hg .hy{ + width: auto; + height: 100%; + max-width: 100%; + max-height: 100%; +} + + + +.hg .ia{ + width: 100%; + height: 100%; + overflow: auto; + background: var( --secondary ); +} + + + +/* NESTED ELEMENTS */ +.hg .hy>.ia>.adiptal-ui>section::before, +.hg .ia .ik[data-cr="ds"]:has(>section)::before, +.hg .ia .ik[data-cr="dr"]>.tab-body>section::before, +.hg .ia .ik[data-cr="dq"]>.js>section::before, +.hg .ia .ik[data-cr="dp"]>section::before, +.hg .ia .ik[data-cr="dt"]>section::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: solid .075rem rgba( var( --primary-rgba ), .1); + pointer-events: none; +} + +.hg .hy>.ia>.adiptal-ui>section.active::before, +.hg .ia .ik[data-cr="ds"]:has(>section.active)::before, +.hg .ia .ik[data-cr="dr"]>.tab-body>section.active::before, +.hg .ia .ik[data-cr="dq"]>.js>section.active::before, +.hg .ia .ik[data-cr="dp"]>section.active::before, +.hg .ia .ik[data-cr="dt"]>section.active::before{ + border-color: var( --blue ); +} + + + +.hg .ia button>.il{ + margin: 0; + pointer-events: all; +} + +.hg .ia section .js{ + position: relative; +} + +.hg .ia section section{ + min-height: 5rem; + margin: 0; + overflow: auto; +} + +.hg .ia section .js>.gw{ + position: absolute; + top: 0; + right: 0; + margin: 0; + padding: 0 .25rem .1rem; + background: rgba( var( --primary-rgba ), .05); + pointer-events: all; + z-index: 1; + display: none; +} + +.hg .ia section .js:hover>.gw{ + display: unset; +} + +.hg .ia section .js>.gw i{ + margin: 0; + color: rgba( var( --primary-rgba ), .6); +} + +.hg .ia section .js>.il{ + width: calc( 100% - 3rem ); + margin: 1.5rem; +} + +.hg .ia section .tab-heading button>.il{ + min-width: 5rem; +} + + + +/* HOLDER */ +.hg .ik{ + z-index: 1; +} + +.hg .ik:empty{ + display: none; +} + +.hg .ik[data-cr="eg"]:not(.checklist){ + list-style: disc; +} + +.hg .ik[data-cr="ef"]{ + list-style: decimal; +} + +.hg .ik[data-cr="ej"]{ + position: absolute; + width: 100%; + bottom: 0; + margin: 0; +} + +.hg .ik[data-cr="ej"]>*{ + position: absolute; + top: -1rem; + left: 0; + width: 100%; + padding: 1rem 0; + z-index: 1; +} + +.hg .ik[data-cr="ej"]>*>.hr{ + background: rgba( var( --primary-rgba ), .1) !important; +} + + + +/* FOOTER */ +.hg footer{ + display: flex; +} + +.hg footer .kx>a, +.hg footer .kx>button, +.hg footer .kx>.ix>button{ + font-size: .85rem; +} + +.hg footer a{ + padding: .25rem .5rem; + background: rgba( var( --blue-rgba ), .2); +} + +.hg footer a>i{ + color: var( --blue ); +} + +.hg footer .jw{ + background: var( --blue ) !important; + color: var( --secondary ); +} + +.hg footer .jw>i{ + color: var( --secondary ); +} + + + +/* COMMON MENUS BUTTON */ +.hg .ik>button{ + position: absolute; + right: 0; + top: -1.75rem; + display: none; + background: var( --grey-1 ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .ik>button, +.hg .ik>button i{ + line-height: normal; +} + + + +/* TITLE */ +.hg .ik .il ~ label, +.hg .ik .il::before{ + content: attr( aria-label ); + position: absolute; + top: 0; + left: 0; + width: auto; + height: auto; + display: inline-block; + pointer-events: none; + color: rgba( var( --primary-rgba ), .6); +} + +.hg .ik .il:not(:focus):not(:empty) ~ label, +.hg .ik .il:not(:focus):not(:empty)::before{ + display: none; +} + +.hg .ik .il:focus[aria-label]::before, +.hg .ik .il:focus ~ label{ + position: absolute; + display: inline-block; + top: -1.5rem; + left: 0; + padding: .15rem .5rem; + background: rgba( var( --primary-rgba ), .9); + box-shadow: 0 0 0 .075rem rgba( var( --secondary-rgba ), .2); + color: var( --secondary ); + font-size: .85rem; + font-weight: var( --weight-normal ); +} + + + +/* TEXTS */ +.hg .ik:has(>pre.il){ + padding: .25rem; + box-shadow: inset 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.hg .ik pre.il{ + display: block; + height: 15rem; + resize: vertical; + overflow: auto; +} + +.hg .ik pre.il:not(:focus) ~ label{ + left: .35rem; +} + +.hg .ik .il{ + position: relative; + display: inline-block; + width: 100%; + outline: none; + background: none; +} + +.hg .ia section.active .ik:focus-within>.il, +.hg .ia section.active ul.ik:focus-within .il, +.hg .ia section.active ol.ik:focus-within .il{ + background: rgba( var( --primary-rgba ), .05); +} + +.hg .ia .ik .il:focus{ + background: rgba( var( --primary-rgba ), .1) !important; +} + +.hg .ik .il *{ + user-select: auto; +} + +.hg .ik[data-cr="eb"] .il{ + font-size: 1.6rem; + font-weight: var( --weight-strong-1 ); +} + +.hg .ik[data-cr="eb"].lb .il{ + font-weight: var( --weight-normal ); +} + +@container adiptal-ui (width < 768px) +{ + .hg .ik[data-cr="eb"] .il{ + font-size: 1.5rem; + } +} + + + +/* TEXT CONFIG */ +.hg .ik .il *{ + cursor: text; +} + + + +/* CAPTION */ +.hg .ik[data-cr="dn"]>.il:last-child, +.hg .ik[data-cr="dn"]:focus-within>.il:last-child, +.hg .ik[data-cr="ed"]>.il:last-child, +.hg .ik[data-cr="ed"]:focus-within>.il:last-child, +.hg .ik[data-cr="ei"]>.il:last-child, +.hg .ik[data-cr="ei"]:focus-within>.il:last-child, +.hg .ik[data-cr="dk"]>.il:last-child, +.hg .ik[data-cr="dk"]:focus-within>.il:last-child{ + font-style: italic; + color: rgba( var( --primary-rgba ), .6); +} + + + +/* LISTS */ +.hg ul.checklist li::before{ + font-family: "Font Awesome 5 Free"; + content: '\f0c8'; + font-weight: var( --weight-normal ); +} + +.hg ul.checklist li.checked::before{ + content: '\f00c'; + font-weight: var( --weight-strong-2 ); +} + +.hg .ik li.il{ + display: list-item; + width: calc( 100% - 1.5rem ); +} + + + +/* TABLES */ +.hg .ik .im table tr>.active{ + background: rgba( var( --primary-rgba ), .1); +} + +.hg .ik .im table tr .ir{ + display: none; +} + +.hg .ik:focus-within .im table tr .il{ + box-shadow: none; +} + +.hg .ik .im table th, +.hg .ik .im table td{ + display: table-cell; + width: auto; + padding: .5rem 1rem; +} + + + +/* dm BUTTON */ +.hg a.ik{ + cursor: default; +} + + + +/* MEDIA EMBED */ +.hg .ik .ki{ + display: none; +} + +.hg .ik .media-embed .overlay{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* ------------------------- END EDITOR ------------------------- */ + + + +/* ------------------------- CONTEXT MENU ------------------------- */ +.is{ + padding: .25rem; + width: max-content; + display: none; + position: fixed; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 9999; +} + +.is *{ + font-size: .85rem; +} + +.is .ix>button{ + background: rgba( var( --primary-rgba ), .05); +} + +.is .ji{ + display: flex; + justify-content: center; + gap: .25rem; +} + + + +.is.gu .ji>button{ + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gm .ji>*{ + flex: 1; + text-align: center; +} + +.is.gm>button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gx li:not(:empty):not(:last-child){ + margin-bottom: .25rem; +} + +.is.gx li button{ + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + + + +.is.gm>.ix{ + display: block; + width: 15rem; +} + +.is.gm>.ix:not(:last-child){ + margin-bottom: .25rem; +} + +.is.gm>.ix>button{ + display: flex; + align-items: center; + justify-content: space-between; +} + +.is.gm .ix>ul{ + position: relative; + top: 0 !important; + left: 0; + width: 100%; + height: 100%; + box-shadow: none; + overflow: unset !important; +} + +.is.gm .ix li{ + margin-top: .25rem; +} +/* ------------------------- END CONTEXT MENU ------------------------- */ + + + +/* ------------------------- DROPDOWN ------------------------- */ +.ix{ + position: relative; + display: inline-block; +} + +.ix>button{ + width: 100%; + height: 100%; +} + +.ix ul{ + position: absolute; + height: max-content; + width: max-content; + display: none; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 3; +} + +.ix>ul{ + position: fixed; +} + +.ix ul li{ + display: block; +} + +.ix ul li>.ix{ + display: block; +} + +.ix li>small, +.ix li>label, +.ix li>button{ + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + padding: .25rem .5rem; + width: 100%; + cursor: pointer; +} + +.ix li>small{ + font-size: .85rem; + color: rgba( var( --primary-rgba ), .6); + cursor: auto; +} + +.ix li>label:not(.lc)>i{ + margin-left: 1.5rem; +} + +.hg .ix label::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + margin: auto; +} + +.hg .ix label:hover::before{ + background: rgba( var( --primary-rgba ), .05); +} +/* ------------------------- END DROPDOWN ------------------------- */ + + + +/* ------------------------- SELECT ------------------------- */ +.kt{ + position: relative; + display: inline-block; +} + +.kt>button{ + width: 100%; +} + +.kt ul{ + position: fixed; + height: max-content; + width: max-content; + display: none; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .2); + z-index: 3; +} + +.kt ul li{ + display: block; +} + +.kt li>label, +.kt li>button{ + position: relative; + display: block; + padding: .25rem .5rem; + width: 100%; + cursor: pointer; +} +/* ------------------------- END SELECT ------------------------- */ + + + +/* ------------------------- MODAL ------------------------- */ +/* MODAL BOX */ +.iy{ + position: fixed; + top: 0; + left: 0; + display: none; + align-items: center; + justify-content: center; + margin: auto; + width: 100%; + height: 100%; + background: rgba( var( --primary-rgba ), .8); + z-index: 9994; +} + +.iy[data-cp="dn"], +.iy[data-cp="dh"], +.iy[data-cp="di"], +.iy[data-cp="dk"], +.iy[data-cp="dl"], +.iy[data-cp="dm"]{ + z-index: 9995; +} + +.iy[data-cp="dg"]{ + justify-content: flex-start; + align-items: flex-start; + z-index: 9996; + backdrop-filter: blur( .5rem ); +} + +@media(width >= 768px) , (height >= 500px){ + .iy[data-cp="dg"] .iz{ + max-width: 500px; + } +} + +.iy[data-cp="dn"].gi{ + z-index: 9997; +} + +.st-dark-mode .iy{ + background: rgba( var( --secondary-rgba ), .9); +} + +.iy .iz{ + display: flex; + flex-direction: column; + width: 35rem; + max-width: 100%; + max-height: 60%; + background: var( --secondary ); + box-shadow: 0 0 0 .075rem rgba( var( --primary-rgba ), .1); +} + +.iy .iz.gz{ + width: 75%; + max-height: 75%; +} + +.iy .iz.ha{ + width: 100%; + height: 100%; + max-height: 100%; +} + +@media(width < 768px) , (height < 500px){ + .iy .iz, + .iy .iz.gz{ + width: 100%; + height: 100%; + max-height: 100%; + max-width: 100%; + } +} + + + +/* MODAL HEADER */ +.iy .iz>header h2{ + padding: .5rem 1rem; + border-radius: 0; + text-transform: uppercase; + font-weight: var( --weight-strong-1 ); + box-shadow: inset 0 -.075rem rgba( var( --primary-rgba ), .1); +} + + +/* MODAL CONTENTS */ +.iy .kk{ + flex: auto; + padding: 1rem 1rem .5rem; + overflow: auto; +} + +.iy[data-cp="gc"] .kk{ + padding: 1rem; +} + +.iy[data-cp="dn"] .kk, +.iy[data-cp="dz"] .kk, +.iy[data-cp="dy"] .kk, +.iy[data-cp="ea"] .kk{ + padding: 0; +} + + + +/* MODAL BUTTON */ +.iy .iz button{ + padding: .25rem 1rem; + background: rgba( var( --primary-rgba ), .1); +} +.iy .iz .kk button{ + background: rgba( var( --primary-rgba ), .05); +} + +.iy .iz .ix ul button, +.iy .iz .kt ul button{ + background: none; +} + +.iy .iz .kk>button, +.iy .iz .kk .kt>button{ + padding: .35rem 1rem; +} + + + +/* MODAL TOOLBAR */ +.iy .iz>.kw{ + padding: .5rem 1rem; +} + +.iy .iz>.kw>ul{ + display: flex; + flex-wrap: wrap; + justify-content: flex-end; + gap: .5rem; +} + +.iy .iz>.kw>ul li.ja{ + margin-right: auto; +} + +.iy .iz .jl{ + display: none; +} + + + +/* MODAL TABLE */ +.iy .kk>table{ + width: 100%; + border-collapse: collapse; +} + +.iy .kk>table tr>*{ + padding: .5rem 1rem; + border: .25rem solid var( --secondary ); + background: rgba( var( --primary-rgba ), .05); +} + +.iy .kk>table th{ + background: rgba( var( --primary-rgba ), .1); +} + +.iy[data-cp="dj"] .iz{ + width: auto; +} + +@media(width < 768px) , (height < 500px){ + .iy[data-cp="dj"] .iz{ + width: 100%; + height: 100%; + max-height: 100%; + } +} + +.iy[data-cp="dj"] .kk>table tr>:first-of-type{ + box-shadow: none; +} + +.iy[data-cp="dj"] .kk>table tr>:last-of-type{ + text-align: right; +} + + + +/* MODAL dn */ +.iy[data-cp="dn"] .iz .kk{ + display: flex; + flex-direction: column; +} + + +.iy[data-cp="dn"] .jg{ + display: flex; +} + +.iy[data-cp="dn"] .jg:first-of-type{ + margin: 1rem 1rem .5rem; + background: rgba( var( --primary-rgba ), .025); +} + +.iy[data-cp="dn"] .jg:last-of-type{ + flex: 100%; + flex-direction: column; + justify-content: space-between; + overflow: hidden; +} + + +.iy[data-cp="dn"] .iz .hd{ + flex: auto; + margin: 0; +} + +.iy[data-cp="dn"] .iz .hd:not(:focus-within){ + box-shadow: none; +} + + +.iy[data-cp="dn"] .jh{ + display: grid; + --images: 5; + grid-template-columns: repeat( var( --images ) , minmax( 0 , 1fr ) ); + gap: 1rem; + padding: 1rem; + overflow: auto; +} + +@media(width < 550px) +{ + .iy[data-cp="dn"] .jh{ + --images: 1; + } +} + +@media(width >= 550px) and (width < 768px) +{ + .iy[data-cp="dn"] .jh{ + --images: 2; + } +} + +@media(width >= 768px) and (width < 992px) +{ + .iy[data-cp="dn"] .jh{ + --images: 3; + } +} + +@media(width >= 992px) and (width < 1200px) +{ + .iy[data-cp="dn"] .jh{ + --images: 4; + } +} + + +.iy[data-cp="dn"] .jh img{ + display: block; + width: 100%; + aspect-ratio: 3/2; + padding: .5rem; + object-fit: contain; + object-position: center; + background: rgba( var( --primary-rgba ), .05); + cursor: pointer; +} + +.iy[data-cp="dn"] .jh img.active{ + box-shadow: 0 0 0 .075rem var( --grey-3 ); +} + + + +/* MODAL dm */ +.iy[data-cp="dm"] .kk button{ + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + margin: 1rem 0 0; +} + + + +/* MODAL METADATA */ +.iy[data-cp="dg"] .kk>*{ + display: block; + margin: 1rem auto; +} + +.iy[data-cp="dg"] .kk>:first-child{ + margin-top: .5rem; +} + +/* COVER IMAGE */ +.iy[data-cp="dg"] .kk>.gh, +.iy[data-cp="dg"] .kk .kt{ + position: relative; +} + +.iy[data-cp="dg"] .kk>.gh img{ + width: 100%; +} + +.iy[data-cp="dg"] .kk>.gh .gl{ + position: absolute; + top: 1rem; + right: 1rem; + background: var( --secondary ); +} + +.iy[data-cp="dg"] .kk>.gh .gj{ + width: 100%; + padding: .35rem 1rem; +} + +/* SELECT */ +.iy[data-cp="dg"] .kk .kt{ + width: 100%; +} + +.iy[data-cp="dg"] .kk .kt>button>i{ + float: right; +} + +.iy[data-cp="dg"] .kk .km{ + display: flex; + flex-wrap: wrap; + align-items: center; + gap: .5rem; + padding: 1.5rem .5rem .5rem; + overflow: auto; +} + +.iy[data-cp="dg"] .kk .km button{ + display: flex; + align-items: center; +} + +.iy[data-cp="dg"] .kk .km button *{ + color: rgba( var( --primary-rgba ), .6); + font-size: 1.1rem; + font-weight: var( --weight-strong-2 ); +} + +.iy[data-cp="dg"] .kk .km input{ + flex: 1; + width: 100%; + padding: .3rem .5rem; + background: rgba( var( --primary-rgba ), .05); + box-shadow: inset 0 0 .2rem .1rem rgba( var( --primary-rgba ), .1); +} + +.iy[data-cp="dg"] .kk .km input:focus{ + background: rgba( var( --blue-rgba ), .05); + box-shadow: inset 0 0 .2rem .1rem rgba( var( --blue-rgba ), .2); +} + +.iy[data-cp="dg"] .kk .km input.disabled{ + display: none; +} +/* ------------------------- END MODAL ------------------------- */ + + + +/* ------------------------- TOAST ------------------------- */ +.je{ + position: fixed; + top: 0; + right: 0; + left: 0; + height: 100%; + width: 25rem; + max-width: 100%; + margin: auto; + display: flex; + flex-direction: column; + justify-content: flex-end; + gap: 1rem; + padding: 1rem; + z-index: 9999; + pointer-events: none; +} + +@media(width < 550px) +{ + .je{ + width: 100%; + } +} + +.jf{ + width: 100%; + border-radius: .5rem; + overflow: hidden; + background: var( --secondary ); + box-shadow: 0 0 .1rem .1rem rgba( var( --primary-rgba ), .1); + animation: toastShow .15s linear forwards; + pointer-events: all; +} + +.jf.progress{ + display: flex; + align-items: center; + justify-content: space-between; + padding: 0 1rem; +} + +.jf.la{ + animation: toastHide .15s linear forwards; +} + +@keyframes toastShow{ + 0% { transform: translateY(1.5rem) } + 100% { transform: unset } +} + +@keyframes toastHide{ + 0% { transform: translateY(1.5rem) } + 100% { transform: translateY(100%); opacity: 0; max-height: 0; } +} + +.jf .ky:not(:empty){ + padding: .5rem 1rem; +} + +.jf .ky:only-child{ + text-align: center; +} + +.jf .kz{ + padding: 0 1rem .5rem; +} + + +/* TOAST TYPE */ +.jf .ky{ + font-weight: var( --weight-strong-1 ); +} + +.jf::before{ + content: ''; + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + background: rgba( var( --primary-rgba ), .05); +} + +.jf.danger::before{ + background: rgba( var( --red-rgba ), .2); +} + +.jf.warning::before{ + background: rgba( var( --yellow-rgba ), .2); +} + +.jf.success::before{ + background: rgba( var( --green-rgba ), .2); +} + +.jf.info::before{ + background: rgba( var( --blue-rgba ), .2); +} + +.jf.progress i{ + font-size: 1.15rem; + color: var( --green ); +} + +.jf.progress .ky{ + padding: .5rem 0; +} + +.jf.progress .kz{ + display: none; +} + + +/* TOAST TOOLBARS */ +.jf .kw{ + display: flex; + padding: .5rem 1rem; + gap: .5rem; +} + +.jf .kw button{ + flex: 1; + text-align: center; + background: rgba( var( --primary-rgba ), .1); + border-radius: .5rem; + overflow: hidden; +} + + +/* CIRCLE PROGRESS PERCENT */ +svg.progress{ + --progress: 0; + --progress-radius: .5rem; + --progress-calc: 2 * 22 / 7 * var( --progress-radius ); + --progress-stroke-dasharray: calc( var( --progress-calc ) ) , calc( var( --progress-calc ) * 60 * 100 ); + width: 1.15rem; + height: 1.15rem; + transform: rotate(-90deg); + overflow: initial; +} + +svg.progress circle{ + fill: none; + stroke-width: .15rem; + stroke-linecap: round; + transform-origin: center center; + transition: all .25s; +} + +svg.progress circle:nth-child(1){ stroke: rgba( var( --primary-rgba ), .1); } +svg.progress circle:nth-child(2){ + stroke-dasharray: var( --progress-stroke-dasharray ); + stroke-dashoffset: calc( var( --progress-calc ) - ( var( --progress-calc ) * var( --progress ) / 100 ) ); + stroke: var( --blue ); +} +/* ------------------------- END TOAST ------------------------- */ \ No newline at end of file diff --git a/plugin/assets/js/apt_query.min.js b/plugin/assets/js/apt_query.min.js new file mode 100644 index 00000000..439702a4 --- /dev/null +++ b/plugin/assets/js/apt_query.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +"use strict";function ne(t,e=document){var n=new nf;if(t===document||t instanceof Node)n.push(t);else if(t instanceof nf)n=t;else if(t instanceof NodeList)for(var r=0;r *").indexOf(this[e]);break;case"object":return this.indexOf(t)}return-1},nf.prototype.mk=function(){for(var t=new nf,e=0;e *").indexOf(this[e]);break;case"object":return this.indexOf(t)}return-1},nf.prototype.mk=function(){for(var t=new nf,e=0;e
          ',a();break;case!!/https:\/\/twitter\.com\/.*/gm.test(e):n=/https:\/\/twitter\.com\/.*/gm.exec(e);var i="jsonpCallback_"+(new Date).getTime(),s="https://publish.twitter.com/oembed?chrome=noheader%20nofooter%20noborders%20transparent&hide_thread=true&dnt=true&limit=3&maxwidth=1200&url="+encodeURIComponent(n[0])+"&callback="+i,c=document.createElement("script");c.src=s,window[i]=function(e){t='",a(),c.remove(),delete window[i]},c.onerror=function(){nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}),c.remove(),delete window[i]},document.body.append(c);break;case!!/https:\/\/soundcloud\.com\/.*/gm.test(e):n=/https:\/\/soundcloud\.com\/.*/gm.exec(e);var l=new XMLHttpRequest;l.addEventListener("readystatechange",function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=200&&l.status<400?(t='
          '+l.response.html+'
          ',a()):nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}))}),l.open("GET","https://soundcloud.com/oembed?format=json&url="+n[0]),l.responseType="json",l.send();break;case!!/https:\/\/vimeo\.com\/.*/gm.test(e):n=/https:\/\/vimeo\.com\/.*/gm.exec(e),l=new XMLHttpRequest;l.addEventListener("readystatechange",function(){l.readyState===XMLHttpRequest.DONE&&(l.status>=200&&l.status<400?(t='
          ',a()):nh.ce({type:"danger",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}))}),l.open("GET","https://vimeo.com/api/oembed.json?url="+encodeURIComponent(n[0])),l.responseType="json",l.send();break;case!!/https:\/\/open.spotify\.com\/(.*)/gm.test(e):n=/https:\/\/open.spotify\.com\/(.*)/gm.exec(e);t='
          ',a();break;default:nh.ce({type:"warning",heading:lang_pack.json.media_embed,body:lang_pack.json.bad_request}),a()}}).then(function(){return-1!=t&&(t='
          '+t+"
          "),t})}function ns(){if(0!=ne(".twitter").length&&ne(".twitter iframe").length!=ne(".twitter").length){ne('[src*="platform.twitter.com"]:not(iframe)').ma();var e=document.createElement("script");e.src="https://platform.twitter.com/widgets.js",document.body.append(e),e.onload=function(){this.remove()}}}function nt(e,t=!1){document.activeElement.blur();var a=ne('.iy[data-cp="'+e+'"]');if(0!=a.length){switch(a.mq({display:"flex"}),e){case"dm":"INLINE"==ng.ba?(a.ne(".hd:nth-of-type(2) input").mv(ng.bk.toString()),a.ne("h2").mw(lang_pack.json.link)):a.ne("h2").mw(lang_pack.json.link_button),a.ne('button span[data-cs="1"]').mt({"data-cs":0});break;case"dj":a.ne(".kk").mw(ng.bg(!0))}if(1==t)switch(a.mt({"data-cx":!0}),e){case"dn":ng.ar.ne("img").forEach(function(e){a.ne('img[src*="'+e.mt("src")+'"]').mn()});break;case"dm":var n;if("INLINE"==ng.ba){var i=ng.bk.commonAncestorContainer;n=1!=i.nodeType?i.parentElement.mg("a"):i.mg("a")}else n=ng.ar;n&&0!=n.length&&(a.ne(".hd:first-of-type input").mv(n.mt("href")),a.ne(".hd:nth-of-type(2) input").mv(n.my()),"_blank"==n.mt("target")&&ne(".jd span").mt({"data-cs":1}))}a.ne(".hd").mi().mf(0).ne("input").mm()}}function ny(e,t=""){e=e.nd(),e.ne("[colspan]").forEach(function(e){for(var t=parseInt(e.mt("colspan"))-1,a=0;a *")[parseInt(e.mt("data-cw"))].before(e)})}),e.ne("[data-cw]").ly("data-cw");var a=0;return e.ne("tr").forEach(function(e){var t=e.ne(":scope > *").length;t>a&&(a=t)}),e.ne("tr").forEach(function(e){var t=e.ne(":scope > *").length;if(t
          '+e.mx()+'
          "+t+"
          '}function nz(e,t="",a=!1,n=!0){var i="";switch(n&&(i='class="il" contenteditable="true"'),e){case"TBODY":if(a){var s=document.createElement("td");return s.mt({contenteditable:"true"}),s.mu("il"),s}return""+t+"";default:if(a){s=document.createElement("th");return s.mt({contenteditable:"true"}),s.mu("il"),s}return""+t+""}}function nm(e){var t=ne("html"),a=ne(".jy"),n=ne(".jo");switch(e){case"dark":if(t.md("st-dark-mode"))return;break;case"light":if(!t.md("st-dark-mode"))return}t.md("st-dark-mode")?(a.mw(''),n.mt({href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/intellij-light.min.css"})):(a.mw(''),n.mt({href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/vs2015.min.css"})),t.mb("st-dark-mode"),ng.p=0==ne(".st-dark-mode").length?"default-mode":"dark-mode",ne('.hm input[list="og"]').mv("").ml("change"),ng.j()}var nk;window.onload=function(){ng.x=ne(".hf").mw(),window.parent.postMessage(["adiptal_studio_live",window.name],"*");var e=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";nm(e),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{var t=e.matches?"dark":"light";nm(t)}),ne("head").mz('')},document.addEventListener("touchstart",function(e){nk=setTimeout(function(){ne(e.target).mo()},500)}),document.addEventListener("touchend",function(){nk&&clearTimeout(nk)}),document.addEventListener("click",function(e){var t=e.target;t.matches(".ix ul , .ix ul *")||ne(".ix > button.active").lx("active").lt().ms().ls().ma(),t.matches(".kt ul , .kt ul *")||ne(".kt > button.active").lx("active").lt().ms()}),document.addEventListener("click",function(e){(!e.target.matches(".ku , .is , .is *")||e.target.matches(".go")||e.target.matches(".it")||e.target.matches(".io")||e.target.matches(".ip")||e.target.matches(".iq:not(.disabled)")||e.target.matches(".gy[data-cq]")||e.target.matches(".gw")||e.target.matches(".gv"))&&nq()}),document.addEventListener("scroll",function(e){e.target.matches(".ia , .iy *")&&nq()},!0),document.addEventListener("contextmenu",function(e){e.preventDefault(),document.body.click()}),document.addEventListener("click",function(e){e.target.matches(".hg .kl")&&ng.bo()}),document.addEventListener("click",function(e){var t=e.target;t.matches(".jj")&&nt("dg")}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hd label")&&t.lw("input , textarea").mm()}),["click","dragstart"].forEach(function(e){document.addEventListener(e,function(e){e.target.matches(".adiptal-ui a , .adiptal-ui a *")&&(e.preventDefault(),e.stopPropagation())})});var ng={base_url:window.location.toString().split(/index\.(php|html)/)[0],ar:void 0,bk:void 0,bw:[],aq:0,o:"default-element",p:"default-mode",ba:"INLINE",br:void 0,bu:{autosave_interval:3e4},bi:{},q:{},d:{eb:"Heading",ec:"Paragraph",ed:"Blockquote",eh:"Html Embed",ei:"Preformatted",eg:"Unordered List",ef:"Ordered List",ee:"Check List",dp:"Columns",dt:"Carousel",dq:"Accordion",dr:"Tab",ds:"Container",dm:"Link",dl:"Media Embed",dk:"Table",dn:"Image",ej:"Page Break"},ab:'',aa:function(){return'

          '+this.ab+'
          '},ay:"",az:'

          ',ax:function(){return'
          '+this.az+this.aa()+'
          '+this.ay+"
          "},av:function(e){var t="";t+='
          '),this.bg()},au:function(){var e=this;ne(".hg:empty").forEach(function(t){t.mw(e.ax()),e.bh(t),e.av(t),e.ag(t);try{e.bx(t)}catch(e){console.warn(e)}})},bz:function(){return null!=this.ar&&(0!=this.ar.mi().length||this.bt&&this.ar.mg("section").md("active"))},bn:function(){ne(".ho.active").lx("active")},bg:function(e=!1,t=this.y()){for(var a,n=document.createTreeWalker(t[0],NodeFilter.SHOW_TEXT);a=n.nextNode();)a.before(document.createTextNode(" "));var i=t.my(),s=i.split(/(\s+)/).filter(function(e){return""!=e&&!/^(\s+)$/.test(e)}).length;if(ne(".hg footer .jx").mw(s+" "+lang_pack.json.words),e)return"
          ~ "+Math.ceil(s/200)+" mins
          "+(ne('.hg .ik[data-cr="ej"]:not(:empty)').length+1)+"
          "+ne('.hg .ik:not([data-cr="ej"]):not(:empty)').length+"
          "+s+"
          "+i.replaceAll(/\s/g,"").length+"
          "+i.length+"
          "},bj:function(e="",t){switch(e){case"ca":case"bl":case"fw":ne(".twitter > div").forEach(function(e){1==e.children.length&&e.na(decodeURIComponent(e.ne(".ki").mw()))}),ns(),ne(".hg .ko").mi().ne(".hd:first-of-type input").ml("input"),ne(".iy").mi().ne(".jb").mn(),this.bg(),ne(document).ml("RenderPreview"),ne("[data-cn]:not([aria-label])").forEach(function(e){e.mt({"aria-label":lang_pack.json[e.mt("data-cn")]})}),ne("[data-cm]:empty").forEach(function(e){var t=e.childNodes;0!=t.length&&t[0].remove(),e.na(lang_pack.json[e.mt("data-cm")])});break;case"u":ns(),this.bg(!1,t),ne(document).ml("RenderPreview");var a=[];ne("mark[data-cy].active").ly("class").forEach(function(e){for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);t=n.nextNode();)-1==a.indexOf(t)&&a.push(t)}),0!=a.length&&this.aw(a);break;case"w":if(this.at){var n=this.ar.ls('.ik[data-cr="ej"]:not(:empty)').mf(0).ne(".ki").mt("class");null!=n&&this.ar.ne(".ki").mt({class:n}),delete this.at}break;case"paste":ne(".iy").mi().ne(".jb").mn();break;case"fh":t[0].lv().ne("[rowspan]").forEach(function(e){if(t[1]<=e.mg("tr").mj()+parseInt(e.mt("rowspan"))-1){e.mt({rowspan:parseInt(e.mt("rowspan"))+1}),t[0].ne(":scope > *").mf(e.mj()).mu("ir");var a=parseInt(e.mt("colspan"));if(!isNaN(a))for(var n=1;n *").mf(e.mj()+n).mu("ir")}});break;case"fk":t.forEach(function(e){var t=e.mj(),a=e.lv("[colspan]").mf(0);if(0!=a.length&&t<=a.mj()+parseInt(a.mt("colspan"))-1){if(null!=a.mt("rowspan"))for(var n=parseInt(a.mt("rowspan"))-1,i=0;i *").mf(t).mu("ir");e.mu("ir"),a.mt({colspan:parseInt(a.mt("colspan"))+1})}})}},bo:function(e){0==ne('.iy[data-cp="dg"]').mi().length?0!=ne('.iy[data-cp="dg"]').length&&0==Object.keys(this.bi).length?nh.ce({type:"warning",heading:lang_pack.json.empty_file}):(this.bi.content=this.al(),"autosave"==e&&(this.bi[e]=this.bu.autosave_interval),window.parent.postMessage(["adiptal_studio_saveFile",window.name,this.bi],"*")):nh.ce({type:"danger",heading:lang_pack.json.click_continue_to_save})},y:function(){var e=this;ne(".id").lx("id"),ne(".il *").forEach(function(e){"BR"!=e.nodeName&&""==e.textContent.trim()&&e.replaceWith(...e.childNodes)}),ne(".il").ne("b , i , u , span , mark:not([style]) , mark:not([data-cy]) , small , big").forEach(function(e){e.replaceWith(...e.childNodes)}),ne(".il").forEach(function(e){""==e.textContent.trim()&&e.mw("")});var t=!1;if(ne(".ia > .adiptal-ui > section:not(:empty)").forEach(function(e){1!=t&&(e.ne(':scope > .ik[data-cr="ej"]:not(:empty)').length>1||0==e.ne(':scope > .ik[data-cr="ej"]:last-of-type:not(:empty)').length)&&(t=!0)}),ne(".ia > .adiptal-ui > section:not(:empty)").length!=ne('.ik[data-cr="ej"]:not(:empty)').length||t){ne(".ia > .adiptal-ui > section:not(:empty)").forEach(function(e){e.replaceWith(...e.childNodes)}),ne(".ia > .adiptal-ui > section").ma(),0==ne('.ia > .adiptal-ui > .ik[data-cr="ej"]:last-of-type:not(:empty)').length&&ne(".ia > .adiptal-ui").mz('
          ');var a=0,n=ne(".ia > .adiptal-ui > .ik").length-1;ne(".ia > .adiptal-ui").mz("
          "),ne(".ia > .adiptal-ui > .ik").forEach(function(e,t){ne(".ia > .adiptal-ui > section")[a].append(e),e.matches('.ik[data-cr="ej"]:not(:empty)')&&t .adiptal-ui").mz("
          "),a++)})}ne(document).ml("oi"),ne('.ik[data-cr="ds"]').forEach(function(e){[...e.classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.lx(t)})}),this.bb(),this.s(),ne(".hg .ik:not([data-cu])").forEach(function(t){t.mt({"data-cu":e.aq}),e.aq=e.aq+1}),ne(".hg .ik:not([data-co])").forEach(function(t){var a=t.mt("data-cr");t.md("checklist")&&(a="ee"),t.mt({"data-co":e.d[a]})});try{this.c()}catch(e){console.warn(e)}var i=ne(".hg .ia").mk();return i.ne("ins").forEach(function(e){e.replaceWith(...e.childNodes)}),i.ne("[style]").forEach(function(e){e.lz("display")}),i.ne(".twitter").forEach(function(e){e.ne(":scope > div").mw(e.ne(":scope .ki").mx())}),i.ne(".it").ms(),i.ne(".active").lx("active"),i.ne("[data-cm]").mw(""),i.ne("[data-cn]").ly("aria-label"),i.ne("[id]").ly("id"),i.ne("[width]").ly("width"),i.ne("[height]").ly("height"),i.ne('[class=""]').ly("class"),i.ne("[__idm_id__]").ly("__idm_id__"),i.ne("[__idm_frm__]").ly("__idm_frm__"),i.ne('[style=""] , [style]:not([data-cy])').ly("style").ly("data-cy"),i},al:function(e=!1,t=0){var a,n=this,i=!0;ne('.ia [class*="st-"]').forEach(function(e){[...e.classList].forEach(function(t){!/\bst-\S+\b/.test(t)||null!=n.q["."+t]&&0!=Object.keys(n.q["."+t]).length||e.lx(t)})}),a=0==t?this.y().ne(":scope > .adiptal-ui > section > .ik:not(:empty)"):this.y().ne("section").mf(t).ne(":scope > .ik:not(:empty)");for(var s="",c=0;c"+o.ne(".il").mw()+"":i?(l="

          "+o.ne(".il").mw()+"

          ",i=!1):l="

          "+o.ne(".il").mw()+"

          ");break;case"ec":""!=o.ne(".il").mw().trim()&&(l="

          "+o.ne(".il").mw()+"

          ");break;case"ed":if(""!=o.ne(".il:first-child").mw().trim()){var r="";""!=o.ne(".il:last-child").mw().trim()&&(r+="
          "+o.ne(".il:last-child").mw()+"
          "),l='
          '+o.ne(".il:first-child").mw()+"
          "+r+"
          "}break;case"ei":if(""!=o.ne(".il:first-child").mw().trim()){r="";""!=o.ne(".il:last-child").mw().trim()&&(r+="
          "+o.ne(".il:last-child").mw()+"
          "),l='
          '+o.ne(".il:first-child").mw()+"
          "+r+"
          "}break;case"eh":""!=o.my().trim()&&(l="");break;case"eg":o.ne("li").forEach(function(e){e.mg("ul").md("checklist")&&e.mw(e.ne("span").mw())}),o.ne("li").forEach(function(e){""==e.mw().trim()&&e.remove()}),0!=o.ne("li").length&&(l=o.mx());break;case"ef":o.ne("li").forEach(function(e){""==e.mw().trim()&&e.remove()}),0!=o.ne("li").length&&(l=o.mx());break;case"dp":o.ne(":scope > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=n.al(!0,t),i="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(i+=e+" ")}),l+='
          '+a+"
          "}),""!=l&&(l='
          '+l+"
          ");break;case"dt":o.ne(":scope > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=n.al(!0,t),i="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(i+=e+" ")}),l+='
          '+a+"
          "}),""!=l&&(l='");break;case"dq":o.ne(":scope > .js > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=e.lw().ne(":scope > .il").mw(),i=n.al(!0,t),s="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(s+=e+" ")}),""!=a&&(l+="
          '+i+"
          ")}),""!=l&&(l='
          '+l+"
          ");break;case"dr":var d="",m="",h=o.mt("class").split(" ").filter(e=>"horizontal"==e||"vertical"==e)[0];null==h&&(h=""),o.ne(":scope > .tab-body > section").forEach(function(e){var t=e.mg(".ia").ne("section").indexOf(e),a=e.mg(".tab").ne(":scope > .tab-heading > li > button > .il")[e.mj()].mw(),i=n.al(!0,t),s="";[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(s+=e+" ")}),""!=a&&(d+="
        • ",m+='
          '+i+"
          ")}),""!=d&&""!=m&&(l='
            '+d+'
          '+m+"
          ");break;case"ds":var u="";o.ne(":scope > section").forEach(function(e){[...e.classList].forEach(function(e){/\bst-\S+\b/.test(e)&&(u+=e+" ")});var t=e.mg(".ia").ne("section").indexOf(e);l+=n.al(!0,t)}),l='
          '+l+"
          ";break;case"dm":var g=o.mk();g.ne(":scope > span").forEach(function(e){e.replaceWith(...e.childNodes)}),l=g.mx();break;case"dl":l=0==o.ne(".ki").length?o.mw().trim():'";break;case"dk":var p=o.ne("table");r="";""!=o.ne(":scope > .il").mw().trim()&&(r+="
          "+o.ne(":scope > .il").mw()+"
          "),l='
          '+p.mx()+"
          "+r+"
          ";break;case"dn":if(0!=o.ne(":scope > *").length){var f="";o.ne("img").forEach(function(e){f+=e.outerHTML});r="";""!=o.ne(":scope > .il").mw().trim()&&(r="
          "+o.ne(":scope > .il").mw()+"
          "),l='
          '+f+r+"
          "}break;case"ej":e||(s+="
          ",i=!0)}if(l=l.nd(),0!=l.length){0!=l.ne(".twitter .ki").length&&l.ne(".twitter > div").forEach(function(e){e.mw(decodeURIComponent(e.ne(".ki").mw()))}),l.md("pre")&&0==l.ne(".hljs").length&&(l.ne(":scope > pre").mz('")}):r.ne("li").mu("il").mt({contenteditable:"true"}),r.mt({"data-cr":"eg"}).mu("ik"),this.w(r[0].outerHTML);break;case"OL":r.mt({"data-cr":"ef"}).mu("ik"),r.ne("li").mu("il").mt({contenteditable:"true"}),this.w(r[0].outerHTML);break;case"DIV":if(r.md("columns")){this.e("dp",!1,!1,r.ne(":scope > *").length);for(var d=this.ar,m=0;m *").length;m++)[...r.ne(":scope > *")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mf(m).mu(e)}),d.ne(":scope > section").mf(m).ml("focusin"),await n.bs(r.ne(":scope > *").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("carousel")){this.e("dt",!1,!1,r.ne(":scope > div:not(.navigation)").length);for(d=this.ar,m=0;m div:not(.navigation)").length;m++)[...r.ne(":scope > div:not(.navigation)")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mf(m).mu(e)}),d.ne(":scope > section").mf(m).ml("focusin"),await n.bs(r.ne(":scope > div:not(.navigation)").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("accordion")){this.e("dq",!1,!1,r.ne(":scope > *").length);for(d=this.ar,m=0;m *").length;m++)[...r.ne(":scope > div > div")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > .js > section").mf(m).mu(e)}),d.ne(":scope > .js > section").mf(m).ml("focusin"),i.ne("section.active").lw().ne(":scope > .il").mw(r.ne(":scope > *").mf(m).ne(":scope > button").mw()),await n.bs(r.ne(":scope > *").mf(m).ne(":scope > button + *"),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("tab")){var h=r.mt("class").split(" ").filter(e=>"horizontal"==e||"vertical"==e)[0];this.e("dr",!1,!1,r.ne(":scope > .tab-heading > li > button").length);d=this.ar;d.mu(h);for(m=0;m .tab-heading > li > button").length;m++)[...r.ne(":scope > .tab-body > *")[m].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > .tab-body > section").mf(m).mu(e)}),d.ne(":scope > .tab-body > section").mf(m).ml("focusin"),d.ne(":scope > .tab-heading > li > button > .il").mf(m).mw(r.ne(":scope > .tab-heading > li > button").mf(m).mw()),await n.bs(r.ne(":scope > .tab-body > *").mf(m),t,!0);d.mg("section").ml("focusin"),d.mn()}else if(r.md("container")){this.e("ds",!1,!1);d=this.ar;[...r[0].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&d.ne(":scope > section").mu(e)}),d.ne(":scope > section").ml("focusin"),await n.bs(r,t,!0),d.mg("section").ml("focusin"),d.mn()}else r.md("media-embed")&&this.w('
          '+r[0].outerHTML+"
          ");break;case"FIGURE":if(r.md("image")){var u="";r.ne("img").forEach(function(e){u+=e.outerHTML});var g="";0!=r.ne("figcaption").length&&(g=r.ne("figcaption").mw()),this.w('
          '+u+'
          "+g+"
          ")}else if(r.md("table")){g="";0!=r.ne(":scope > figcaption").length&&(g+=r.ne(":scope > figcaption").mw(),r.ne(":scope > figcaption").ma()),r.ne("tr > *").mu("il").mt({contenteditable:"true"}),this.w(ny(r.mw(),g))}else r.md("blockquote")?(this.e("ed"),0!=r.ne("figcaption cite").length&&this.ar.ne(".il:last-child").mw(r.ne("figcaption cite").mw()),this.ar.ne(".il:first-child").mw(r.ne("blockquote").mw()).mm()):r.md("pre")&&(this.e("ei"),0!=r.ne("figcaption").length&&this.ar.ne(".il:last-child").mw(r.ne("figcaption").mw()),this.ar.ne(".il:first-child").my(r.ne(":scope > pre > code").my()));break;case"A":this.w(r.mu("ik").mt({"data-cr":"dm"})[0].outerHTML),this.ar.mw(''+this.ar.mw()+"")} +null!=r.mt("data-align")?this.ar.ne(".il:first-child").mt({"data-align":r.mt("data-align")}):-1!=["eb","ed"].indexOf(this.ar.mt("data-cr"))&&null!=r.ne("[data-align]").mt("data-align")&&this.ar.ne(".il:first-child").mt({"data-align":r.ne("[data-align]").mt("data-align")}),null!=r.mt("data-dir")?this.ar.ne(".il:first-child").mt({"data-dir":r.mt("data-dir")}):-1!=["eb","ed"].indexOf(this.ar.mt("data-cr"))&&null!=r.ne("[data-dir]").mt("data-dir")&&this.ar.ne(".il:first-child").mt({"data-dir":r.ne("[data-dir]").mt("data-dir")}),[...r[0].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&n.ar.mu(e)})}this.e("ej"),[...s[l].classList].forEach(function(e){/\bst-\S+\b/.test(e)&&n.ar.ne(".ki").mu(e)})}if(i.ne("section.active").lz("display"),!a){i.ne(".twitter").forEach(function(e){0==e.ne(".ki").length&&e.ne(":scope > div").mz('
          '+encodeURIComponent(e.ne(":scope > div").mw())+"
          ")});var p=e.filter(e=>e.matches(".css_styles"));null!=p&&null!=p.mt("data-css_style")&&(this.q=Object.assign(this.q,JSON.parse(p.mt("data-css_style")))),0!=Object.keys(c).length?this.ap=c:delete this.ap,i.ne("mark:not([data-cy])").mt({"data-cy":"true"}),delete this.bt,this.u(t)}return!0},u:function(e=!1,t=!1){if(1!=this.bt){null==this.ap&&(this.ap={},this.ap.pointer=0,this.ap.style_json_array=[],this.ap.changes=[],this.ap.content={},e||this.ap.changes.push([]));var a=this.y(),n=a.mw().replaceAll(/\> {2,}\ <").nd(),i={},s=[],c=this.ap.content;n.ne(".ik").forEach(function(e){var t=e;0!=t.ne(".ik").length&&(t=t.cloneNode(!0),t.ne(".ik").mw("")),i[t.mt("data-cu")]=t.outerHTML}),Object.keys(i).forEach(function(e){var a=[];if(a[0]=i[e],t&&t.cu==e)a.move_json=t,c[e].kr=[],c[e].ks.push(a);else if(null==c[e])c[e]=[],c[e].kr=[],c[e].ks=[a];else{if(0==c[e].ks.length||c[e].ks[c[e].ks.length-1][0]==i[e])return;c[e].kr=[],c[e].ks.push(a)}s.push(e)}),this.i("_add_history_",void 0,s),0!=s.length&&(this.ap.pointer!=this.ap.changes.length-1&&(this.ap.changes=this.ap.changes.slice(0,this.ap.pointer+1)),this.ap.changes.push(s),this.ap.pointer=this.ap.changes.length-1,ne(".hg .kr").mu("disabled"),this.ap.pointer>0&&ne(".hg .ks").lx("disabled"),ne(".hg")[0].normalize(),this.bj("u",a))}},ca:function(){var e=this;this.ap.pointer>0&&(this.ap.changes[this.ap.pointer].forEach(function(t){/--css-change--/.test(t)?e.i("_undo_",parseInt(t.split("--css-change--")[0])):e.ap.content[t].kr.push(e.ap.content[t].ks.pop())}),this.ap.changes[this.ap.pointer].forEach(function(t){if(!/--css-change--/.test(t))if(0!=e.ap.content[t].ks.length){var a=e.ap.content[t].kr[e.ap.content[t].kr.length-1];e.h(t,a,"from");try{e.g(t,a,"from")}catch(e){console.warn("Ignoring Holder Move Location Issue, as it will be fixed in ongoing iterations !")}}else ne('.hg .ik[data-cu="'+t+'"]').mw("")}),this.ap.pointer=this.ap.pointer-1,ne(".hg .kr").lx("disabled"),this.ap.pointer<1&&ne(".hg .ks").mu("disabled"),this.bj("ca"),delete this.ar,this.bn(),ne(".ia > .adiptal-ui > section").ml("focusin"))},bl:function(){var e=this;this.ap.changes.length>this.ap.pointer+1&&(this.ap.pointer=this.ap.pointer+1,this.ap.changes[this.ap.pointer].forEach(function(t){/--css-change--/.test(t)?e.i("_redo_",parseInt(t.split("--css-change--")[1])):e.ap.content[t].ks.push(e.ap.content[t].kr.pop())}),this.ap.changes[this.ap.pointer].forEach(function(t){if(!/--css-change--/.test(t)){var a=e.ap.content[t].ks[e.ap.content[t].ks.length-1];e.h(t,a,"to");try{e.g(t,a,"to")}catch(e){console.warn("Ignoring Holder Move Location Issue, as it will be fixed in ongoing iterations !")}}}),ne(".hg .ks").lx("disabled"),this.ap.changes.length-1==this.ap.pointer&&ne(".hg .kr").mu("disabled"),this.bj("bl"),delete this.ar,this.bn(),ne(".ia > .adiptal-ui > section").ml("focusin"))},h:function(e,t,a){var n=this;try{n.f(e,t,a)}catch(e){console.warn("Ignoring Holder Absent Issue, as it will be fixed in ongoing iterations !")}ne('.hg .ik[data-cu="'+e+'"]').mx(n.ap.content[e].ks[n.ap.content[e].ks.length-1][0]),ne('.hg .ik[data-cu="'+e+'"] .ik').forEach(function(e){t=n.ap.content[e.mt("data-cu")].ks[n.ap.content[e.mt("data-cu")].ks.length-1],n.h(e.mt("data-cu"),t,a)})},f:function(e,t,a){if(t&&null!=t.move_json){var n=t.move_json;if(0==ne('.hg .ik[data-cu="'+e+'"]').length){var i=ne(".hg section").mf(n[a+"_section"]),s=t[0].nd()[0];0!=i.length&&(i[0].matches(":empty")||i[0].ne(":scope > .ik").length<=n[a+"_holder"]?i[0].append(s):i[0].ne(":scope > .ik")[n[a+"_holder"]].before(s))}}},g:function(e,t,a){var n=t.move_json,i=ne('.hg .ik[data-cu="'+e+'"]')[0];if(null!=n&&null!=i){var s=i.mg(".hg").ne(".ia section")[n[a+"_section"]];if(n.from_section!=n.to_section){if(s.matches(":empty")||s.ne(":scope > .ik").length<=n[a+"_holder"]?s.append(i):s.ne(":scope > .ik")[n[a+"_holder"]].before(i),i.mg(".hg").ne('.ik[data-cu="'+n.cu+'"]').length>1){a="from"==a?"to":"from";var c=i.mg(".hg").ne(".ia section").ne(':scope > .ik[data-cu="'+n.cu+'"]');c=c.filter(function(e){return e!=s.ne(':scope > .ik[data-cu="'+n.cu+'"]')[0]}),c.ma()}}else"from"==a?n.from_holder .ik")[n.from_holder].before(i):s.ne(":scope > .ik")[n.from_holder].after(i):"to"==a&&(n.from_holder>n.to_holder?s.ne(":scope > .ik")[n.to_holder].before(i):s.ne(":scope > .ik")[n.to_holder].after(i))}},i:function(e,t,a){var n=this.ap.style_json_array;if("_undo_"==e||"_redo_"==e)try{this.q=JSON.parse(n[t]),this.s()}catch(e){console.warn(e)}finally{this.t=t}else if("_add_history_"==e){var i=ne(".css_styles").mt("data-css_style");0!=n.length&&n[n.length-1]==i||n.push(i),this.t!=n.length-1&&(a.push(this.t+"--css-change--"+(n.length-1)),this.t=n.length-1)}},s:function(){var e="",t=this.q;Object.keys(t).forEach(function(e){Object.keys(t[e]).forEach(function(a){Object.keys(t[e][a]).forEach(function(n){Object.keys(t[e][a][n]).forEach(function(i){Object.keys(t[e][a][n][i]).forEach(function(s){Object.keys(t[e][a][n][i][s]).forEach(function(c){0==Object.keys(t[e][a][n][i][s][c]).length&&t[e][a][n][i][s][c].constructor===Object&&delete t[e][a][n][i][s][c]}),0==Object.keys(t[e][a][n][i][s]).length&&t[e][a][n][i][s].constructor===Object&&delete t[e][a][n][i][s]}),0==Object.keys(t[e][a][n][i]).length&&t[e][a][n][i].constructor===Object&&delete t[e][a][n][i]}),0==Object.keys(t[e][a][n]).length&&t[e][a][n].constructor===Object&&delete t[e][a][n]}),0==Object.keys(t[e][a]).length&&t[e][a].constructor===Object&&delete t[e][a]})}),Object.keys(t).forEach(function(a){function n(e,t){return e-t}var i=Object.keys(t[a]).sort(n).reduce((e,n)=>(e[n]=t[a][n],e),{});t[a]=i,Object.keys(t[a]).forEach(function(n){Object.keys(t[a][n]).forEach(function(i){Object.keys(t[a][n][i]).forEach(function(s){Object.keys(t[a][n][i][s]).forEach(function(c){"0"!=s&&(e+="@container adiptal-ui ("+c+" "+s+"){");var l="";"dark-mode"==i&&(l+=".st-dark-mode ");var o="";if("default-element"!=n)o=n;e+=l+".adiptal-ui "+a+o+"{",Object.keys(t[a][n][i][s][c].css).forEach(function(l){e+=l+":"+t[a][n][i][s][c].css[l]+";"}),e+="}","0"!=s&&(e+="}")})})})})}),ne(".css_styles").mt({"data-css_style":JSON.stringify(t)}).mw(e)},ah:function(e){if(null!=this.bk){var t=this.bk.commonAncestorContainer;if(1!==t.nodeType&&(t=t.parentElement),null!=t)return t.closest(e)}},am:function(){var e=this.bk.startContainer,t=this.bk.endContainer;if(!this.bk.collapsed){var a=this.ah(".il");if(a&&a.my()!==this.bk.toString()){var n,i;try{n=e.splitText(this.bk.startOffset)}catch(t){n=e}if(e==t)try{n.splitText(this.bk.endOffset)}catch(t){n=e}else try{i=t.splitText(0),i.splitText(this.bk.endOffset)}catch(e){i=t}this.bk=document.createRange(),this.bk.setStartBefore(n),e==t?this.bk.setEndAfter(n):this.bk.setEndAfter(i),this.z().addRange(this.bk)}this.bw=[],this.ai(a,!0,NodeFilter.SHOW_TEXT)}},ac:function(e){var t=this;switch(e){case"dh":case"di":case"dm":return"dm"==e&&"A"==this.ar[0].nodeName?void nh.ce({type:"danger",heading:lang_pack.json.create_link,body:lang_pack.json.link_inside_link}):void nt(e);case"ex":return void this.bm(" ");case"ey":return this.bm("
          "),this.aw(this.bk.commonAncestorContainer.nextSibling),void this.bk.collapse(!0)}if(!this.bk.collapsed){var a;this.am();var n=[];if(this.bw.forEach(function(i){switch(e){case"ek":a=document.createElement("del");break;case"el":a=document.createElement("sup");break;case"em":a=document.createElement("sub");break;case"en":a=document.createElement("em"),a.mu("ul");break;case"eo":a=document.createElement("em"),a.mu("i");break;case"ep":a=document.createElement("strong");break;case"eq":a=document.createElement("code");break;case"et":i.textContent=i.textContent.toLowerCase(),a=i;break;case"eu":i.textContent=i.textContent.toUpperCase(),a=i;break;case"ev":var s=i.textContent.toLowerCase().split(".");s.forEach(function(e,t){var a=e.split(" "),n=!1;a.forEach(function(e,t){""==a[t]||n||(a[t]=a[t][0].toUpperCase()+a[t].slice(1),n=!0)}),s[t]=a.join(" ")}),i.textContent=s.join("."),a=i;break;case"ew":s=i.textContent.toLowerCase().split(".");s.forEach(function(e,t){var a=e.split(" ");a.forEach(function(e,t){""!=a[t]&&(a[t]=a[t][0].toUpperCase()+a[t].slice(1))}),s[t]=a.join(" ")}),i.textContent=s.join("."),a=i;break;case"er":var c=i.parentElement,l=c.mg("[data-cy]:not(.il)")[0];null!=l&&0!=l.mg(".il").length&&t.bk.intersectsNode(l)&&-1!=t.bk.toString().indexOf(l.my())?(a=l,l.ly("data-cy")):a=document.createElement("mark")}if(a){var o=!1;if(1===a.nodeType){if(""==a.innerHTML){var r=i.cloneNode(!0);a.append(r)}else o=!0;n.push(r)}else n.push(a);0==o&&i.replaceWith(a)}}),"er"==e)return;this.u(),this.aw(n)}},by:function(e){if(this.bw=[],this.ai(this.ah(".il"),!0,NodeFilter.SHOW_ELEMENT),0!=this.bw.length)switch(e){case"ek":this.bw.forEach(function(e){e.nodeName+e.className=="DEL"&&e.replaceWith(...e.childNodes)});break;case"el":this.bw.forEach(function(e){e.nodeName+e.className=="SUP"&&e.replaceWith(...e.childNodes)});break;case"em":this.bw.forEach(function(e){e.nodeName+e.className=="SUB"&&e.replaceWith(...e.childNodes)});break;case"en":this.bw.forEach(function(e){e.nodeName+e.className=="EMul"&&e.replaceWith(...e.childNodes)});break;case"eo":this.bw.forEach(function(e){e.nodeName+e.className=="EMi"&&e.replaceWith(...e.childNodes)});break;case"ep":this.bw.forEach(function(e){e.nodeName+e.className=="STRONG"&&e.replaceWith(...e.childNodes)});break;case"eq":this.bw.forEach(function(e){e.nodeName+e.className=="CODE"&&e.replaceWith(...e.childNodes)});break;case"dm":var t=this;return this.bw.forEach(function(e){e.nodeName+e.className=="A"&&t.aw(e)}),void nt("dm",!0);case"es":this.bw.forEach(function(e){null!=e&&0!=e.mg(".il").length&&e.replaceWith(...e.childNodes)})}this.u(),this.bn()},b:function(e){var t=this;if(null==e&&null!=this.bk&&this.bk.commonAncestorContainer!=document){var a=this.bk.commonAncestorContainer;if(1!==a.nodeType||a.md("il")||this.b(a),a.parentElement.md("ik")||ne(a).lo(".il").forEach(function(e){t.b(e)}),!this.bk.collapsed){var n=document.createElement("div");n.append(this.bk.cloneContents()),n.ne("*").forEach(function(e){t.b(e)})}}else if(null!=e&&this.bz()){switch(e.nodeName){case"DEL":this.ar.mg(".hg").ne('.ho[data-cq="ek"]').mu("active");break;case"SUP":this.ar.mg(".hg").ne('.ho[data-cq="el"]').mu("active");break;case"SUB":this.ar.mg(".hg").ne('.ho[data-cq="em"]').mu("active");break;case"EM":e.md("ul")?this.ar.mg(".hg").ne('.ho[data-cq="en"]').mu("active"):e.md("i")&&this.ar.mg(".hg").ne('.ho[data-cq="eo"]').mu("active");break;case"STRONG":this.ar.mg(".hg").ne('.ho[data-cq="ep"]').mu("active");break;case"CODE":this.ar.mg(".hg").ne('.ho[data-cq="eq"]').mu("active");break;case"A":this.ar.mg(".hg").ne('.ho[data-cq="dm"]').mu("active");break;case"MARK":this.ar.mg(".hg").ne('.ho[data-cq="es"]').mu("active")}0!=this.ar.mg(".hg").ne(".ho.active").length&&this.ar.mg(".hg").ne('.ho[data-cq="es"]').mu("active")}},e:function(e,t=!1,a=!0,n=2){switch(e){case"eb":this.w('
          ",t,a);break;case"ec":this.w('
          ",t,a);break;case"ed":this.w('
          ",t,a);break;case"eg":for(var i="",s=0;s';this.w('
            '+i+"
          ",t,a);break;case"ef":for(i="",s=0;s';this.w('
            '+i+"
          ",t,a);break;case"ee":for(i="",s=0;s';this.w('
            '+i+"
          ",t,a);break;case"eh":this.w('
          ",t,a);break;case"ei":this.w('
          ",t,a);break;case"ej":if(0!=ne(".hg .ik section.active").length)return;this.w('
          ',t,a);break;case"dp":for(i="",s=0;s
          ';this.w('
          '+i+"
          ",t,a);break;case"dt":for(i="",s=0;s';this.w('",t,a);break;case"dq":for(i="",s=0;s
          ';this.w('
          '+i+"
          ",t,a);break;case"dr":var c="",l="";for(s=0;s",l+='
          ';this.w('
            '+c+'
          '+l+"
          ",t,a);break;case"ds":this.w('
          ',t,a);break;case"dn":case"dm":case"dk":case"dl":"dm"==e&&(this.ba="BLOCK"),nt(e)}},v:function(e,t){return 0!=e.lv(t).length?e.lv(t):e.mg("section").lv("section").ne(t)},w:function(e,t=!1,a=!0){if(document.activeElement.blur(),0==ne(".hg section.active").length&&ne(".ia > .adiptal-ui > section").ml("focusin"),this.bz())if(t){var n=this.ar.mt("data-cu");this.ar.mx(e.nd().mt({"data-cu":n}).mx()),ne('.ik[data-cu="'+n+'"]').mn()}else this.ar.nc(e),this.ar.lt().mn();else ne(".hg section.active").mz(e),ne(".hg section.active > .ik:last-of-type").mn();this.bj("w"),a&&(this.u(),this.ar.ne(".il:first-child").mf(0).mm())},bb:function(){ne('.hg .ik[data-cr="eb"]').mu("lb"),ne(".ia > .adiptal-ui > section").forEach(function(e){e.ne(':scope > .ik[data-cr="eb"]').mf(0).lx("lb")})},bp:function(e){var t=ne(".hg .ia");0!=t.length&&(null==e||0==e.length?t[0].scrollTop=t[0].scrollHeight:e[0].scrollIntoView({behavior:"smooth"}))},be:async function(e,t=!1,a=!1){var n=await navigator.permissions.query({name:"clipboard-read"});if("denied"!==n.state){var i=await navigator.clipboard.read();for(var s of i){var c="";s.types.includes("text/html")&&!e.target.md("jv")&&0==t?c=await s.getType("text/html"):s.types.includes("text/plain")&&(c=await s.getType("text/plain"),t=!0),""!=c&&(t?this.bm(await c.text(),!0):a?this.bd(await c.text()):this.bm(this.bf(await c.text())))}}else nh.ce({type:"danger",heading:"Enable Clipboard Permission"})},bc:function(e){null==e.mt("data-cy")&&e.ly("style");var t=[...e.attributes].filter(function(t){if(-1==["href","src","data-dir","target","style"].indexOf(t.name)&&(-1==["EMi","EMul"].indexOf(e.nodeName+e.className)||-1==["i","ul"].indexOf(t.value)||"class"!=t.name))return t.name});t.forEach(function(t){e.ly(t.name)})},bf:function(e){var t=this,a=document.createElement("div");a.mw(e);var n=["A","DEL","SUP","SUB","EM","STRONG","CODE","MARK","BR"];return this.bw=[],this.ai(a,!1,NodeFilter.SHOW_ELEMENT),this.bw.forEach(function(e){-1==n.indexOf(e.nodeName)&&null==e.mt("data-cy")?e.replaceWith(...e.childNodes):t.bc(e)}),a.ne("mark:not([data-cy])").mt({"data-cy":"true"}),a.mw()},ak:function(){var e=window.getSelection();e.rangeCount&&(this.bk=e.getRangeAt(0))},aw:function(e,t=!1){if(this.bk=document.createRange(),e instanceof Array){var a=e[0],n=e[e.length-1];this.bk.setStartBefore(a),a==n?this.bk.setEndAfter(a):this.bk.setEndAfter(n)}else this.bk.selectNodeContents(e);this.z().addRange(this.bk),this.b(),t&&this.bk.collapse()},z:function(e=window.getSelection()){return e.removeAllRanges(),e},bm:function(e,t=!1){if(null!=this.bk){if(t)var a=document.createTextNode(e);else{a=document.createElement("div");a.innerHTML=e}if(this.bk.deleteContents(),this.bk.insertNode(a),1===a.nodeType){var n=a.lastChild;a.replaceWith(...a.childNodes),a=n}}this.bj("paste"),this.u(),this.aw(a,!0)},ai:function(e,t=!1,a=NodeFilter.SHOW_ALL){for(var n,i=document.createTreeWalker(e,a);n=i.nextNode();)-1==this.bw.indexOf(n)&&(!t||t&&this.bk.intersectsNode(n)&&this.ah(".ik")==this.ar[0])&&this.bw.push(n)},aj:function(e,t,a){function n(e){if(3==e.nodeType&&e==t)i=!0,c.push(e);else if(3==e.nodeType&&e==a)s=!0,c.push(e);else if(3==e.nodeType)i&&!s&&c.push(e);else for(var l=0,o=e.childNodes.length;!s&&l button").mu("disabled"),a.ne('.hm[data-cp="dd"]').ne(".lh , .li , .lk , .ll").mu("disabled")),t.matches(".hg .ju")&&(a.ne(".lf").mg(".ix").ne(":scope > button").mu("disabled"),a.ne(".lf , .kh").mu("disabled"))}),document.addEventListener("focusout",function(e){var t=e.target;t.matches(".hg .jv")&&(ne(".ho.disabled").lx("disabled"),ne('.hm[data-cp="dd"]').ne(".ho , .lj , .jr").mg(".ix").ne(":scope > button.disabled").lx("disabled"),ne('.hm[data-cp="dd"]').ne(".lh , .li , .lk , .ll").lx("disabled")),t.matches(".hg .ju")&&(ne(".hg .lf").mg(".ix").ne(":scope > button.disabled").lx("disabled"),ne(".lf.disabled , .kh.disabled").lx("disabled"))}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hg ul.checklist button")&&(t.lq().mb("checked"),ng.u())}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".go")){var a=ng.ar;switch(t.mt("data-cq")){case"fr":return"dm"==a.mt("data-cr")&&(ng.ba="BLOCK"),void nt(a.mt("data-cr"),!0);case"fs":a.md("tab")&&a.lx("horizontal").lx("vertical").mu(t.mt("data-cs"));break;case"fn":a.mw("");var n=ng.v(a,".ik:not(:empty)");n.mf(n.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}ng.u()}}),["focusin","click","contextmenu"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.matches(".ia section , .ia section *")&&!t.closest("section").md("active")){var a=ne(".hg .ia section.active");if(t.closest(".hg").ne("section.active").lx("active"),t.closest("section").mu("active"),null!=ng.ar)if(0==ng.ar.mg("section.active").length)delete ng.ar;else{var n=ng.ar.lo("section.active");ng.ar=n.mf(n.length-1)}else if(0!=a.mg("section.active").length){n=a.lo("section.active");ng.ar=n.mf(n.length-1)}ne(document).ml("oj")}t.matches("section.active .ik , section.active .ik *")&&(ng.ar=t.mg(".ik"),ne(document).ml("oj"))})}),document.addEventListener("contextmenu",function(e){var t=e.target;t.matches(".ik section")&&(ng.ar=t.mg(".ik"),ng.ar.mg(".hg").ne("section.active").lx("active"),ng.ar.mg("section").mu("active"),ne(document).ml("oj"))}),["keyup","focusin","focusout","touchmove","touchend","mouseup","contextmenu"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;t.matches(".il , .il *")&&(-1!=["focusin","focusout"].indexOf(e.type)&&ng.u(),"focusout"!=e.type&&(ng.bn(),ng.ak(),ng.b()))})});const observer=new MutationObserver(function(e,t){for(const t of e)t.target.matches('.ik[data-cr="ej"] .ki')&&ne(document).ml("oi")});document.addEventListener("oi",function(e){ne('.ik[data-cr="ej"] .ki').forEach(function(e){[...e.closest("section").classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.closest("section").lx(t)}),[...e.classList].forEach(function(t){/\bst-\S+\b/.test(t)&&e.closest("section").mu(t)})})}),observer.observe(document,{attributes:!0,subtree:!0,childList:!0});var nh={ce:async function(e={}){var t="";if(e.hasOwnProperty("heading")&&(t+='
          '+e.heading+"
          "),e.hasOwnProperty("body")&&(t+='
          '+e.body+"
          "),""!=t){e.hasOwnProperty("controllers")&&e.controllers&&(t+='
          ",e.infinite=!0);var a="";e.hasOwnProperty("type")&&(a=e.type,"progress"==a&&(t=''+t,e.infinite=!0));var n="";e.hasOwnProperty("name")&&""!=e.name.trim()&&(n='data-cp="'+e.name+'"'),e.hasOwnProperty("type")&&"success"!=e.type&&"progress"!=e.type&&await this.cg(ne(".jf."+e.type)),e.hasOwnProperty("name")&&await this.cg(ne('.jf[data-cp="'+e.name+'"]')),t='
          "+t+"
          ",await this.cf(t,e)}return!0},cf:async function(e,t){return ne(".je").na(e),t.hasOwnProperty("infinite")&&t.infinite||setTimeout(this.cg,5e3,ne(".jf:first-of-type")),!0},cg:async function(e){return new Promise(function(t){e.mu("la"),setTimeout(function(){e.ma(),t()},150)})},ch:async function(e,t){e.ne(":scope > svg").mq({"--progress":t}),100==t&&setTimeout(function(){e.ne(":scope > :not(div)").ma(),e.na(''),setTimeout(nh.cg,5e3,e)},500)}};document.addEventListener("click",function(e){var t=e.target,a=t.mg(".jf");if(0!=a.length)if(0==a.ne(".kw").length||t.md("jb"))nh.cg(a);else if(t.md("jc")){var n=a.mt("data-cp");switch(n){case"deleteImages":window.parent.postMessage(["adiptal_studio_"+n,window.name,[ng.br.mt("src")]],"*");break;case"approveFile":case"deleteFile":window.parent.postMessage(["adiptal_studio_"+n,window.name],"*")}nh.cg(a)}}),document.addEventListener("mouseover",function(e){if(!(window.innerWidth<768)){var t=e.target;t.matches("[aria-label]:not(.il)")?ne(".ln").mw(t.mt("aria-label")).mr().mq(np(t)):ne(".ln").ms()}}),document.addEventListener("click",function(e){var t=e.target,a=t.parentElement;if(null!=a)if(t.matches(".ix > button:not(.disabled) , .kt > button:not(.disabled)"))a.ne(":scope > ul:first-of-type").mr().mq(no(t)),a.ne(":scope > ul:not(:first-of-type)").ma(),t.mu("active");else if(t.matches(".ix ul button:not(.iu) , .kt ul button:not(.iu)"))document.body.click(),0!=t.mg(".kt").length&&ni.ck(t.mg(".kt"),t.mt("data-cq"));else if(t.matches(".ix ul label:not(.lc)")){var n=t.mg(".ix");n.mz('
          • '+t.lt().mw()+"
          "),n.ne(":scope > ul:last-of-type").mr().mq(no(n.ne(":scope > button"))),n.ne(":scope > ul:not(:last-of-type)").ms()}else if(t.matches(".ix ul label.lc")){n=t.mg(".ix");n.ne(":scope > ul:last-of-type").ma(),n.ne(":scope > ul:last-of-type").mr()}});var ni={ck:function(e,t){this.cj(e);var a=e.ne('[data-cq="'+t+'"]');return 0!=a.length&&(a.mt({"data-ct":!0}),e.ne(":scope > button > span").mw(a.mw())),e.ne("[data-cq]").indexOf(a[0])},ci:function(e){var t=e.ne('[data-ct="true"]');if(0!=t.length)return[t.mt("data-cq"),t.textContent]},cj:function(e,t=""){e.ne("[data-ct]").ly("data-ct");var a=e.ne('[data-cq="'+t+'"]');0!=a.length?(a.mt({"data-ct":!0}),e.ne(":scope > button > span").mw(a.mw())):e.ne(":scope > button > span").mw(e.ne(":scope > button > span").mt("data-cp"))}};document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .gw")){ne(".gw.active").lx("active"),t.mu("active");var a=ne(".hf > .gu");a.mr().mq(nn(t,a))}}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg .accordion > * > button > .il , .hg .tab-heading > li > button > .il")&&t.parentElement.click()}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".gu .gv")){var a=ne(".gw.active").mg(".js"),n=a.mj();switch(t.mt("data-cq")){case"du":case"dv":var i=a.mk(),s=[...i[0].classList].filter(function(e){return/\bst-\S+\b/.test(e)});if(s.forEach(function(e){i[0].classList.remove(e)}),i.ne(".ik").ma(),i.ne(".il").mw(""),i.ly("style").lx("active"),i.ne("[style]").ly("style"),i.ne(".active").lx("active"),i.ne('[class=""]').ly("class"),"du"==t.mt("data-cq")?a.nb(i.mx()):a.nc(i.mx()),0!=ne(".gw.active").mg(".tab").length){a=ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li").mf(n);"du"==t.mt("data-cq")?a.nb('
        • "):a.nc('
        • ")}break;case"dw":case"dx":var c=a[0],l=!1;if("dw"==t.mt("data-cq")){var o=c.lw();0!=o.length&&(o[0].before(c),l=!0)}else{o=c.lt();0!=o.length&&(o[0].after(c),l=!0)}1==l&&0!=ne(".gw.active").mg(".tab").length&&(c=ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li")[n],"dw"==t.mt("data-cq")?c.lw()[0].before(c):c.lt()[0].after(c));break;case"fn":0==ne(".gw.active").mg(".js").mh(".js").length?(ne(".gw.active").mg(".ik").mo(),ne('.gn [data-cq="fn"]').mn()):(0!=ne(".gw.active").mg(".tab").length&&ne(".gw.active").mg(".tab").ne(":scope > .tab-heading > li").mf(n).ma(),ne(".gw.active").mg(".js").ma())}ne(".gw.active").lx("active"),ng.u()}}),document.addEventListener("contextmenu",function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .kk img')){var a=ne(".gx");a.mr().mq(nn(t,a)),ng.br=t}else if(0!=t.mg(".ik").length){t=t.mg(".ik");a=ne(".gn");var n=t.mt("data-cr");-1!=["dn","dm"].indexOf(n)?a.ne(".hb").mr():a.ne(".hb").ms(),"dr"==n?(a.ne(".gt").mr(),a.ne(".gt li").ms(),a.ne('.gt li button[data-cr="'+n+'"]').mg("li").mr()):a.ne(".gt").ms(),ne(document).ml("ok",{target:e.target}),a.mr().mq(nn(t,a))}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .jx"))nt("dj");else if(t.matches(".hg .lm"))nt("gb");else if(t.matches(".hg .ge")){ne("script.ge").ma(),t.closest(".ix").ne(":scope > button").ly("data-cm").mw(lang_pack.json[t.mt("data-cs")]);var a=document.createElement("script");a.src=ng.base_url+"assets/langs/"+t.mt("data-cs")+".js",a.classList.add("ge"),document.body.append(a)}}),document.addEventListener("keydown",function(e){var t=e.target;if(t.matches(".il , .il *")){var a=t.mg(".ik"),n=a.mt("data-cr");if("Enter"!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey){if(!("Backspace"!==e.key&&"Delete"!==e.key||""!=t.mw().trim()||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)){if(e.preventDefault(),"ef"==n||"eg"==n)1==a.ne("li").length?(a.mo(),ne('.gn [data-cq="fn"]').mn()):0!=t.mg(".checklist").length?(t.closest("li").lw().ne(".il").mm(),t.closest("li").remove()):(t.lw().mm(),t.remove());else if("dk"==n){var i=!0;if(t.mg("tr").ne(":scope > *").forEach(function(e){""!=e.mw().trim()&&(i=!1)}),i){var s=t.parentElement.lw().ne(".il:not(.ir)");a.ne(".it").mn(),ne('.gm [data-cq="fl"]').mn(),s.mf(s.length-1).mm()}}else 0==a.ne(".il:not(:empty)").length&&(a.mo(),ne('.gn [data-cq="fn"]').mn());ng.u()}}else e.preventDefault(),"ef"!=n&&"eg"!=n||""==t.mw().trim()?"ef"!=n&&"eg"!=n||""!=t.mw().trim()?"dk"==n?(a.ne(".it").mn(),ne('.gm [data-cq="fg"]').mn()):ng.e("ec"):(0!=t.mg(".checklist").length?t.closest("li").remove():t.remove(),0==a.ne("li").length&&a.mw(""),ng.e("ec")):a.md("checklist")?(t.parentElement.nc('
        • '),t.parentElement.lt().ne(".il").mm()):(t.nc('
        • '),t.lt().mm())}}),document.addEventListener("keydown",function(e){var t=e.target;"Escape"!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey?!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey?(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey&&"R"===e.key&&e.preventDefault():"r"===e.key?e.preventDefault():0!=ne(".iy").mi().length&&"Enter"===e.key?ne(".iy").mi().ne(".jc").mf(0).mn():"s"===e.key&&(e.preventDefault(),ng.bo()):0!=ne(".jf").length?nh.cg(ne(".jf")):0!=ne(".ix > ul , .kt > ul").mi().length?document.body.click():0!=ne(".hg .ko").mi().length?ne(".hg .ko .hc").mn():0!=ne(".iy").mi().ne(".jb").length?ne(".iy").mi().ne(".jb").mf(0).mn():0!=ne(".iy").mi().ne(".jc").length&&ne(".iy").mi().ne(".jc").mf(0).mn(),"INPUT"!=t.nodeName&&"TEXTAREA"!=t.nodeName&&(!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey?" "!==e.key||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(ng.ak(),ng.u()):"z"===e.key?(e.preventDefault(),document.activeElement.blur(),ng.ca()):"y"===e.key&&(e.preventDefault(),document.activeElement.blur(),ng.bl()))}),document.addEventListener("keydown",function(e){var t=e.target;if(t.matches(".il , .il *"))if(!e.ctrlKey&&!e.metaKey||e.shiftKey||e.altKey)(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey?"L"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="dm"]').mn()):"R"===e.key&&(e.preventDefault(),t.mg(".hg").ne(".kh").mn()):"R"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.altKey&&(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="es"]').mn());else if("a"===e.key)e.preventDefault(),ng.aw(t);else if("c"===e.key||"x"===e.key){e.preventDefault();var a=document.createElement("p");"c"===e.key?a.append(ng.bk.cloneContents()):a.append(ng.bk.extractContents());var n=new ClipboardItem({"text/html":new Blob([a.innerHTML],{type:"text/html"}),"text/plain":new Blob([a.textContent],{type:"text/plain"})});navigator.permissions.query({name:"clipboard-write"}).then(function(e){"granted"===e.state&&navigator.clipboard.write([n]).then(e=>console.warn(e))})}else"b"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="ep"]').mn()):"i"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="eo"]').mn()):"u"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="en"]').mn()):"d"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="ek"]').mn()):"ArrowUp"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="el"]').mn()):"ArrowDown"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="em"]').mn()):"h"===e.key?(e.preventDefault(),t.mg(".hg").ne('.ho[data-cq="eq"]').mn()):"l"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="LEFT"]').mn()):"e"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="CENTER"]').mn()):"r"===e.key?(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="RIGHT"]').mn()):"j"===e.key&&(e.preventDefault(),t.mg(".hg").ne('.lf[data-cq="JUSTIFY"]').mn())}),document.addEventListener("keydown",function(e){(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey?"H"===e.key?(e.preventDefault(),ng.e("eb")):"P"===e.key?(e.preventDefault(),ng.e("ec")):"B"===e.key?(e.preventDefault(),ng.e("ed")):"U"===e.key?(e.preventDefault(),ng.e("eg")):"O"===e.key?(e.preventDefault(),ng.e("ef")):"C"===e.key&&(e.preventDefault(),ng.e("ee")):(e.ctrlKey||e.metaKey)&&!e.shiftKey&&e.altKey?"p"===e.key?(e.preventDefault(),ng.e("ei")):"h"===e.key&&(e.preventDefault(),ng.e("eh")):"P"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&e.altKey&&(e.preventDefault(),ng.at=!0,ng.e("ej"))}),document.addEventListener("paste",function(e){e.target.matches(".il , .il *")&&(e.preventDefault(),ng.be(e))}),document.addEventListener("keydown",function(e){ +"v"===e.key&&(e.ctrlKey||e.metaKey)&&e.altKey&&!e.shiftKey?(e.preventDefault(),ng.be(e,!1,!0)):"V"===e.key&&(e.ctrlKey||e.metaKey)&&e.shiftKey&&!e.altKey&&(e.preventDefault(),ng.be(e,!0))}),document.addEventListener("change",function(e){var t=e.target;t.matches('.iy[data-cp="dn"] .jl')&&(t.files.length>0&&t.files.length<11?window.parent.postMessage(["adiptal_studio_uploadImages",window.name,t.files],"*"):nh.ce({type:"warning",heading:lang_pack.json.image,body:lang_pack.json.maximum_10_files}),t.value="")}),document.addEventListener("click",async function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .jk')){var a=t.lw().ne("input").mv(),n=(new Date).getTime().toString();if(t.lw().ne("input").mv(""),""!=a){await nh.ce({type:"progress",heading:lang_pack.json.loading_image,name:n});var i=new XMLHttpRequest;i.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;t=parseInt(90*t),nh.ch(ne('.jf[data-cp="'+n+'"]'),t)}}),i.addEventListener("readystatechange",function(){if(i.readyState===XMLHttpRequest.DONE)if(i.status>=200&&i.status<400)if(i.response.type.indexOf("image")>-1){var e=new DataTransfer,t=new File([i.response],n+".jpg",{type:i.response.type});e.items.add(t),nh.ch(ne('.jf[data-cp="'+n+'"]'),100),setTimeout(function(){window.parent.postMessage(["adiptal_studio_uploadImages",window.name,e.files],"*")},1e3)}else nh.ce({type:"danger",heading:lang_pack.json.image,body:lang_pack.json.bad_request,name:n});else nh.ce({type:"danger",heading:lang_pack.json.image,body:lang_pack.json.bad_request,name:n})}),i.open("GET",a),i.responseType="blob",i.send()}}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches('.iy[data-cp="dn"] .kk img:not(.active)')){var a=t.mg(".kk");a.ne("img.active").lx("active"),t.mu("active")}}),document.addEventListener("click",function(e){var t=e.target;t.matches('.gy[data-cq="fn"]')&&nh.ce({type:"warning",heading:lang_pack.json.delete_image,body:lang_pack.json.are_you_sure_you_want_to_delete_image,name:"deleteImages",controllers:!0})}),document.addEventListener("click",function(e){var t=e.target;t.matches('.iy[data-cp="dg"] .gj')&&(ne('.iy[data-cp="dn"]').mu("gi"),nt("dn"))}),document.addEventListener("click",function(e){var t=e.target;t.matches(".hm .gg")&&(ne('.iy[data-cp="dn"]').mu("gf"),nt("dn"))}),["keydown","focusout"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.matches(".km input"))if(""!=t.value.trim()&&("Enter"===e.key||" "===e.key||"focusout"==e.type)&&t.lv().length"+t.value.replaceAll(/[^-\.\p{L}\p{N}]/gmu,"").trim().toLowerCase()+"  ×")),t.value="",t.mg(".km").ne("button").length>ng.bv-1&&t.mu("disabled")}else" "===e.key?e.preventDefault():"Backspace"===e.key&&""==t.value.trim()&&t.lw().ma()})}),["keydown","focusin","focusout"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;t.matches(".km input")&&t.mt({style:""}).mt({style:"min-width : calc( "+t.scrollWidth+"px - .25rem )"})})}),document.addEventListener("keydown",function(e){var t=e.target;t.matches(".km input")&&/[^-\.\p{L}\p{N}]/gu.test(e.key)&&e.preventDefault()}),document.addEventListener("click",function(e){var t=e.target;t.matches(".km button")?(t.ls(".disabled").lx("disabled"),t.ls("input").mm(),t.remove()):t.matches(".km")&&t.ne("input").mm()}),document.addEventListener("click",function(e){var t=e.target;t.matches('.iy[data-cp="dg"] .gl')&&t.mg(".iy").ne(".gh").mw(''+s),s="";else if(0!=t.mg(".gf").length){var c="";null!=a.ne("img.active").mt("src")&&(c=a.ne("img.active").mt("src")),ne(document).ml("on",{src:c}),s=""}else i?(ng.ar.ne("img").ma(),ng.ar.na(s),s=""):s='
          '+s+'
          ";break;case"dh":case"di":d=t.mw();ng.bm(d);break;case"dm":s=-1;var l=a.ne(".hd:first-of-type input").mv(),o=a.ne(".hd:nth-of-type(2) input").mv();if(""!=o&&""!=l){var r="";1==ne(".jd span").mt("data-cs")&&(r+='target="_blank"');var d='"+o+"";"INLINE"==ng.ba?i?(l=ng.bk.commonAncestorContainer,l.outerHTML=d,s=""):ng.bm(d):(i||ng.w(''),ng.ar.ly("target").mt({href:l}).ne("span").mw(o),""!=r&&ng.ar.mt({target:"_blank"}),s="")}else nh.ce({type:"danger",heading:lang_pack.json.create_link,body:lang_pack.json.fill_all_credentials});break;case"dk":s=-1;var m=a.ne(".hd input").mv();if(/^\d+$/.test(m)&&m<11){s="";for(var h=0;h"+s+"")}else nh.ce({type:"warning",heading:lang_pack.json.table,body:lang_pack.json.maximum_10_columns});break;case"dl":s=await nr(a.ne(".hd input").mv());break;case"dg":s=-1;o=ne('.iy[data-cp="dg"] .hd input').mv().trim();if(""==o)return void nh.ce({type:"danger",heading:lang_pack.json.set_title});if(0!=ne('.iy[data-cp="dg"] .kt').length){var u=ni.ci(ne('.iy[data-cp="dg"] .kt'));if(null==u)return void nh.ce({type:"danger",heading:lang_pack.json.select_category});ng.bi.title=o,ng.bi.title_url=o.replaceAll(/[^A-Za-z0-9 ]/gm,"").replaceAll(/\s\s+/gm," ").trim().replaceAll(/\s+/gm,"-").toLowerCase().trim(),ng.bi.description=ne('.iy[data-cp="dg"] textarea').mv().trim(),ng.bi.category=u[1],ng.bi.category_index=u[0]}else ng.bi.title=o,ng.bi.title_url=o.replaceAll(/[^A-Za-z0-9 ]/gm,"").replaceAll(/\s\s+/gm," ").trim().replaceAll(/\s+/gm,"-").toLowerCase().trim(),ng.bi.description=ne('.iy[data-cp="dg"] textarea').mv().trim();if(0!=a.ne(".km").length){var g=a.ne(".km button").mk();g.ne("span").ma(),ng.bi.tags=[],g.forEach(function(e){-1==ng.bi.tags.indexOf(e.my().toLowerCase())&&ng.bi.tags.push(e.my().toLowerCase())})}0!=a.ne(".gh img").length?ng.bi.cover_image_url=a.ne(".gh img").mt("src"):ng.bi.cover_image_url="";var p=ne('.hm[data-cp="db"] .kz');return 0==p.ne(".jj").length&&p.na('"}),t.ne(".hd:nth-of-type(2)").nc('
            '+n+"
          ")}a.metadata.hasOwnProperty("tags")&&Number.isInteger(a.metadata.tags)&&(ng.bv=a.metadata.tags,t.ne(".hd:nth-of-type(2)").nc('
          "))}if(0==ne('[href*="highlight.js"] , [src*="highlight.js"]').length){ne("head").mz('');var i=document.createElement("script");i.src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/highlight.min.js",document.body.append(i)}a.hasOwnProperty("metadata")&&(a.metadata||a.metadata.constructor===Object)||t.ma(),a.hasOwnProperty("autosave")&&Number.isInteger(a.autosave)&&a.autosave>4999&&(ng.bu.autosave_interval=a.autosave,ne('.jq[data-cq="fx"]').mn()),a.hasOwnProperty("relative_url")&&""!=a.relative_url&&ne("head").mz('');break;case"reset":ne("html").lx("disabled"),ne("base").ma(),ne(".hf").mw(ng.x),delete ng.ap,delete ng.ar,window.parent.postMessage(["adiptal_studio_live",window.name],"*");break;case"enable":ne("html").md("disabled")&&(ne("html").lx("disabled"),ne("base").ma(),ne(".hf").mw(ng.x),delete ng.ap,delete ng.ar,window.parent.postMessage(["adiptal_studio_live",window.name],"*"));break;case"disable":ne("html").md("disabled")||(ne('.iy[data-cp="gc"] .kk span').mw(e.data[1]),ne("html").mu("disabled"),nt("gc"));break;case"toggleTheme":nm(e.data[1]);break;case"addFileOptions":a=e.data[1];if(ng.bi.fileOptions={},a&&a.constructor===Object){ne(".hg .kd").ma(),ne('.hm[data-cp="db"] .kz').mz('
            ');var s=ne(".hg .kd");a.hasOwnProperty("allow_comments")&&(ng.bi.fileOptions.allow_comments=a.allow_comments,s.mz('
          1. ')),a.hasOwnProperty("is_draft")&&(ng.bi.fileOptions.is_draft=a.is_draft,s.mz('
          2. ')),a.hasOwnProperty("is_featured")&&(ng.bi.fileOptions.is_featured=a.is_featured,s.mz('
          3. ')),a.hasOwnProperty("scheduled_at")&&a.scheduled_at.constructor===Object&&(ng.bi.fileOptions.scheduled_at="",a.scheduled_at.readonly?s.mz("
          4. '):(s.mz("
          5. "),a.scheduled_at.hasOwnProperty("min_date")&&a.scheduled_at.hasOwnProperty("max_date")&&(ne('.kd [type="date"]')[0].min=a.scheduled_at.min_date.getFullYear()+"-"+("0"+(a.scheduled_at.min_date.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.min_date.getDate()).slice(-2),ne('.kd [type="date"]')[0].max=a.scheduled_at.max_date.getFullYear()+"-"+("0"+(a.scheduled_at.max_date.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.max_date.getDate()).slice(-2))),a.scheduled_at.hasOwnProperty("value")&&a.scheduled_at.value&&(ne('.kd [type="date"]').mv(a.scheduled_at.value.getFullYear()+"-"+("0"+(a.scheduled_at.value.getMonth()+1)).slice(-2)+"-"+("0"+a.scheduled_at.value.getDate()).slice(-2)),ne('.kd [type="time"]').mv(("0"+a.scheduled_at.value.getHours()).slice(-2)+":"+("0"+a.scheduled_at.value.getMinutes()).slice(-2)),ng.bi.fileOptions.scheduled_at=new Date(ne('.kd [type="date"]').mv()+" "+ne('.kd [type="time"]').mv()))),a.hasOwnProperty("approveFile")&&a.approveFile&&s.mz('
          6. "),a.hasOwnProperty("deleteFile")&&a.deleteFile&&s.mz('
          7. ")}break;case"saveFile":ng.bo();break;case"loadFile":var c=!1;a=e.data[1];if(0!=t.length)if(a.hasOwnProperty("title")){if(t.ne(".hd:first-of-type input").mv(a.title),a.hasOwnProperty("description")&&t.ne("textarea").mv(a.description),a.hasOwnProperty("cover_image_url")&&""!=a.cover_image_url&&0!=t.ne(".gh").length&&t.ne(".gh").mw(''),0!=t.ne(".kt").length&&(a.hasOwnProperty("category_index")?-1==ni.ck(t.ne(".kt")[0],a.category_index)&&(c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.undefined_category_index})):(c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_category_index}))),a.hasOwnProperty("tags")&&a.tags.constructor===Array&&0!=t.ne(".km").length){n="";a.tags.forEach(function(e){n+=""}),t.ne(".km").na(n)}}else c=!0,nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_title});c||(a.hasOwnProperty("content")?(ng.bs(a.content.nd()),t.ne(".jc").mn(),null==ng.bu.reworkCache&&(ng.bu.reworkCache=a.content)):nh.ce({type:"danger",heading:lang_pack.json.set_content,body:lang_pack.json.missing_content}));break;case"showToast":await nh.ce(e.data[1]);break;case"hideToast":nh.cg(ne('.jf[data-cp="'+e.data[1]+'"]'));break;case"progressToast":nh.ch(ne('.jf[data-cp="'+e.data[1]+'"]'),e.data[2]);break;case"showMetadata":nt("dg");break;case"manageImages":if(!e.data[1]||e.data[1].constructor!==Array)return;var l=ne('.iy[data-cp="dn"]');ne(".hg .ik img").forEach(function(e){if(0==ne('.iy[data-cp="dn"] .kk img[src*="'+e.mt("src")+'"]').length){var t=e.mt("alt");null==t&&(t="Image "+(l.ne(".jh img").length+1)),l.ne(".jh").mz(''+t+'')}}),e.data[1].forEach(function(e){if(0==ne('.iy[data-cp="dn"] .kk img[src*="'+e+'"]').length){var t="Image "+(l.ne(".jh img").length+1);l.ne(".jh").mz(''+t+'')}}),ne('.iy[data-cp="dn"] .kk img').forEach(function(t){-1==e.data[1].indexOf(t.mt("src"))&&0==ne('.hg .ik img[src*="'+t.mt("src")+'"]').length&&ne(t).ma()}),null!=ng.br&&-1==e.data[1].indexOf(ng.br.mt("src"))&&ne('img[src*="'+ng.br.mt("src")+'"]').mt({src:ng.br.mt("src")+"?reload=true"})}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".kd li > button , .kd li > div button"))if(t.md("deleteFile"))nh.ce({type:"danger",heading:lang_pack.json.delete,body:lang_pack.json.are_you_sure_you_want_to_delete_file,name:"deleteFile",controllers:!0});else if(t.md("approveFile"))nh.ce({type:"info",heading:lang_pack.json.approve,body:lang_pack.json.are_you_sure_you_want_to_approve_file,name:"approveFile",controllers:!0});else if(t.md("jp"))t.lv("input").mv(""),ng.bi.fileOptions.scheduled_at="",nh.ce({heading:lang_pack.json.schedule,body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"});else{var a="Disable";1==t.ne("span").mt("data-cs")?t.ne("span").mt({"data-cs":0}):(t.ne("span").mt({"data-cs":1}),a="Enable"),ng.bi.fileOptions[t.mt("class").split(" ").filter(e=>"iu"!=e)[0]]=t.ne("span").mt("data-cs"),nh.ce({heading:a+" "+t.my(),body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"})}}),document.addEventListener("focusout",function(e){var t=e.target;if(t.matches(".kd li input")){if(!t.mg("li").ne('input[type="date"]')[0].validity.valid||!t.mg("li").ne('input[type="time"]')[0].validity.valid)return;ng.bi.fileOptions.scheduled_at=new Date(ne('.kd [type="date"]').mv()+" "+ne('.kd [type="time"]').mv()),nh.ce({heading:lang_pack.json.schedule,body:lang_pack.json.this_changes_will_be_applied_on_save,name:"kd"})}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hi")){var a=":not(.hk)";t.matches(".hk")&&(a=".hk"),ne(".hl"+a).mr(),ne(".hl"+a+" .hm").mi().ms(),ne(".hl"+a+' .hm[data-cp="'+t.mt("data-cs")+'"]').mq({display:"flex"})}else if(t.matches(".hj"))t.mg(".hl").ms();else if(t.matches(".hl .hm button:not(.iu)")&&!t.matches(".ix > button")){if(window.innerWidth>=992)return;t.mg(".hl").ms()}}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg tr > .il")&&(ne(".hg tr .active").lx("active"),t.mu("active"),ne(".hg .it").ms(),t.mg(".ik").ne(".it").mr().mq({top:t.mp().top-t.mg(".ik").mp().top+"px"}))}),document.addEventListener("focusin",function(e){var t=e.target;t.matches(".hg .il:not(th):not(td)")&&(ne(".hg .im .active").lx("active"),ne(".hg .it").ms())}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".hg .it")){ne(".gm").mr().mq(nn(t,ne(".gm"),210));var a=ne(".hg .il.active").mg("tr").lq()[0].nodeName;ne(".gm").ne('[data-cq="'+a+'"]').mu("kf"),t.mg(".hg").ne("tr > .active").length>1?ne(".gm .ix:nth-child(-n+3) button").mu("disabled"):ne(".gm .ix:nth-child(-n+3) button").lx("disabled"),1!=t.mg(".hg").ne("tr.active").lq().length?ne('.gm [data-cq="fq"]').mu("disabled"):ne('.gm [data-cq="fq"]').lx("disabled")}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".io")){var a=ng.ar.ne(".im"),n=ne(".hg .il.active").mg("tr"),i=n.mj(),s=n.lq()[0].nodeName,c=t.mt("data-cq"),l="";switch(c){case"THEAD":case"TBODY":case"TFOOT":for(var o=0;o *").length;o++)l+=nz(c,n.ne(":scope > *")[o].innerHTML);c!=s&&(a.ne(s).ne("tr").mf(i).ma(),a.ne(c).mz(""+l+""),a.mg(".ik").ne(".it").ms());break;case"ff":for(o=0;o *").length;o++)l+=nz(s);n.nb(""+l+""),n=n.lw(),ng.bj("fh",[n,i]),n.ne(":scope > :first-of-type").mm();break;case"fg":for(o=0;o *").length;o++)l+=nz(s);n.nc(""+l+""),n=n.lt(),ng.bj("fh",[n,i]),n.ne(":scope > :first-of-type").mm();break;case"fl":if(n.ne("[rowspan]").mu("active"),ne('[data-cq="fp"]').ml("click",{addHistory:!1}),n=a.ne(s).ne("tr").mf(i),n.lv().ne("[rowspan]").forEach(function(e){i<=e.mg("tr").mj()+parseInt(e.mt("rowspan"))-1&&e.mt({rowspan:parseInt(e.mt("rowspan"))-1})}),n.ma(),a.mg(".ik").ne(".it").ms(),0==a.ne("tr").length){a.mg(".ik").mw("");var r=ng.v(a.mg(".ik"),".ik:not(:empty)");r.mf(r.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}}ng.u()}}),document.addEventListener("click",function(e){var t=e.target;if(t.matches(".ip")){var a=ng.ar.ne(".im"),n=t.mt("data-cq"),i=0;0!=a.ne(".il.active").length&&(i=a.ne(".il.active").mj());var s=a.ne("tr > :nth-of-type("+(i+1)+")");switch(n){case"fi":s.forEach(function(e){e.before(nz(e.mg("tr").lq()[0].nodeName,"",!0).mt({"data-cw":i})[0])}),ng.bj("fk",a.ne("[data-cw]")),a.ne("[data-cw]").ly("data-cw");break;case"fj":s.forEach(function(e){e.after(nz(e.mg("tr").lq()[0].nodeName,"",!0).mt({"data-cw":i})[0])}),ng.bj("fk",a.ne("[data-cw]")),a.ne("[data-cw]").ly("data-cw");break;case"fm":if(s.ne("[colspan]").mu("active"),ne('[data-cq="fo"]').ml("click",{addHistory:!1}),s.forEach(function(e){var t=e.mj(),a=e.lv("[colspan]").mf(0);0!=a.length&&t<=a.mj()+parseInt(a.mt("colspan"))-1&&a.mt({colspan:parseInt(a.mt("colspan"))-1})}),s.ma(),a.mg(".ik").ne(".it").ms(),0==a.ne(".il").length){a.mg(".ik").mw("");var c=ng.v(a.mg(".ik"),".ik:not(:empty)");c.mf(c.length-1).mn(),ng.ar.ne(".il:first-child").mf(0).mm()}}ng.u()}}),document.addEventListener("click",function(e){e.target.md("jy")&&nm()}),document.addEventListener("click",function(e){e.target.md("hp")&&("ej"==e.target.mt("data-cq")&&(ng.at=!0),ng.e(e.target.mt("data-cq")),ng.bn())}),document.addEventListener("click",function(e){var t=e.target,a=ng.ah(".il");if(!t.md("disabled")&&ng.bz()&&null!=ng.bk&&null!=a)if(t.md("lf"))if(a.md("ju"))nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied});else{var n=t.mt("data-cq");0!=a.mg(".checklist").length?"LEFT"==n?a.mg("li").ly("data-align"):a.mg("li").mt({"data-align":n}):"LEFT"==n?a.ly("data-align"):a.mt({"data-align":n}),a.focus(),ng.u()}else t.md("kh")?a.md("ju")?nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied}):(0!=a.mg(".checklist").length?"rtl"==a.mg("li").mt("data-dir")?a.mg("li").ly("data-dir"):a.mg("li").mt({"data-dir":"rtl"}):"rtl"==a.mt("data-dir")?a.ly("data-dir"):a.mt({"data-dir":"rtl"}),a.focus(),ng.u()):t.matches(".ho:not(.active)")?a.md("jv")?nh.ce({type:"warning",heading:lang_pack.json.text_styling,body:lang_pack.json.styling_cannot_be_applied}):ng.ac(t.mt("data-cq")):t.matches(".ho.active")&&ng.by(t.mt("data-cq"))}),["keyup","focusin"].forEach(function(e){document.addEventListener(e,function(e){var t=e.target;if(t.md("il")){var a=t.mg(".hg"),n=a.ne(".kh");null==t.mt("data-dir")&&0==t.mg("li[data-dir]").length?n.lx("active"):n.mu("active");var i=t.mt("data-align");null==i&&(i="LEFT"),a.ne(".ld").mw(a.ne('.lf[data-cq="'+i+'"]').mw())}})}),document.addEventListener("click",function(e){var t=e.target;t.md("disabled")||(t.md("ks")?ng.ca():t.md("kr")&&ng.bl())}); \ No newline at end of file diff --git a/plugin/assets/js/iframe.min.js b/plugin/assets/js/iframe.min.js new file mode 100644 index 00000000..f4787de3 --- /dev/null +++ b/plugin/assets/js/iframe.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +if(!adiptal)var adiptal={};adiptal.studio={settings:{},init:function(e){ne(e).mt({src:ne(e).mt("data-src")}).ly("data-src")},reset:function(e){e.contentWindow.postMessage(["reset"],"*")},enable:function(e){e.contentWindow.postMessage(["enable"],"*")},disable:function(e,t="Anonymous user"){e.contentWindow.postMessage(["disable",t],"*")},toggleTheme:function(e,t){e.contentWindow.postMessage(["toggleTheme",t],"*")},addFileOptions:function(e,t){e.contentWindow.postMessage(["addFileOptions",t],"*")},saveFile:function(e){e.contentWindow.postMessage(["saveFile"],"*")},loadFile:function(e,t){e.contentWindow.postMessage(["loadFile",t],"*")},showToast:function(e,t){e.contentWindow.postMessage(["showToast",t],"*")},hideToast:function(e,t){e.contentWindow.postMessage(["hideToast",t],"*")},progressToast:function(e,t,a){e.contentWindow.postMessage(["progressToast",t,a],"*")},showMetadata:function(e){e.contentWindow.postMessage(["showMetadata"],"*")},manageImages:function(e,t){e.contentWindow.postMessage(["manageImages",t],"*")}},window.addEventListener("message",e=>{switch(e.data[0]){case"adiptal_studio_live":case"adiptal_studio_approveFile":case"adiptal_studio_deleteFile":case"adiptal_studio_lastActive":"adiptal_studio_live"==e.data[0]&&ne('[name="'+e.data[1]+'"]')[0].contentWindow.postMessage(["init",adiptal.studio.settings[e.data[1]]],"*"),ne(document).ml(e.data[0],{0:[e.data[1]]});break;case"adiptal_studio_uploadImages":case"adiptal_studio_deleteImages":case"adiptal_studio_saveFile":ne(document).ml(e.data[0],{0:[e.data[1],e.data[2]]});break;case"adiptal_studio_fullscreen":ne('[name="'+e.data[1]+'"]').mb("fullscreen")}}); \ No newline at end of file diff --git a/plugin/assets/langs/arabic.js b/plugin/assets/langs/arabic.js new file mode 100644 index 00000000..710f099b --- /dev/null +++ b/plugin/assets/langs/arabic.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'حذف العلامة', + 'delete_cover_image': 'حذف صورة الغلاف', + 'strike_through': 'يتوسطه خط', + 'superscript': 'نص علوي', + 'subscript': 'نص سفلي', + 'inline_code': 'كود مضمن', + 'bold': 'عريض', + 'italic': 'مائل', + 'underline': 'تحته خط', + 'inline_link': 'رابط مضمن', + 'remove_format': 'إزالة التنسيق', + 'align': 'محاذاة', + 'left': 'يسار', + 'center': 'وسط', + 'right': 'يمين', + 'justify': 'ملئ السطر', + 'right_to_left': 'من اليمين إلى اليسار', + 'undo': 'تراجع', + 'redo': 'إعادة', + 'insert': 'إدراج', + 'menu': 'القائمة', + 'website': 'موقع الويب', + 'key_shortcuts': 'اختصارات لوحة المفاتيح', + 'toggle_theme': 'تبديل السمة', + 'previous': 'السابق', + 'next': 'التالي', + 'options': 'خيارات', + 'title': 'العنوان', + 'settings': 'الإعدادات', + 'font_family': 'عائلة الخط', + 'color': 'لون', + 'highlight': 'تمييز', + 'font_case': 'حالة الخط', + 'space': 'مسافة', + 'new_line': 'سطر جديد', + 'emojis': 'رموز تعبيرية', + 'special_characters': 'أحرف خاصة', + 'date_time': 'التاريخ والوقت', + 'find_and_replace': 'البحث والاستبدال', + 'fullscreen': 'ملئ الشاشة', + 'blue': 'أزرق', + 'red': 'أحمر', + 'yellow': 'أصفر', + 'green': 'أخضر', + 'grey_3': 'رمادي 3', + 'grey_2': 'رمادي 2', + 'grey': 'رمادي', + 'secondary': 'ثانوي', + 'pick_color': 'اختيار اللون', + 'delete': 'حذف', + 'close': 'إغلاق', + 'find_previous': 'العثور على السابق', + 'find_next': 'العثور على التالي', + 'refresh_search': 'تحديث البحث', + 'search_filters': 'مرشحات البحث', + 'replace_options': 'خيارات الاستبدال', + 'replace_format': 'تنسيق الاستبدال', + 'edit': 'تحرير', + 'move': 'تحريك', + 'clone': 'استنساخ', + 'move_section': 'نقل القسم', + 'add_section': 'إضافة قسم', + 'delete_section': 'حذف القسم', + 'upload_image': 'تحميل الصورة', + 'caption': 'التعليق', + 'citation': 'اقتباس', + 'heading': 'عنوان', + 'paragraph': 'فقرة', + 'paste': 'لصق', + 'text_styling': 'تنسيق النص', + 'styling_cannot_be_applied': 'لا يمكن تطبيق التنسيق', + 'media_embed': 'تضمين الوسائط', + 'bad_request': 'طلب خاطئ', + 'empty_file': 'ملف فارغ', + 'set_content': 'تعيين المحتوى', + 'this_changes_will_be_applied_on_save': 'سيتم تطبيق هذه التغييرات عند الحفظ', + 'image': 'صورة', + 'maximum_10_files': 'الحد الأقصى للملفات هو 10', + 'loading_image': 'جاري التحميل', + 'delete_image': 'حذف الصورة', + 'are_you_sure_you_want_to_delete_image': 'هل أنت متأكد أنك تريد حذف الصورة؟', + 'create_link': 'إنشاء رابط', + 'fill_all_credentials': 'املأ جميع بيانات الاعتماد', + 'table': 'جدول', + 'maximum_10_columns': 'الحد الأقصى للأعمدة هو 10', + 'select_category': 'اختر الفئة', + 'set_title': 'تعيين العنوان', + 'click_continue_to_save': 'انقر على المتابعة للحفظ', + 'undefined_category_index': 'غير معرف: [category_index]', + 'missing_category_index': 'مفقود: [category_index]', + 'missing_title': 'مفقود: [title]', + 'missing_content': 'مفقود: [content]', + 'are_you_sure_you_want_to_delete_file': 'هل أنت متأكد أنك تريد حذف الملف؟', + 'approve': 'الموافقة', + 'are_you_sure_you_want_to_approve_file': 'هل أنت متأكد أنك تريد الموافقة على الملف؟', + 'schedule': 'جدولة', + 'autosave_enabled': 'تم تمكين الحفظ التلقائي', + 'autosave_disabled': 'تم تعطيل الحفظ التلقائي', + 'import': 'استيراد', + 'import_json_file': 'استيراد ملف .json', + 'import_csv_file': 'استيراد ملف .csv', + 'cancel': 'إلغاء', + 'ok': 'موافق', + 'add_cover_image': 'صورة الغلاف', + 'properties': 'خصائص', + 'link': 'رابط', + 'save': 'حفظ', + 'blockquote': 'اقتباس', + 'html_embed': 'تضمين HTML', + 'preformatted': 'منسق مسبقًا', + 'unordered_list': 'قائمة غير مرتبة', + 'ordered_list': 'قائمة مرتبة', + 'check_list': 'قائمة التحقق', + 'link_button': 'زر الرابط', + 'columns': 'أعمدة', + 'carousel': 'دائري', + 'accordion': 'أكورديون', + 'tab': 'علامة التبويب', + 'container': 'حاوية', + 'page_break': 'فاصل الصفحات', + 'copy': 'نسخ', + 'clear': 'مسح', + 'tags': 'العلامات', + 'lower_case': 'حالة صغيرة', + 'upper_case': 'حالة كبيرة', + 'title_case': 'حالة العنوان', + 'sentence_case': 'حالة الجملة.', + 'view': 'عرض', + 'find': 'بحث', + 'replace': 'استبدال', + 'match_case': 'مطابقة الحالة', + 'match_whole_word_only': 'مطابقة الكلمة الكاملة فقط', + 'replace_all': 'استبدال الكل', + 'new': 'جديد', + 'rework': 'إعادة العمل', + 'export': 'تصدير', + 'preview': 'معاينة', + 'print': 'طباعة', + 'output': 'إخراج', + 'horizontal': 'أفقي', + 'vertical': 'عمودي', + 'merge': 'دمج', + 'import_csv': 'استيراد CSV', + 'style': 'نمط', + 'header': 'رأس', + 'body': 'جسم', + 'footer': 'تذييل', + 'add_row_above': 'إضافة صف أعلى', + 'add_row_below': 'إضافة صف أسفل', + 'delete_row': 'حذف الصف', + 'add_column_left': 'إضافة عمود إلى اليسار', + 'add_column_right': 'إضافة عمود إلى اليمين', + 'delete_column': 'حذف العمود', + 'before': 'قبل', + 'after': 'بعد', + 'width': 'عرض', + 'description': 'الوصف', + 'continue': 'استمر', + 'file_info': 'معلومات الملف', + 'images': 'الصور', + 'add_image': 'إضافة صورة', + 'edit_disabled': 'تحرير معطل', + 'components': 'المكونات', + 'text': 'نص', + 'list': 'قائمة', + 'format': 'تنسيق', + 'read': 'قراءة', + 'sections': 'الأقسام', + 'blocks': 'الكتل', + 'words': 'الكلمات', + 'characters_no_spaces': 'الأحرف ( بدون مسافات )', + 'characters_with_spaces': 'الأحرف ( مع المسافات )', + 'block_quote': 'اقتباس', + 'category': 'الفئة', + 'comments': 'التعليقات', + 'draft': 'مسودة', + 'feature': 'ميزة', + 'autosave': 'حفظ تلقائي', + 'search': 'بحث', + 'split': 'تقسيم', + 'smileys_emotion': 'الابتسامات والعواطف', + 'people_body': 'الناس والجسم', + 'component': 'المكون', + 'animals_nature': 'الحيوانات والطبيعة', + 'food_drink': 'الطعام والشراب', + 'travel_places': 'السفر والأماكن', + 'activities': 'الأنشطة', + 'objects': 'الأشياء', + 'symbols': 'الرموز', + 'flags': 'الأعلام', + 'latin': 'اللاتينية', + 'greek': 'اليونانية', + 'punctuation_more': 'الترقيم والمزيد', + 'math': 'الرياضيات', + 'currency': 'العملة', + 'rows': 'الصفوف', + 'cells': 'الخلايا', + 'new_tab': 'علامة تبويب جديدة', + 'categories': 'الفئات', + 'file_edited_by': 'يتم تحرير الملف بواسطة', + 'light_mode': 'وضع الإضاءة', + 'st-dark-mode': 'وضع الظلام', + 'set_date' : 'تحديد التاريخ', + 'set_time' : 'تحديد الوقت', + 'upgrade_n_icon' : ' ترقية الخطة' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/chinese.js b/plugin/assets/langs/chinese.js new file mode 100644 index 00000000..fd80ac79 --- /dev/null +++ b/plugin/assets/langs/chinese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + "delete_tag": "删除标签", + "delete_cover_image": "删除封面图片", + "strike_through": "删除线", + "superscript": "上标", + "subscript": "下标", + "inline_code": "行内代码", + "bold": "加粗", + "italic": "斜体", + "underline": "下划线", + "inline_link": "行内链接", + "remove_format": "移除格式", + "align": "对齐", + "left": "左对齐", + "center": "居中", + "right": "右对齐", + "justify": "两端对齐", + "right_to_left": "从右到左", + "undo": "撤销", + "redo": "重做", + "insert": "插入", + "menu": "菜单", + "website": "网站", + "key_shortcuts": "快捷键", + "toggle_theme": "切换主题", + "previous": "上一个", + "next": "下一个", + "options": "选项", + "title": "标题", + "settings": "设置", + "font_family": "字体", + "color": "颜色", + "highlight": "高亮", + "font_case": "字母大小写", + "space": "空格", + "new_line": "新行", + "emojis": "表情符号", + "special_characters": "特殊字符", + "date_time": "日期时间", + "find_and_replace": "查找和替换", + "fullscreen": "全屏", + "blue": "蓝色", + "red": "红色", + "yellow": "黄色", + "green": "绿色", + "grey_3": "灰色3", + "grey_2": "灰色2", + "grey": "灰色", + "secondary": "次要", + "pick_color": "选择颜色", + "delete": "删除", + "close": "关闭", + "find_previous": "查找上一个", + "find_next": "查找下一个", + "refresh_search": "刷新搜索", + "search_filters": "搜索过滤器", + "replace_options": "替换选项", + "replace_format": "替换格式", + "edit": "编辑", + "move": "移动", + "clone": "复制", + "move_section": "移动段落", + "add_section": "添加段落", + "delete_section": "删除段落", + "upload_image": "上传图片", + "caption": "图片标题", + "citation": "引用", + "heading": "标题", + "paragraph": "段落", + "paste": "粘贴", + "text_styling": "文本样式", + "styling_cannot_be_applied": "无法应用样式", + "media_embed": "媒体嵌入", + "bad_request": "错误请求", + "empty_file": "空文件", + 'set_content': '设置内容', + 'this_changes_will_be_applied_on_save': '此更改将在保存时应用', + 'image': '图片', + 'maximum_10_files': '最多 10 个文件', + 'loading_image': '正在加载图片', + 'delete_image': '删除图片', + 'are_you_sure_you_want_to_delete_image': '您确定要删除图片吗?', + 'create_link': '创建链接', + 'fill_all_credentials': '填写所有凭据', + 'table': '表格', + 'maximum_10_columns': '最多 10 列', + 'select_category': '选择分类', + 'set_title': '设置标题', + 'click_continue_to_save': '点击继续保存', + 'undefined_category_index': '未定义:[category_index]', + 'missing_category_index': '缺少:[category_index]', + 'missing_title': '缺少:[title]', + 'missing_content': '缺少:[content]', + 'are_you_sure_you_want_to_delete_file': '您确定要删除文件吗?', + 'approve': '批准', + 'are_you_sure_you_want_to_approve_file': '您确定要批准文件吗?', + 'schedule': '安排', + 'autosave_enabled': '自动保存已启用', + 'autosave_disabled': '自动保存已禁用', + 'import': '导入', + 'import_json_file': '导入 .json 文件', + 'import_csv_file': '导入 .csv 文件', + 'cancel': '取消', + 'ok': '确定', + 'add_cover_image': '封面图片', + 'properties': '属性', + 'link': '链接', + 'save': '保存', + 'blockquote': '块引用', + 'html_embed': 'HTML 嵌入', + 'preformatted': '预格式化', + 'unordered_list': '无序列表', + 'ordered_list': '有序列表', + 'check_list': '复选列表', + 'link_button': '链接按钮', + 'columns': '列', + 'carousel': '轮播图', + 'accordion': '手风琴', + 'tab': '选项卡', + 'container': '容器', + 'page_break': '分页符', + 'copy': '复制', + 'clear': '清除', + 'tags': '标签', + 'lower_case': '小写', + 'upper_case': '大写', + 'title_case': '首字母大写', + 'sentence_case': '句首大写', + 'view': '查看', + 'find': '查找', + 'replace': '替换', + 'match_case': '区分大小写', + 'match_whole_word_only': '全字匹配', + 'replace_all': '全部替换', + 'new': '新建', + 'rework': '重做', + 'export': '导出', + 'preview': '预览', + 'print': '打印', + 'output': '输出', + 'horizontal': '水平', + 'vertical': '垂直', + 'merge': '合并', + 'import_csv': '导入 CSV', + 'style': '样式', + 'header': '页眉', + 'body': '正文', + 'footer': '页脚', + 'add_row_above': '在上方添加行', + 'add_row_below': '在下方添加行', + 'delete_row': '删除行', + 'add_column_left': '在左侧添加列', + 'add_column_right': '在右侧添加列', + 'delete_column': '删除列', + 'before': '前面', + 'after': '后面', + 'width': '宽度', + 'description': '描述', + 'continue': '继续', + 'file_info': '文件信息', + 'images': '图片', + 'add_image': '添加图片', + 'edit_disabled': '禁止编辑', + 'components': '组件', + 'text': '文本', + 'list': '列表', + 'format': '格式', + 'read': '阅读', + 'sections': '章节', + 'blocks': '块', + 'words': '单词', + 'characters_no_spaces': '字符(不含空格)', + 'characters_with_spaces': '字符(包含空格)', + 'block_quote': '引用块', + 'category': '类别', + 'comments': '评论', + 'draft': '草稿', + 'feature': '特色', + 'autosave': '自动保存', + 'search': '搜索', + 'split': '分隔', + 'smileys_emotion': '表情符号', + 'people_body': '人物与身体', + 'component': '组件', + 'animals_nature': '动物与自然', + 'food_drink': '食品和饮料', + 'travel_places': '旅游和地点', + 'activities': '活动', + 'objects': '物品', + 'symbols': '符号', + 'flags': '旗帜', + 'latin': '拉丁', + 'greek': '希腊', + 'punctuation_more': '标点符号和更多', + 'math': '数学', + 'currency': '货币', + 'rows': '行', + 'cells': '单元格', + 'new_tab': '新标签页', + 'categories': '分类', + 'file_edited_by': '文件正在被编辑', + 'light_mode': '亮色模式', + 'st-dark-mode': '暗色模式', + 'set_date' : '设置日期', + 'set_time' : '设置时间', + 'upgrade_n_icon' : ' 升级计划' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/english.js b/plugin/assets/langs/english.js new file mode 100644 index 00000000..02b80636 --- /dev/null +++ b/plugin/assets/langs/english.js @@ -0,0 +1,297 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +var lang_pack = {}; + +lang_pack.json = { + 'delete_tag': 'Delete Tag', + 'delete_cover_image': 'Delete Cover Image', + 'strike_through': 'Strike Through', + 'superscript': 'Superscript', + 'subscript': 'Subscript', + 'inline_code': 'Inline Code', + 'bold': 'Bold', + 'italic': 'Italic', + 'underline': 'Underline', + 'inline_link': 'Inline Link', + 'remove_format': 'Remove Format', + 'align': 'Align', + 'left': 'Left', + 'center': 'Center', + 'right': 'Right', + 'justify': 'Justify', + 'right_to_left': 'Right to Left', + 'undo': 'Undo', + 'redo': 'Redo', + 'insert': 'Insert', + 'menu': 'Menu', + 'website': 'Website', + 'key_shortcuts': 'Key Shortcuts', + 'toggle_theme': 'Toggle Theme', + 'previous': 'Previous', + 'next': 'Next', + 'options': 'Options', + 'title': 'Title', + 'settings': 'Settings', + 'font_family': 'Font Family', + 'color': 'Color', + 'highlight': 'Highlight', + 'font_case': 'Font Case', + 'space': 'Space', + 'new_line': 'New Line', + 'emojis': 'Emojis', + 'special_characters': 'Special Characters', + 'date_time': 'Date Time', + 'find_and_replace': 'Find and Replace', + 'fullscreen': 'Fullscreen', + 'blue': 'Blue', + 'red': 'Red', + 'yellow': 'Yellow', + 'green': 'Green', + 'grey_3': 'Grey 3', + 'grey_2': 'Grey 2', + 'grey': 'Grey', + 'secondary': 'Secondary', + 'pick_color': 'Pick Color', + 'delete': 'Delete', + 'close': 'Close', + 'find_previous': 'Find Previous', + 'find_next': 'Find Next', + 'refresh_search': 'Refresh Search', + 'search_filters': 'Search Filters', + 'replace_options': 'Replace Options', + 'replace_format': 'Replace Format', + 'edit': 'Edit', + 'drag_move': 'Drag to move', + 'drag_clone': 'Drag to clone', + 'move_section': 'Move Section', + 'add_section': 'Add Section', + 'delete_section': 'Delete Section', + + + 'upload_image': 'Upload Image', + 'caption': 'Caption', + 'citation': 'Citation', + 'heading': 'Heading', + 'paragraph': 'Paragraph', + 'paste': 'Paste', + 'text_styling': 'Text Styling', + 'styling_cannot_be_applied': 'Styling cannot be applied', + 'media_embed': 'Media Embed', + 'bad_request': 'Bad Request', + 'empty_file': 'Empty File', + 'set_content': 'Set Content', + 'this_changes_will_be_applied_on_save': 'This changes will be applied on save', + 'image': 'Image', + 'maximum_10_files': 'Maximum 10 files', + 'loading_image': 'Loading Image', + 'delete_image': 'Delete Image', + 'are_you_sure_you_want_to_delete_image': 'Are you sure you want to delete image ?', + 'create_link': 'Create Link', + 'link_inside_link': 'Cannot create link inside link', + 'fill_all_credentials': 'Fill all credentials', + 'table': 'Table', + 'maximum_10_columns': 'Maximum 10 columns', + 'select_category': 'Select Category', + 'set_title': 'Set Title', + 'click_continue_to_save': 'Click Continue to save', + 'undefined_category_index': 'Undefined : [category_index]', + 'missing_category_index': 'Missing : [category_index]', + 'missing_title': 'Missing : [title]', + 'missing_content': 'Missing : [content]', + 'are_you_sure_you_want_to_delete_file': 'Are you sure you want to delete file ?', + 'approve': 'Approve', + 'are_you_sure_you_want_to_approve_file': 'Are you sure you want to approve file ?', + 'schedule': 'Schedule', + 'autosave_enabled': 'Autosave Enabled', + 'autosave_disabled': 'Autosave Disabled', + 'import': 'Import', + 'import_json_file': 'Import .json file', + 'import_csv_file': 'Import .csv file', + 'cancel': 'Cancel', + 'ok': 'Ok', + 'add_cover_image': 'Cover Image', + 'properties': 'Properties', + 'link': 'Link', + 'save': 'Save', + 'blockquote': 'Blockquote', + 'html_embed': 'Html Embed', + 'preformatted': 'Preformatted', + + + 'unordered_list': 'Unordered List', + 'ordered_list': 'Ordered List', + 'check_list': 'Check List', + 'link_button': 'Link Button', + 'columns': 'Columns', + 'carousel': 'Carousel', + 'accordion': 'Accordion', + 'tab': 'Tab', + 'container': 'Container', + 'page_break': 'Page Break', + 'copy': 'Copy', + 'clear': 'Clear', + 'tags': 'Tags', + 'lower_case': 'lower case', + 'upper_case': 'UPPER CASE', + 'title_case': 'Title Case', + 'sentence_case': 'Sentence case.', + 'view': 'View', + 'find': 'Find', + 'replace': 'Replace', + 'match_case': 'Match case', + 'match_whole_word_only': 'Match whole word only', + 'replace_all': 'Replace All', + 'new': 'New', + 'rework': 'Rework', + 'export': 'Export', + 'preview': 'Preview', + 'print': 'Print', + 'output': 'Output', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Merge', + 'import_csv': 'Import CSV', + 'style': 'Style', + 'header': 'Header', + 'body': 'Body', + 'footer': 'Footer', + 'add_row_above': 'Add Row Above', + 'add_row_below': 'Add Row Below', + 'delete_row': 'Delete Row', + 'add_column_left': 'Add Column Left', + 'add_column_right': 'Add Column Right', + 'delete_column': 'Delete Column', + 'before': 'Before', + 'after': 'After', + 'width': 'Width', + + + 'description': 'Description', + 'continue': 'Continue', + 'file_info': 'File Info', + 'images': 'Images', + 'add_image': 'Add Image', + 'edit_disabled': 'Edit Disabled', + 'components': 'Components', + 'text': 'Text', + 'list': 'List', + 'format': 'Format', + 'read': 'Read', + 'sections': 'Sections', + 'blocks': 'Blocks', + 'words': 'Words', + 'characters_no_spaces': 'Characters ( no spaces )', + 'characters_with_spaces': 'Characters ( with spaces )', + 'block_quote': 'Block Quote', + 'category': 'Category', + 'comments': 'Comments', + 'draft': 'Draft', + 'feature': 'Feature', + 'autosave': 'Autosave', + 'search': 'Search', + 'light_mode': 'Light Mode', + 'st-dark-mode': 'Dark Mode', + 'split': 'Split', + 'smileys_emotion': 'Smileys & Emotion', + 'people_body': 'People & Body', + 'component': 'Component', + 'animals_nature': 'Animals & Nature', + 'food_drink': 'Food & Drink', + 'travel_places': 'Travel & Places', + 'activities': 'Activities', + 'objects': 'Objects', + 'symbols': 'Symbols', + 'flags': 'Flags', + 'latin': 'Latin', + 'greek': 'Greek', + 'punctuation_more': 'Punctuation & More', + 'math': 'Math', + 'currency': 'Currency', + 'rows': 'Rows', + 'cells': 'Cells', + 'new_tab': 'New Tab', + 'categories': 'Categories', + 'file_edited_by': 'File is being edited by', + + + 'font_size': 'Font Size', + 'font_weight': 'Font Weight', + 'style' : 'Style', + 'set_date' : 'Set Date', + 'set_time' : 'Set Time', + 'upgrade_n_icon' : ' Upgrade Plan', + 'english' : 'English', + 'hindi' : 'हिंदी', + 'chinese' : '中文', + 'spanish' : 'Español', + 'portuguese' : 'Português', + 'russian' : 'Русский', + 'french' : 'Français', + 'german' : 'Allemand', + 'japanese' : '日本語', + 'arabic' : 'العربية', + + 'typography' : 'Typography', + 'background' : 'Background', + 'customize' : 'Customize', + 'layers' : 'Layers', + 'toggle_collapse' : 'Toggle All', + 'section' : 'Section', + 'resolution' : 'Resolution', + 'classes' : 'Classes', + 'add_class' : 'Add Class', + 'remove_class' : 'Remove Class', + 'property' : 'Property', + 'condition' : 'Condition', + 'value' : 'Value', + 'portrait' : 'Portrait', + // '' : '', +}; + +lang_pack.label = function( key ){ + return 'data-cn="'+ key +'" aria-label="'+ lang_pack.json[ key ] +'"'; +} + +lang_pack.text = function( key ){ + return 'data-cm="'+ key +'">'+ lang_pack.json[ key ]; +} + +lang_pack.change = function(){ + if( lang_pack.new_json != undefined ) + { + Object.keys( lang_pack.new_json ).forEach(function(i){ + lang_pack.json[i] = lang_pack.new_json[i]; + }); + } + + ne( '[data-cn]' ).forEach(function(i){ + i.mt({ + 'aria-label' : lang_pack.json[ i.mt( 'data-cn' ) ] + }); + }); + + ne( '[data-cm]' ).forEach(function(i){ + var nodes = i.childNodes; + if( nodes.length != 0 ) + { + nodes[0].remove(); + } + + i.na( lang_pack.json[ i.mt( 'data-cm' ) ] ); + }); +}; + +document.addEventListener( 'DOMContentLoaded' , function(){ + lang_pack.change(); +}); + +try { + lang_pack.change(); +} catch (error) { + console.warn(error); +} \ No newline at end of file diff --git a/plugin/assets/langs/french.js b/plugin/assets/langs/french.js new file mode 100644 index 00000000..67999e2e --- /dev/null +++ b/plugin/assets/langs/french.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Supprimer la balise', + 'delete_cover_image': "Supprimer l'image de couverture", + 'strike_through': 'Barrer', + 'superscript': 'Exposant', + 'subscript': 'Indice', + 'inline_code': 'Code en ligne', + 'bold': 'Gras', + 'italic': 'Italique', + 'underline': 'Souligné', + 'inline_link': 'Lien en ligne', + 'remove_format': 'Supprimer le format', + 'align': 'Aligner', + 'left': 'Gauche', + 'center': 'Centre', + 'right': 'Droite', + 'justify': 'Justifier', + 'right_to_left': 'De droite à gauche', + 'undo': 'Annuler', + 'redo': 'Rétablir', + 'insert': 'Insérer', + 'menu': 'Menu', + 'website': 'Site web', + 'key_shortcuts': 'Raccourcis clavier', + 'toggle_theme': 'Basculer le thème', + 'previous': 'Précédent', + 'next': 'Suivant', + 'options': 'Options', + 'title': 'Titre', + 'settings': 'Paramètres', + 'font_family': 'Police de caractères', + 'color': 'Couleur', + 'highlight': 'Surligner', + 'font_case': 'Cas de police', + 'space': 'Espace', + 'new_line': 'Nouvelle ligne', + 'emojis': 'Emojis', + 'special_characters': 'Caractères spéciaux', + 'date_time': 'Date et heure', + 'find_and_replace': 'Rechercher et remplacer', + 'fullscreen': 'Plein écran', + 'blue': 'Bleu', + 'red': 'Rouge', + 'yellow': 'Jaune', + 'green': 'Vert', + 'grey_3': 'Gris 3', + 'grey_2': 'Gris 2', + 'grey': 'Gris', + 'secondary': 'Secondaire', + 'pick_color': 'Choisir une couleur', + 'delete': 'Supprimer', + 'close': 'Fermer', + 'find_previous': 'Rechercher précédent', + 'find_next': 'Rechercher suivant', + 'refresh_search': 'Actualiser la recherche', + 'search_filters': 'Filtres de recherche', + 'replace_options': 'Options de remplacement', + 'replace_format': 'Format de remplacement', + 'edit': 'Modifier', + 'move': 'Déplacer', + 'clone': 'Cloner', + 'move_section': 'Déplacer la section', + 'add_section': 'Ajouter une section', + 'delete_section': 'Supprimer la section', + 'upload_image': 'Télécharger une image', + 'caption': 'Légende', + 'citation': 'Citation', + 'heading': 'Titre', + 'paragraph': 'Paragraphe', + 'paste': 'Coller', + 'text_styling': 'Mise en forme du texte', + 'styling_cannot_be_applied': 'La mise en forme ne peut pas être appliquée', + 'media_embed': 'Intégration de médias', + 'bad_request': 'Requête incorrecte', + 'empty_file': 'Fichier vide', + 'set_content': 'Définir le contenu', + 'this_changes_will_be_applied_on_save': "Ces modifications seront appliquées lors de l'enregistrement", + 'image': 'Image', + 'maximum_10_files': 'Maximum 10 fichiers', + 'loading_image': "Chargement de l'image", + 'delete_image': "Supprimer l'image", + 'are_you_sure_you_want_to_delete_image': "Êtes-vous sûr de vouloir supprimer l'image ?", + 'create_link': 'Créer un lien', + 'fill_all_credentials': "Remplissez toutes les informations d'identification", + 'table': 'Tableau', + 'maximum_10_columns': 'Maximum 10 colonnes', + 'select_category': 'Sélectionner une catégorie', + 'set_title': 'Définir le titre', + 'click_continue_to_save': 'Cliquez sur Continuer pour enregistrer', + 'undefined_category_index': 'Indéfini : [category_index]', + 'missing_category_index': 'Manquant : [category_index]', + 'missing_title': 'Manquant : [title]', + 'missing_content': 'Manquant : [content]', + 'are_you_sure_you_want_to_delete_file': 'Êtes-vous sûr de vouloir supprimer le fichier ?', + 'approve': 'Approuver', + 'are_you_sure_you_want_to_approve_file': 'Êtes-vous sûr de vouloir approuver le fichier ?', + 'schedule': 'Programmer', + 'autosave_enabled': 'Enregistrement automatique activé', + 'autosave_disabled': 'Enregistrement automatique désactivé', + 'import': 'Importer', + 'import_json_file': 'Importer un fichier .json', + 'import_csv_file': 'Importer un fichier .csv', + 'cancel': 'Annuler', + 'ok': 'Ok', + 'add_cover_image': 'Image de couverture', + 'properties': 'Propriétés', + 'link': 'Lien', + 'save': 'Enregistrer', + 'blockquote': 'Citation', + 'html_embed': 'Intégration HTML', + 'preformatted': 'Préformaté', + 'unordered_list': 'Liste non ordonnée', + 'ordered_list': 'Liste ordonnée', + 'check_list': 'Liste de contrôle', + 'link_button': 'Bouton de lien', + 'columns': 'Colonnes', + 'carousel': 'Carrousel', + 'accordion': 'Accordéon', + 'tab': 'Onglet', + 'container': 'Conteneur', + 'page_break': 'Saut de page', + 'copy': 'Copie', + 'clear': 'Effacer', + 'tags': 'Tags', + 'lower_case': 'minuscule', + 'upper_case': 'MAJUSCULE', + 'title_case': 'Titre Case', + 'sentence_case': 'Phrase cas.', + 'view': 'Vue', + 'find': 'Trouver', + 'replace': 'Remplacer', + 'match_case': 'Respecter la casse', + 'match_whole_word_only': 'Correspondance exacte', + 'replace_all': 'Remplacer tout', + 'new': 'Nouveau', + 'rework': 'Revoir', + 'export': 'Exporter', + 'preview': 'Aperçu', + 'print': 'Imprimer', + 'output': 'Sortie', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Fusionner', + 'import_csv': 'Importer CSV', + 'style': 'Style', + 'header': 'En-tête', + 'body': 'Corps', + 'footer': 'Pied de page', + 'add_row_above': 'Ajouter une ligne au-dessus', + 'add_row_below': 'Ajouter une ligne ci-dessous', + 'delete_row': 'Supprimer la ligne', + 'add_column_left': 'Ajouter une colonne à gauche', + 'add_column_right': 'Ajouter une colonne à droite', + 'delete_column': 'Supprimer la colonne', + 'before': 'Avant', + 'after': 'Après', + 'width': 'Largeur', + 'description': 'Description', + 'continue': 'Continuer', + 'file_info': 'Informations sur le fichier', + 'images': 'Images', + 'add_image': 'Ajouter une image', + 'edit_disabled': 'Modification désactivée', + 'components': 'Composants', + 'text': 'Texte', + 'list': 'Liste', + 'format': 'Format', + 'read': 'Lire', + 'sections': 'Sections', + 'blocks': 'Blocs', + 'words': 'Mots', + 'characters_no_spaces': 'Caractères (sans espaces)', + 'characters_with_spaces': 'Caractères (avec espaces)', + 'block_quote': 'Citation en bloc', + 'category': 'Catégorie', + 'comments': 'Commentaires', + 'draft': 'Brouillon', + 'feature': 'Fonctionnalité', + 'autosave': 'Sauvegarde automatique', + 'search': 'Recherche', + 'split': 'Divisé', + 'smileys_emotion': 'Émoticônes et émotions', + 'people_body': 'Personnes et corps', + 'component': 'Composant', + 'animals_nature': 'Animaux et nature', + 'food_drink': 'Nourriture et boisson', + 'travel_places': 'Voyages et lieux', + 'activities': 'Activités', + 'objects': 'Objets', + 'symbols': 'Symboles', + 'flags': 'Drapeaux', + 'latin': 'Latin', + 'greek': 'Grec', + 'punctuation_more': 'Ponctuation et plus', + 'math': 'Mathématiques', + 'currency': 'Devise', + 'rows': 'Lignes', + 'cells': 'Cellules', + 'new_tab': 'Nouvel onglet', + 'categories': 'Catégories', + 'file_edited_by': "Le fichier est en cours d'édition par", + 'light_mode': 'Mode lumière', + 'st-dark-mode': 'Mode sombre', + 'set_date' : 'Définir la date', + 'set_time' : "Définir l'heure", + 'upgrade_n_icon' : ' Mettre à niveau le plan' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/german.js b/plugin/assets/langs/german.js new file mode 100644 index 00000000..45530287 --- /dev/null +++ b/plugin/assets/langs/german.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Tag löschen', + 'delete_cover_image': 'Titelbild löschen', + 'strike_through': 'Durchgestrichen', + 'superscript': 'Hochgestellt', + 'subscript': 'Tiefgestellt', + 'inline_code': 'Inline-Code', + 'bold': 'Fett', + 'italic': 'Kursiv', + 'underline': 'Unterstrichen', + 'inline_link': 'Inline-Link', + 'remove_format': 'Formatierung entfernen', + 'align': 'Ausrichten', + 'left': 'Links', + 'center': 'Zentriert', + 'right': 'Rechts', + 'justify': 'Blocksatz', + 'right_to_left': 'Rechts nach links', + 'undo': 'Rückgängig machen', + 'redo': 'Wiederholen', + 'insert': 'Einfügen', + 'menu': 'Menü', + 'website': 'Webseite', + 'key_shortcuts': 'Tastenkürzel', + 'toggle_theme': 'Design umschalten', + 'previous': 'Zurück', + 'next': 'Weiter', + 'options': 'Optionen', + 'title': 'Titel', + 'settings': 'Einstellungen', + 'font_family': 'Schriftfamilie', + 'color': 'Farbe', + 'highlight': 'Hervorheben', + 'font_case': 'Schriftart', + 'space': 'Leerzeichen', + 'new_line': 'Neue Zeile', + 'emojis': 'Emojis', + 'special_characters': 'Sonderzeichen', + 'date_time': 'Datum und Uhrzeit', + 'find_and_replace': 'Suchen und Ersetzen', + 'fullscreen': 'Vollbild', + 'blue': 'Blau', + 'red': 'Rot', + 'yellow': 'Gelb', + 'green': 'Grün', + 'grey_3': 'Grau 3', + 'grey_2': 'Grau 2', + 'grey': 'Grau', + 'secondary': 'Sekundär', + 'pick_color': 'Farbe wählen', + 'delete': 'Löschen', + 'close': 'Schließen', + 'find_previous': 'Vorheriges finden', + 'find_next': 'Nächstes finden', + 'refresh_search': 'Suche aktualisieren', + 'search_filters': 'Suchfilter', + 'replace_options': 'Ersetzungsoptionen', + 'replace_format': 'Ersetzungsformat', + 'edit': 'Bearbeiten', + 'move': 'Bewegen', + 'clone': 'Klonen', + 'move_section': 'Abschnitt verschieben', + 'add_section': 'Abschnitt hinzufügen', + 'delete_section': 'Abschnitt löschen', + 'upload_image': 'Bild hochladen', + 'caption': 'Bildunterschrift', + 'citation': 'Zitat', + 'heading': 'Überschrift', + 'paragraph': 'Absatz', + 'paste': 'Einfügen', + 'text_styling': 'Textformatierung', + 'styling_cannot_be_applied': 'Formatierung kann nicht angewendet werden', + 'media_embed': 'Medieneinbettung', + 'bad_request': 'Fehlerhafte Anfrage', + 'empty_file': 'Leere Datei', + 'set_content': 'Inhalt festlegen', + 'this_changes_will_be_applied_on_save': 'Diese Änderungen werden beim Speichern angewendet', + 'image': 'Bild', + 'maximum_10_files': 'Maximal 10 Dateien', + 'loading_image': 'Bild wird geladen', + 'delete_image': 'Bild löschen', + 'are_you_sure_you_want_to_delete_image': 'Möchten Sie das Bild wirklich löschen?', + 'create_link': 'Link erstellen', + 'fill_all_credentials': 'Füllen Sie alle Anmeldeinformationen aus', + 'table': 'Tabelle', + 'maximum_10_columns': 'Maximal 10 Spalten', + 'select_category': 'Kategorie auswählen', + 'set_title': 'Titel festlegen', + 'click_continue_to_save': 'Klicken Sie auf Weiter, um zu speichern', + 'undefined_category_index': 'Undefiniert: [category_index]', + 'missing_category_index': 'Fehlt: [category_index]', + 'missing_title': 'Fehlt: [title]', + 'missing_content': 'Fehlt: [content]', + 'are_you_sure_you_want_to_delete_file': 'Möchten Sie die Datei wirklich löschen?', + 'approve': 'Genehmigen', + 'are_you_sure_you_want_to_approve_file': 'Möchten Sie die Datei wirklich genehmigen?', + 'schedule': 'Zeitplan', + 'autosave_enabled': 'Automatisches Speichern aktiviert', + 'autosave_disabled': 'Automatisches Speichern deaktiviert', + 'import': 'Importieren', + 'import_json_file': '.json-Datei importieren', + 'import_csv_file': '.csv-Datei importieren', + 'cancel': 'Abbrechen', + 'ok': 'Ok', + 'add_cover_image': 'Titelbild hinzufügen', + 'properties': 'Eigenschaften', + 'link': 'Link', + 'save': 'Speichern', + 'blockquote': 'Blockzitat', + 'html_embed': 'Html-Einbettung', + 'preformatted': 'Vorformatiert', + 'unordered_list': 'Ungeordnete Liste', + 'ordered_list': 'Geordnete Liste', + 'check_list': 'Checkliste', + 'link_button': 'Link-Schaltfläche', + 'columns': 'Spalten', + 'carousel': 'Karussell', + 'accordion': 'Akkordeon', + 'tab': 'Tab', + 'container': 'Behälter', + 'page_break': 'Seitenumbruch', + 'copy': 'Kopieren', + 'clear': 'Löschen', + 'tags': 'Tags', + 'lower_case': 'Kleinbuchstaben', + 'upper_case': 'GROSSBUCHSTABEN', + 'title_case': 'Titel Case', + 'sentence_case': 'Satz Fall.', + 'view': 'Ansicht', + 'find': 'Finden', + 'replace': 'Ersetzen', + 'match_case': 'Groß-/Kleinschreibung beachten', + 'match_whole_word_only': 'Nur ganzes Wort abgleichen', + 'replace_all': 'Alle ersetzen', + 'new': 'Neu', + 'rework': 'Überarbeiten', + 'export': 'Exportieren', + 'preview': 'Vorschau', + 'print': 'Drucken', + 'output': 'Ausgabe', + 'horizontal': 'Horizontal', + 'vertical': 'Vertikal', + 'merge': 'Zusammenführen', + 'import_csv': 'CSV importieren', + 'style': 'Stil', + 'header': 'Kopfzeile', + 'body': 'Körper', + 'footer': 'Fußzeile', + 'add_row_above': 'Zeile oben hinzufügen', + 'add_row_below': 'Zeile unten hinzufügen', + 'delete_row': 'Zeile löschen', + 'add_column_left': 'Spalte links hinzufügen', + 'add_column_right': 'Spalte rechts hinzufügen', + 'delete_column': 'Spalte löschen', + 'before': 'Vor', + 'after': 'Nach', + 'width': 'Breite', + 'description': 'Beschreibung', + 'continue': 'Fortsetzen', + 'file_info': 'Dateiinformationen', + 'images': 'Bilder', + 'add_image': 'Bild hinzufügen', + 'edit_disabled': 'Bearbeitung deaktiviert', + 'components': 'Komponenten', + 'text': 'Text', + 'list': 'Liste', + 'format': 'Format', + 'read': 'Lesen', + 'sections': 'Abschnitte', + 'blocks': 'Blöcke', + 'words': 'Wörter', + 'characters_no_spaces': 'Zeichen (ohne Leerzeichen)', + 'characters_with_spaces': 'Zeichen (mit Leerzeichen)', + 'block_quote': 'Blockzitat', + 'category': 'Kategorie', + 'comments': 'Kommentare', + 'draft': 'Entwurf', + 'feature': 'Funktion', + 'autosave': 'Automatische Speicherung', + 'search': 'Suche', + 'split': 'Teilen', + 'smileys_emotion': 'Smileys & Emotionen', + 'people_body': 'Menschen & Körper', + 'component': 'Komponente', + 'animals_nature': 'Tiere & Natur', + 'food_drink': 'Essen & Trinken', + 'travel_places': 'Reisen & Orte', + 'activities': 'Aktivitäten', + 'objects': 'Objekte', + 'symbols': 'Symbole', + 'flags': 'Flaggen', + 'latin': 'Latein', + 'greek': 'Griechisch', + 'punctuation_more': 'Interpunktion & Mehr', + 'math': 'Mathematik', + 'currency': 'Währung', + 'rows': 'Zeilen', + 'cells': 'Zellen', + 'new_tab': 'Neuer Tab', + 'categories': 'Kategorien', + 'file_edited_by': 'Datei wird bearbeitet von', + 'light_mode': 'Hellmodus', + 'st-dark-mode': 'Dunkelmodus', + 'set_date' : 'Datum einstellen', + 'set_time' : 'Uhrzeit einstellen', + 'upgrade_n_icon' : ' Plan aktualisieren' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/hindi.js b/plugin/assets/langs/hindi.js new file mode 100644 index 00000000..bd8deabd --- /dev/null +++ b/plugin/assets/langs/hindi.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'टैग हटाएं', + 'delete_cover_image': 'कवर छवि हटाएं', + 'strike_through': 'बीच में रेखांकित करें', + 'superscript': 'ऊर्ध्वश्रेणी', + 'subscript': 'अधोष्रेणी', + 'inline_code': 'इनलाइन कोड', + 'bold': 'बोल्ड', + 'italic': 'इटैलिक', + 'underline': 'अंडरलाइन', + 'inline_link': 'इनलाइन लिंक', + 'remove_format': 'फ़ॉर्मेट हटाएं', + 'align': 'एलाइनमेंट', + 'left': 'बाएं', + 'center': 'केंद्र', + 'right': 'दाएं', + 'justify': 'जस्टीफाई', + 'right_to_left': 'दाएं से बाएं', + 'undo': 'वापस ले जाएँ', + 'redo': 'पुनः लागू करें', + 'insert': 'डालें', + 'menu': 'मेनू', + 'website': 'वेबसाइट', + 'key_shortcuts': 'कुंजी शॉर्टकट', + 'toggle_theme': 'थीम टॉगल करें', + 'previous': 'पिछला', + 'next': 'अगला', + 'options': 'विकल्प', + 'title': 'शीर्षक', + 'settings': 'सेटिंग', + 'font_family': 'फ़ॉन्ट परिवार', + 'color': 'रंग', + 'highlight': 'हाइलाइट', + 'font_case': 'फ़ॉन्ट केस', + 'space': 'अंतर', + 'new_line': 'नई पंक्ति', + 'emojis': 'इमोजी', + 'special_characters': 'विशेष अक्षर', + 'date_time': 'तारीख समय', + 'find_and_replace': 'खोजें और बदलें', + 'fullscreen': 'फुल स्क्रीन', + 'blue': 'नीला', + 'red': 'लाल', + 'yellow': 'पीला', + 'green': 'हरा', + 'grey_3': 'धूसर 3', + 'grey_2': 'धूसर 2', + 'grey': 'धूसर', + 'secondary': 'सेकेंडरी', + 'pick_color': 'रंग चुनें', + 'delete': 'हटाएं', + 'close': 'बंद करें', + 'find_previous': 'पिछले खोजें', + 'find_next': 'अगले खोजें', + 'refresh_search': 'ताजगी दें', + 'search_filters': 'खोज फ़िल्टर', + 'replace_options': 'विकल्प बदलें', + 'replace_format': 'फ़ॉर्मेट बदलें', + 'edit': 'संपादित करें', + 'move': 'हटाएं', + 'clone': 'नकल', + 'move_section': 'सेक्शन ले जाएँ', + 'add_section': 'सेक्शन जोड़ें', + 'delete_section': 'सेक्शन हटाएं', + 'upload_image': 'छवि अपलोड करें', + 'caption': 'कैप्शन', + 'citation': 'उद्धरण', + 'heading': 'शीर्षक', + 'paragraph': 'अनुच्छेद', + 'paste': 'पेस्ट करें', + 'text_styling': 'टेक्स्ट स्टाइलिंग', + 'styling_cannot_be_applied': 'स्टाइलिंग लागू नहीं की जा सकती', + 'media_embed': 'मीडिया एम्बेड', + 'bad_request': 'बुरा अनुरोध', + 'empty_file': 'खाली फ़ाइल', + 'set_content': 'सेट सामग्री', + 'this_changes_will_be_applied_on_save': 'यह परिवर्तन सहेजें पर लागू होंगे', + 'image': 'छवि', + 'maximum_10_files': 'अधिकतम 10 फ़ाइलें', + 'loading_image': 'लोड हो रहा है छवि', + 'delete_image': 'छवि हटाएं', + 'are_you_sure_you_want_to_delete_image': 'क्या आप वाकई छवि हटाना चाहते हैं?', + 'create_link': 'लिंक बनाएँ', + 'fill_all_credentials': 'सभी क्रेडेंशियल भरें', + 'table': 'तालिका', + 'maximum_10_columns': 'अधिकतम 10 कॉलम', + 'select_category': 'श्रेणी चुनें', + 'set_title': 'शीर्षक सेट करें', + 'click_continue_to_save': 'जारी रखने के लिए जारी रखें पर क्लिक करें', + 'undefined_category_index': 'अपरिभाषित: [category_index]', + 'missing_category_index': 'लापता: [category_index]', + 'missing_title': 'लापता: [title]', + 'missing_content': 'लापता: [content]', + 'are_you_sure_you_want_to_delete_file': 'क्या आप वाकई फ़ाइल को हटाना चाहते हैं?', + 'approve': 'मंजूरी दें', + 'are_you_sure_you_want_to_approve_file': 'क्या आप वाकई फ़ाइल को मंजूरी देना चाहते हैं?', + 'schedule': 'अनुसूची', + 'autosave_enabled': 'ऑटोसेव एनेबल है', + 'autosave_disabled': 'ऑटोसेव डिसेबल है', + 'import': 'आयात करें', + 'import_json_file': '.json फ़ाइल आयात करें', + 'import_csv_file': '.csv फ़ाइल आयात करें', + 'cancel': 'रद्द करना', + 'ok': 'ठीक है', + 'add_cover_image': 'कवर चित्र जोड़ें', + 'properties': 'गुण', + 'link': 'लिंक', + 'save': 'सहेजें', + 'blockquote': 'ब्लॉक कोट', + 'html_embed': 'HTML एम्बेड', + 'preformatted': 'पूर्व-स्वरूपित', + 'unordered_list': 'अव्यवस्थित सूची', + 'ordered_list': 'व्यवस्थित सूची', + 'check_list': 'जांच सूची', + 'link_button': 'लिंक बटन', + 'columns': 'स्तंभ', + 'carousel': 'कैरोसेल', + 'accordion': 'अकॉर्डियन', + 'tab': 'टैब', + 'container': 'डिब्बा', + 'page_break': 'पृष्ठ अंत', + 'copy': 'कॉपी', + 'clear': 'साफ़ करें', + 'tags': 'टैग', + 'lower_case': 'निचले अक्षर', + 'upper_case': 'ऊपरी अक्षर', + 'title_case': 'शीर्षक के अक्षर', + 'sentence_case': 'वाक्य शुरू के अक्षर', + 'view': 'देखें', + 'find': 'खोजें', + 'replace': 'प्रतिस्थापित करें', + 'match_case': 'मिलान (मामला)', + 'match_whole_word_only': 'केवल पूरे शब्द मिलाएँ', + 'replace_all': 'सभी प्रतिस्थापित करें', + 'new': 'नया', + 'rework': 'पुनः काम करें', + 'export': 'निर्यात', + 'preview': 'पूर्वावलोकन', + 'print': 'प्रिंट करें', + 'output': 'आउटपुट', + 'horizontal': 'क्षैतिज', + 'vertical': 'ऊर्ध्वाधर', + 'merge': 'विलय', + 'import_csv': 'CSV आयात करें', + 'style': 'शैली', + 'header': 'हैडर', + 'body': 'बॉडी', + 'footer': 'फ़ुटर', + 'add_row_above': 'ऊपर से पंक्ति जोड़ें', + 'add_row_below': 'नीचे पंक्ति जोड़ें', + 'delete_row': 'पंक्ति हटाएं', + 'add_column_left': 'बाएं स्तंभ जोड़ें', + 'add_column_right': 'दाएं स्तंभ जोड़ें', + 'delete_column': 'स्तंभ हटाएं', + 'before': 'पहले', + 'after': 'बाद में', + 'width': 'चौड़ाई', + 'description': 'विवरण', + 'continue': 'जारी रखें', + 'file_info': 'फ़ाइल जानकारी', + 'images': 'छवियाँ', + 'add_image': 'छवि जोड़ें', + 'edit_disabled': 'संपादन अक्षम', + 'components': 'घटक', + 'text': 'टेक्स्ट', + 'list': 'सूची', + 'format': 'फ़ॉर्मेट', + 'read': 'पढ़ें', + 'sections': 'अनुभाग', + 'blocks': 'खंड', + 'words': 'शब्द', + 'characters_no_spaces': 'वर्ण ( अंतरिक्ष बिना )', + 'characters_with_spaces': 'वर्ण ( अंतरिक्ष सहित )', + 'block_quote': 'ब्लॉक कोट', + 'category': 'श्रेणी', + 'comments': 'टिप्पणियाँ', + 'draft': 'ड्राफ़्ट', + 'feature': 'फ़ीचर', + 'autosave': 'ऑटो सेव', + 'search': 'खोज', + 'split': 'विभाजित', + 'smileys_emotion': 'स्माइलीज़ और भावना', + 'people_body': 'लोग और शरीर', + 'component': 'घटक', + 'animals_nature': 'जानवर और प्रकृति', + 'food_drink': 'खाने-पीने की वस्तुएँ', + 'travel_places': 'यात्रा और स्थान', + 'activities': 'गतिविधियाँ', + 'objects': 'वस्तुएँ', + 'symbols': 'प्रतीक', + 'flags': 'झंडे', + 'latin': 'लैटिन', + 'greek': 'ग्रीक', + 'punctuation_more': 'विराम चिह्न और अधिक', + 'math': 'गणित', + 'currency': 'मुद्रा', + 'rows': 'पंक्तियाँ', + 'cells': 'सेल्स', + 'new_tab': 'नई टैब', + 'categories': 'श्रेणियाँ', + 'file_edited_by': 'फ़ाइल का संपादन किसी द्वारा किया जा रहा है', + 'light_mode': 'प्रकाश मोड', + 'st-dark-mode': 'अंधेरा मोड', + 'set_date' : 'तिथि सेट करें', + 'set_time' : 'समय सेट करें', + 'upgrade_n_icon' : ' प्लान अपग्रेड करें' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/japanese.js b/plugin/assets/langs/japanese.js new file mode 100644 index 00000000..5f206981 --- /dev/null +++ b/plugin/assets/langs/japanese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'タグを削除', + 'delete_cover_image': 'カバー画像を削除', + 'strike_through': '取り消し線', + 'superscript': '上付き文字', + 'subscript': '下付き文字', + 'inline_code': 'インラインコード', + 'bold': '太字', + 'italic': '斜体', + 'underline': '下線', + 'inline_link': 'インラインリンク', + 'remove_format': 'フォーマットを削除', + 'align': '配置', + 'left': '左', + 'center': '中央', + 'right': '右', + 'justify': '両端揃え', + 'right_to_left': '右から左へ', + 'undo': '元に戻す', + 'redo': 'やり直す', + 'insert': '挿入', + 'menu': 'メニュー', + 'website': 'ウェブサイト', + 'key_shortcuts': 'キーショートカット', + 'toggle_theme': 'テーマを切り替える', + 'previous': '前へ', + 'next': '次へ', + 'options': 'オプション', + 'title': 'タイトル', + 'settings': '設定', + 'font_family': 'フォントファミリー', + 'color': '色', + 'highlight': 'ハイライト', + 'font_case': 'フォントケース', + 'space': 'スペース', + 'new_line': '改行', + 'emojis': '絵文字', + 'special_characters': '特殊文字', + 'date_time': '日付時刻', + 'find_and_replace': '検索して置換', + 'fullscreen': 'フルスクリーン', + 'blue': '青', + 'red': '赤', + 'yellow': '黄色', + 'green': '緑', + 'grey_3': 'グレー3', + 'grey_2': 'グレー2', + 'grey': 'グレー', + 'secondary': 'セカンダリ', + 'pick_color': '色を選ぶ', + 'delete': '削除', + 'close': '閉じる', + 'find_previous': '前を検索', + 'find_next': '次を検索', + 'refresh_search': '検索を更新', + 'search_filters': '検索フィルター', + 'replace_options': '置換オプション', + 'replace_format': 'フォーマットを置換', + 'edit': '編集', + 'move': '移動', + 'clone': '複製', + 'move_section': 'セクションを移動', + 'add_section': 'セクションを追加', + 'delete_section': 'セクションを削除', + 'upload_image': '画像をアップロード', + 'caption': 'キャプション', + 'citation': '引用', + 'heading': '見出し', + 'paragraph': '段落', + 'paste': '貼り付け', + 'text_styling': 'テキストスタイリング', + 'styling_cannot_be_applied': 'スタイルを適用できません', + 'media_embed': 'メディア埋め込み', + 'bad_request': '不正なリクエスト', + 'empty_file': '空のファイル', + 'set_content': 'コンテンツを設定', + 'this_changes_will_be_applied_on_save': 'この変更は保存時に適用されます', + 'image': '画像', + 'maximum_10_files': '最大10ファイル', + 'loading_image': '画像を読み込んでいます', + 'delete_image': '画像を削除', + 'are_you_sure_you_want_to_delete_image': '画像を削除してもよろしいですか?', + 'create_link': 'リンクを作成', + 'fill_all_credentials': 'すべての資格情報を入力してください', + 'table': 'テーブル', + 'maximum_10_columns': '最大10列', + 'select_category': 'カテゴリを選択', + 'set_title': 'タイトルを設定', + 'click_continue_to_save': '続行をクリックして保存', + 'undefined_category_index': '未定義:[category_index]', + 'missing_category_index': '不足:[category_index]', + 'missing_title': '不足:[title]', + 'missing_content': '不足:[content]', + 'are_you_sure_you_want_to_delete_file': 'ファイルを削除してもよろしいですか?', + 'approve': '承認する', + 'are_you_sure_you_want_to_approve_file': 'ファイルを承認してもよろしいですか?', + 'schedule': 'スケジュール', + 'autosave_enabled': '自動保存が有効になっています', + 'autosave_disabled': '自動保存が無効になっています', + 'import': 'インポート', + 'import_json_file': '.jsonファイルをインポート', + 'import_csv_file': '.csvファイルをインポート', + 'cancel': 'キャンセル', + 'ok': 'OK', + 'add_cover_image': 'カバー画像を追加', + 'properties': 'プロパティ', + 'link': 'リンク', + 'save': '保存', + 'blockquote': '引用', + 'html_embed': 'HTML埋め込み', + 'preformatted': '整形済み', + 'unordered_list': '順不同リスト', + 'ordered_list': '順序付きリスト', + 'check_list': 'チェックリスト', + 'link_button': 'リンクボタン', + 'columns': 'カラム', + 'carousel': 'カルーセル', + 'accordion': 'アコーディオン', + 'tab': 'タブ', + 'container': 'コンテナ', + 'page_break': '改ページ', + 'copy': 'コピー', + 'clear': 'クリア', + 'tags': 'タグ', + 'lower_case': '小文字', + 'upper_case': '大文字', + 'title_case': 'タイトルケース', + 'sentence_case': '文の先頭を大文字にする。', + 'view': 'ビュー', + 'find': '検索', + 'replace': '置換', + 'match_case': '大文字と小文字を区別する', + 'match_whole_word_only': '単語全体にマッチする', + 'replace_all': 'すべて置換', + 'new': '新規', + 'rework': '再作業', + 'export': 'エクスポート', + 'preview': 'プレビュー', + 'print': '印刷', + 'output': '出力', + 'horizontal': '水平', + 'vertical': '垂直', + 'merge': 'マージ', + 'import_csv': 'CSVをインポート', + 'style': 'スタイル', + 'header': 'ヘッダー', + 'body': '本文', + 'footer': 'フッター', + 'add_row_above': '上に行を追加', + 'add_row_below': '下に行を追加', + 'delete_row': '行を削除', + 'add_column_left': '左に列を追加', + 'add_column_right': '右に列を追加', + 'delete_column': '列を削除', + 'before': '前', + 'after': '後', + 'width': '幅', + 'description': '説明', + 'continue': '続ける', + 'file_info': 'ファイル情報', + 'images': '画像', + 'add_image': '画像を追加', + 'edit_disabled': '編集不可', + 'components': 'コンポーネント', + 'text': 'テキスト', + 'list': 'リスト', + 'format': 'フォーマット', + 'read': '読む', + 'sections': 'セクション', + 'blocks': 'ブロック', + 'words': '単語', + 'characters_no_spaces': '文字数(スペースなし)', + 'characters_with_spaces': '文字数(スペースあり)', + 'block_quote': '引用', + 'category': 'カテゴリー', + 'comments': 'コメント', + 'draft': '下書き', + 'feature': '特徴', + 'autosave': '自動保存', + 'search': '検索', + 'split': '分割', + 'smileys_emotion': 'スマイリー&エモーション', + 'people_body': '人々&体', + 'component': 'コンポーネント', + 'animals_nature': '動物&自然', + 'food_drink': '食べ物&飲み物', + 'travel_places': '旅行&場所', + 'activities': 'アクティビティ', + 'objects': 'オブジェクト', + 'symbols': 'シンボル', + 'flags': '旗', + 'latin': 'ラテン語', + 'greek': 'ギリシャ語', + 'punctuation_more': '句読点&その他', + 'math': '数学', + 'currency': '通貨', + 'rows': '行', + 'cells': 'セル', + 'new_tab': '新しいタブ', + 'categories': 'カテゴリー', + 'file_edited_by': 'ファイルを編集しているユーザー', + 'light_mode': 'ライトモード', + 'st-dark-mode': 'ダークモード', + 'set_date' : '日付の設定', + 'set_time' : '時刻の設定', + 'upgrade_n_icon' : ' プランのアップグレード' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/portuguese.js b/plugin/assets/langs/portuguese.js new file mode 100644 index 00000000..2b95c53c --- /dev/null +++ b/plugin/assets/langs/portuguese.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Excluir Tag', + 'delete_cover_image': 'Excluir Imagem de Capa', + 'strike_through': 'Riscar', + 'superscript': 'Sobrescrito', + 'subscript': 'Subscrito', + 'inline_code': 'Código em Linha', + 'bold': 'Negrito', + 'italic': 'Itálico', + 'underline': 'Sublinhado', + 'inline_link': 'Link em Linha', + 'remove_format': 'Remover Formato', + 'align': 'Alinhar', + 'left': 'Esquerda', + 'center': 'Centro', + 'right': 'Direita', + 'justify': 'Justificar', + 'right_to_left': 'Da Direita para a Esquerda', + 'undo': 'Desfazer', + 'redo': 'Refazer', + 'insert': 'Inserir', + 'menu': 'Menu', + 'website': 'Website', + 'key_shortcuts': 'Atalhos de Teclado', + 'toggle_theme': 'Alternar Tema', + 'previous': 'Anterior', + 'next': 'Próximo', + 'options': 'Opções', + 'title': 'Título', + 'settings': 'Configurações', + 'font_family': 'Família de Fontes', + 'color': 'Cor', + 'highlight': 'Realçar', + 'font_case': 'Caixa de Fonte', + 'space': 'Espaço', + 'new_line': 'Nova Linha', + 'emojis': 'Emojis', + 'special_characters': 'Caracteres Especiais', + 'date_time': 'Data e Hora', + 'find_and_replace': 'Localizar e Substituir', + 'fullscreen': 'Tela Cheia', + 'blue': 'Azul', + 'red': 'Vermelho', + 'yellow': 'Amarelo', + 'green': 'Verde', + 'grey_3': 'Cinza 3', + 'grey_2': 'Cinza 2', + 'grey': 'Cinza', + 'secondary': 'Secundário', + 'pick_color': 'Escolher Cor', + 'delete': 'Excluir', + 'close': 'Fechar', + 'find_previous': 'Localizar Anterior', + 'find_next': 'Localizar Próximo', + 'refresh_search': 'Atualizar Busca', + 'search_filters': 'Filtros de Busca', + 'replace_options': 'Opções de Substituição', + 'replace_format': 'Formato de Substituição', + 'edit': 'Editar', + 'move': 'Mover', + 'clone': 'Clonar', + 'move_section': 'Mover Seção', + 'add_section': 'Adicionar Seção', + 'delete_section': 'Excluir Seção', + 'upload_image': 'Enviar Imagem', + 'caption': 'Legenda', + 'citation': 'Citação', + 'heading': 'Cabeçalho', + 'paragraph': 'Parágrafo', + 'paste': 'Colar', + 'text_styling': 'Estilo de Texto', + 'styling_cannot_be_applied': 'O estilo não pode ser aplicado', + 'media_embed': 'Incorporação de Mídia', + 'bad_request': 'Requisição Inválida', + 'empty_file': 'Arquivo Vazio', + 'set_content': 'Definir Conteúdo', + 'this_changes_will_be_applied_on_save': 'Essas alterações serão aplicadas ao salvar', + 'image': 'Imagem', + 'maximum_10_files': 'Máximo de 10 arquivos', + 'loading_image': 'Carregando Imagem', + 'delete_image': 'Excluir Imagem', + 'are_you_sure_you_want_to_delete_image': 'Tem certeza de que deseja excluir a imagem?', + 'create_link': 'Criar Link', + 'fill_all_credentials': 'Preencha todas as credenciais', + 'table': 'Tabela', + 'maximum_10_columns': 'Máximo de 10 colunas', + 'select_category': 'Selecione a Categoria', + 'set_title': 'Definir Título', + 'click_continue_to_save': 'Clique em Continuar para salvar', + 'undefined_category_index': 'Indefinido: [category_index]', + 'missing_category_index': 'Faltando: [category_index]', + 'missing_title': 'Faltando: [title]', + 'missing_content': 'Faltando: [content]', + 'are_you_sure_you_want_to_delete_file': 'Tem certeza de que deseja excluir o arquivo?', + 'approve': 'Aprovar', + 'are_you_sure_you_want_to_approve_file': 'Tem certeza de que deseja aprovar o arquivo?', + 'schedule': 'Agendar', + 'autosave_enabled': 'Autosalvar Habilitado', + 'autosave_disabled': 'Autosalvar Desabilitado', + 'import': 'Importar', + 'import_json_file': 'Importar arquivo .json', + 'import_csv_file': 'Importar arquivo .csv', + 'cancel': 'Cancelar', + 'ok': 'Ok', + 'add_cover_image': 'Imagem de Capa', + 'properties': 'Propriedades', + 'link': 'Link', + 'save': 'Salvar', + 'blockquote': 'Citação', + 'html_embed': 'Incorporação de HTML', + 'preformatted': 'Pré-formatado', + 'unordered_list': 'Lista Não Ordenada', + 'ordered_list': 'Lista Ordenada', + 'check_list': 'Lista de Verificação', + 'link_button': 'Botão de Link', + 'columns': 'Colunas', + 'carousel': 'Carrossel', + 'accordion': 'Acordeão', + 'tab': 'Guia', + 'container': 'Contêiner', + 'page_break': 'Quebra de Página', + 'copy': 'Copiar', + 'clear': 'Limpar', + 'tags': 'Tags', + 'lower_case': 'minúsculas', + 'upper_case': 'MAIÚSCULAS', + 'title_case': 'Capitalização de Título', + 'sentence_case': 'Capitalização de Frase.', + 'view': 'Visualizar', + 'find': 'Encontrar', + 'replace': 'Substituir', + 'match_case': 'Diferenciar maiúsculas de minúsculas', + 'match_whole_word_only': 'Corresponder somente a palavras inteiras', + 'replace_all': 'Substituir Tudo', + 'new': 'Novo', + 'rework': 'Revisar', + 'export': 'Exportar', + 'preview': 'Visualização', + 'print': 'Imprimir', + 'output': 'Saída', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Mesclar', + 'import_csv': 'Importar CSV', + 'style': 'Estilo', + 'header': 'Cabeçalho', + 'body': 'Corpo', + 'footer': 'Rodapé', + 'add_row_above': 'Adicionar Linha Acima', + 'add_row_below': 'Adicionar Linha Abaixo', + 'delete_row': 'Excluir Linha', + 'add_column_left': 'Adicionar Coluna à Esquerda', + 'add_column_right': 'Adicionar Coluna à Direita', + 'delete_column': 'Excluir Coluna', + 'before': 'Antes', + 'after': 'Depois', + 'width': 'Largura', + 'description': 'Descrição', + 'continue': 'Continuar', + 'file_info': 'Informações do Arquivo', + 'images': 'Imagens', + 'add_image': 'Adicionar Imagem', + 'edit_disabled': 'Edição Desativada', + 'components': 'Componentes', + 'text': 'Texto', + 'list': 'Lista', + 'format': 'Formato', + 'read': 'Lido', + 'sections': 'Seções', + 'blocks': 'Blocos', + 'words': 'Palavras', + 'characters_no_spaces': 'Caracteres (sem espaços)', + 'characters_with_spaces': 'Caracteres (com espaços)', + 'block_quote': 'Citação em Bloco', + 'category': 'Categoria', + 'comments': 'Comentários', + 'draft': 'Rascunho', + 'feature': 'Recurso', + 'autosave': 'Salvamento Automático', + 'search': 'Pesquisar', + 'split': 'Dividir', + 'smileys_emotion': 'Emojis e Emoções', + 'people_body': 'Pessoas e Corpo', + 'component': 'Componente', + 'animals_nature': 'Animais e Natureza', + 'food_drink': 'Comida e Bebida', + 'travel_places': 'Viagens e Lugares', + 'activities': 'Atividades', + 'objects': 'Objetos', + 'symbols': 'Símbolos', + 'flags': 'Bandeiras', + 'latin': 'Latim', + 'greek': 'Grego', + 'punctuation_more': 'Pontuação e Mais', + 'math': 'Matemática', + 'currency': 'Moeda', + 'rows': 'Linhas', + 'cells': 'Células', + 'new_tab': 'Nova Guia', + 'categories': 'Categorias', + 'file_edited_by': 'Arquivo está sendo editado por', + 'light_mode': 'Modo Claro', + 'st-dark-mode': 'Modo Escuro', + 'set_date' : 'Definir Data', + 'set_time' : 'Definir Hora', + 'upgrade_n_icon' : ' Atualizar Plano' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/russian.js b/plugin/assets/langs/russian.js new file mode 100644 index 00000000..ee5f1f15 --- /dev/null +++ b/plugin/assets/langs/russian.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Удалить тег', + 'delete_cover_image': 'Удалить изображение обложки', + 'strike_through': 'Зачеркнутый', + 'superscript': 'Надстрочный', + 'subscript': 'Подстрочный', + 'inline_code': 'Встроенный код', + 'bold': 'Жирный', + 'italic': 'Курсив', + 'underline': 'Подчеркнутый', + 'inline_link': 'Встроенная ссылка', + 'remove_format': 'Удалить формат', + 'align': 'Выровнять', + 'left': 'По левому краю', + 'center': 'По центру', + 'right': 'По правому краю', + 'justify': 'По ширине', + 'right_to_left': 'Справа налево', + 'undo': 'Отменить', + 'redo': 'Повторить', + 'insert': 'Вставить', + 'menu': 'Меню', + 'website': 'Веб-сайт', + 'key_shortcuts': 'Горячие клавиши', + 'toggle_theme': 'Переключить тему', + 'previous': 'Предыдущий', + 'next': 'Следующий', + 'options': 'Опции', + 'title': 'Заголовок', + 'settings': 'Настройки', + 'font_family': 'Шрифт', + 'color': 'Цвет', + 'highlight': 'Выделить', + 'font_case': 'Регистр', + 'space': 'Пробел', + 'new_line': 'Новая строка', + 'emojis': 'Эмодзи', + 'special_characters': 'Специальные символы', + 'date_time': 'Дата и время', + 'find_and_replace': 'Найти и заменить', + 'fullscreen': 'Полноэкранный режим', + 'blue': 'Синий', + 'red': 'Красный', + 'yellow': 'Желтый', + 'green': 'Зеленый', + 'grey_3': 'Серый 3', + 'grey_2': 'Серый 2', + 'grey': 'Серый', + 'secondary': 'Вторичный', + 'pick_color': 'Выбрать цвет', + 'delete': 'Удалить', + 'close': 'Закрыть', + 'find_previous': 'Найти предыдущее', + 'find_next': 'Найти следующее', + 'refresh_search': 'Обновить поиск', + 'search_filters': 'Фильтры поиска', + 'replace_options': 'Опции замены', + 'replace_format': 'Формат замены', + 'edit': 'Редактировать', + 'move': 'Переместить', + 'clone': 'Клонировать', + 'move_section': 'Переместить раздел', + 'add_section': 'Добавить раздел', + 'delete_section': 'Удалить раздел', + 'upload_image': 'Загрузить изображение', + 'caption': 'Подпись', + 'citation': 'Цитата', + 'heading': 'Заголовок', + 'paragraph': 'Параграф', + 'paste': 'Вставить', + 'text_styling': 'Стилизация текста', + 'styling_cannot_be_applied': 'Стилизация не может быть применена', + 'media_embed': 'Вставить медиа', + 'bad_request': 'Неверный запрос', + 'empty_file': 'Пустой файл', + 'set_content': 'Установить содержимое', + 'this_changes_will_be_applied_on_save': 'Эти изменения будут применены при сохранении', + 'image': 'Изображение', + 'maximum_10_files': 'Максимум 10 файлов', + 'loading_image': 'Загрузка изображения', + 'delete_image': 'Удалить изображение', + 'are_you_sure_you_want_to_delete_image': 'Вы уверены, что хотите удалить изображение?', + 'create_link': 'Создать ссылку', + 'fill_all_credentials': 'Заполните все учетные данные', + 'table': 'Таблица', + 'maximum_10_columns': 'Максимум 10 столбцов', + 'select_category': 'Выберите категорию', + 'set_title': 'Установить заголовок', + 'click_continue_to_save': 'Нажмите Продолжить, чтобы сохранить', + 'undefined_category_index': 'Неопределенный: [category_index]', + 'missing_category_index': 'Отсутствует: [category_index]', + 'missing_title': 'Отсутствует: [title]', + 'missing_content': 'Отсутствует: [content]', + 'are_you_sure_you_want_to_delete_file': 'Вы уверены, что хотите удалить файл?', + 'approve': 'Одобрить', + 'are_you_sure_you_want_to_approve_file': 'Вы уверены, что хотите одобрить файл?', + 'schedule': 'Расписание', + 'autosave_enabled': 'Автосохранение включено', + 'autosave_disabled': 'Автосохранение отключено', + 'import': 'Импорт', + 'import_json_file': 'Импорт файла .json', + 'import_csv_file': 'Импорт файла .csv', + 'cancel': 'Отмена', + 'ok': 'Ок', + 'add_cover_image': 'Обложка', + 'properties': 'Свойства', + 'link': 'Ссылка', + 'save': 'Сохранить', + 'blockquote': 'Цитата', + 'html_embed': 'Html вставка', + 'preformatted': 'Предварительно отформатированный', + 'unordered_list': 'Ненумерованный список', + 'ordered_list': 'Нумерованный список', + 'check_list': 'Список проверки', + 'link_button': 'Кнопка ссылки', + 'columns': 'Колонки', + 'carousel': 'Карусель', + 'accordion': 'Аккордеон', + 'tab': 'Вкладка', + 'container': 'контейнер', + 'page_break': 'Разрыв страницы', + 'copy': 'Копировать', + 'clear': 'Очистить', + 'tags': 'Теги', + 'lower_case': 'нижний регистр', + 'upper_case': 'ВЕРХНИЙ РЕГИСТР', + 'title_case': 'Заглавные буквы', + 'sentence_case': 'Предложение.', + 'view': 'Просмотр', + 'find': 'Найти', + 'replace': 'Заменить', + 'match_case': 'Учитывать регистр', + 'match_whole_word_only': 'Соответствие всему слову', + 'replace_all': 'Заменить все', + 'new': 'Новый', + 'rework': 'Переработка', + 'export': 'Экспорт', + 'preview': 'Предварительный просмотр', + 'print': 'Печать', + 'output': 'Выход', + 'horizontal': 'Горизонтальный', + 'vertical': 'Вертикальный', + 'merge': 'Объединить', + 'import_csv': 'Импорт CSV', + 'style': 'Стиль', + 'header': 'Заголовок', + 'body': 'Тело', + 'footer': 'Нижний колонтитул', + 'add_row_above': 'Добавить строку выше', + 'add_row_below': 'Добавить строку ниже', + 'delete_row': 'Удалить строку', + 'add_column_left': 'Добавить столбец слева', + 'add_column_right': 'Добавить столбец справа', + 'delete_column': 'Удалить столбец', + 'before': 'Перед', + 'after': 'После', + 'width': 'Ширина', + 'description': 'Описание', + 'continue': 'Продолжить', + 'file_info': 'Информация о файле', + 'images': 'Изображения', + 'add_image': 'Добавить изображение', + 'edit_disabled': 'Редактирование отключено', + 'components': 'Компоненты', + 'text': 'Текст', + 'list': 'Список', + 'format': 'Формат', + 'read': 'Читать', + 'sections': 'Разделы', + 'blocks': 'Блоки', + 'words': 'Слова', + 'characters_no_spaces': 'Символы ( без пробелов )', + 'characters_with_spaces': 'Символы ( с пробелами )', + 'block_quote': 'Цитата', + 'category': 'Категория', + 'comments': 'Комментарии', + 'draft': 'Черновик', + 'feature': 'Особенность', + 'autosave': 'Автосохранение', + 'search': 'Поиск', + 'split': 'Разделить', + 'smileys_emotion': 'Смайлики и эмоции', + 'people_body': 'Люди и тело', + 'component': 'Компонент', + 'animals_nature': 'Животные и природа', + 'food_drink': 'Еда и напитки', + 'travel_places': 'Путешествия и места', + 'activities': 'Деятельность', + 'objects': 'Объекты', + 'symbols': 'Символы', + 'flags': 'Флаги', + 'latin': 'Латиница', + 'greek': 'Греческий', + 'punctuation_more': 'Знаки препинания и многое другое', + 'math': 'Математика', + 'currency': 'Валюта', + 'rows': 'Строки', + 'cells': 'Ячейки', + 'new_tab': 'Новая вкладка', + 'categories': 'Категории', + 'file_edited_by': 'Файл редактируется', + 'light_mode': 'Светлый режим', + 'st-dark-mode': 'Темный режим', + 'set_date' : 'Установить дату', + 'set_time' : 'Установить время', + 'upgrade_n_icon' : ' Обновить план' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/assets/langs/spanish.js b/plugin/assets/langs/spanish.js new file mode 100644 index 00000000..901ee7d8 --- /dev/null +++ b/plugin/assets/langs/spanish.js @@ -0,0 +1,216 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +lang_pack.new_json = { + 'delete_tag': 'Eliminar etiqueta', + 'delete_cover_image': 'Eliminar imagen de portada', + 'strike_through': 'Tachado', + 'superscript': 'Superíndice', + 'subscript': 'Subíndice', + 'inline_code': 'Código en línea', + 'bold': 'Negrita', + 'italic': 'Cursiva', + 'underline': 'Subrayado', + 'inline_link': 'Enlace en línea', + 'remove_format': 'Eliminar formato', + 'align': 'Alinear', + 'left': 'Izquierda', + 'center': 'Centro', + 'right': 'Derecha', + 'justify': 'Justificar', + 'right_to_left': 'De derecha a izquierda', + 'undo': 'Deshacer', + 'redo': 'Rehacer', + 'insert': 'Insertar', + 'menu': 'Menú', + 'website': 'Sitio web', + 'key_shortcuts': 'Atajos de teclado', + 'toggle_theme': 'Alternar tema', + 'previous': 'Anterior', + 'next': 'Siguiente', + 'options': 'Opciones', + 'title': 'Título', + 'settings': 'Configuración', + 'font_family': 'Familia de fuentes', + 'color': 'Color', + 'highlight': 'Resaltar', + 'font_case': 'Mayúsculas y minúsculas', + 'space': 'Espacio', + 'new_line': 'Nueva línea', + 'emojis': 'Emojis', + 'special_characters': 'Caracteres especiales', + 'date_time': 'Fecha y hora', + 'find_and_replace': 'Buscar y reemplazar', + 'fullscreen': 'Pantalla completa', + 'blue': 'Azul', + 'red': 'Rojo', + 'yellow': 'Amarillo', + 'green': 'Verde', + 'grey_3': 'Gris 3', + 'grey_2': 'Gris 2', + 'grey': 'Gris', + 'secondary': 'Secundario', + 'pick_color': 'Seleccionar color', + 'delete': 'Eliminar', + 'close': 'Cerrar', + 'find_previous': 'Buscar anterior', + 'find_next': 'Buscar siguiente', + 'refresh_search': 'Actualizar búsqueda', + 'search_filters': 'Filtros de búsqueda', + 'replace_options': 'Opciones de reemplazo', + 'replace_format': 'Formato de reemplazo', + 'edit': 'Editar', + 'move': 'Mover', + 'clone': 'Clonar', + 'move_section': 'Mover sección', + 'add_section': 'Agregar sección', + 'delete_section': 'Eliminar sección', + 'upload_image': 'Subir imagen', + 'caption': 'Leyenda', + 'citation': 'Cita', + 'heading': 'Encabezado', + 'paragraph': 'Párrafo', + 'paste': 'Pegar', + 'text_styling': 'Estilo de texto', + 'styling_cannot_be_applied': 'No se puede aplicar estilo', + 'media_embed': 'Incrustación de medios', + 'bad_request': 'Solicitud incorrecta', + 'empty_file': 'Archivo vacío', + 'set_content': 'Establecer contenido', + 'this_changes_will_be_applied_on_save': 'Estos cambios se aplicarán al guardar', + 'image': 'Imagen', + 'maximum_10_files': 'Máximo 10 archivos', + 'loading_image': 'Cargando imagen', + 'delete_image': 'Eliminar imagen', + 'are_you_sure_you_want_to_delete_image': '¿Estás seguro de que quieres eliminar la imagen?', + 'create_link': 'Crear enlace', + 'fill_all_credentials': 'Complete todas las credenciales', + 'table': 'Tabla', + 'maximum_10_columns': 'Máximo 10 columnas', + 'select_category': 'Seleccionar categoría', + 'set_title': 'Establecer título', + 'click_continue_to_save': 'Haga clic en Continuar para guardar', + 'undefined_category_index': 'Indefinido: [category_index]', + 'missing_category_index': 'Falta: [category_index]', + 'missing_title': 'Falta: [title]', + 'missing_content': 'Falta: [content]', + 'are_you_sure_you_want_to_delete_file': '¿Estás seguro de que quieres eliminar el archivo?', + 'approve': 'Aprobar', + 'are_you_sure_you_want_to_approve_file': '¿Estás seguro de que quieres aprobar el archivo?', + 'schedule': 'Programar', + 'autosave_enabled': 'Autoguardado habilitado', + 'autosave_disabled': 'Autoguardado deshabilitado', + 'import': 'Importar', + 'import_json_file': 'Importar archivo .json', + 'import_csv_file': 'Importar archivo .csv', + 'cancel': 'Cancelar', + 'ok': 'Aceptar', + 'add_cover_image': 'Imagen de portada', + 'properties': 'Propiedades', + 'link': 'Enlace', + 'save': 'Guardar', + 'blockquote': 'Cita en bloque', + 'html_embed': 'Incrustación de HTML', + 'preformatted': 'Preformateado', + 'unordered_list': 'Lista desordenada', + 'ordered_list': 'Lista ordenada', + 'check_list': 'Lista de verificación', + 'link_button': 'Botón de enlace', + 'columns': 'Columnas', + 'carousel': 'Carrusel', + 'accordion': 'Acordeón', + 'tab': 'Pestaña', + 'container': 'Contenedor', + 'page_break': 'Salto de página', + 'copy': 'Copiar', + 'clear': 'Borrar', + 'tags': 'Etiquetas', + 'lower_case': 'minúsculas', + 'upper_case': 'MAYÚSCULAS', + 'title_case': 'Título', + 'sentence_case': 'Caso de oración.', + 'view': 'Ver', + 'find': 'Buscar', + 'replace': 'Reemplazar', + 'match_case': 'Coincidir mayúsculas y minúsculas', + 'match_whole_word_only': 'Coincidir solo palabras completas', + 'replace_all': 'Reemplazar todo', + 'new': 'Nuevo', + 'rework': 'Rehacer', + 'export': 'Exportar', + 'preview': 'Vista previa', + 'print': 'Imprimir', + 'output': 'Salida', + 'horizontal': 'Horizontal', + 'vertical': 'Vertical', + 'merge': 'Combinar', + 'import_csv': 'Importar CSV', + 'style': 'Estilo', + 'header': 'Encabezado', + 'body': 'Cuerpo', + 'footer': 'Pie de página', + 'add_row_above': 'Agregar fila arriba', + 'add_row_below': 'Agregar fila debajo', + 'delete_row': 'Eliminar fila', + 'add_column_left': 'Agregar columna a la izquierda', + 'add_column_right': 'Agregar columna a la derecha', + 'delete_column': 'Eliminar columna', + 'before': 'Antes', + 'after': 'Después', + 'width': 'Ancho', + 'description': 'Descripción', + 'continue': 'Continuar', + 'file_info': 'Información del archivo', + 'images': 'Imágenes', + 'add_image': 'Agregar imagen', + 'edit_disabled': 'Edición deshabilitada', + 'components': 'Componentes', + 'text': 'Texto', + 'list': 'Lista', + 'format': 'Formato', + 'read': 'Leer', + 'sections': 'Secciones', + 'blocks': 'Bloques', + 'words': 'Palabras', + 'characters_no_spaces': 'Caracteres ( sin espacios )', + 'characters_with_spaces': 'Caracteres ( con espacios )', + 'block_quote': 'Cita en bloque', + 'category': 'Categoría', + 'comments': 'Comentarios', + 'draft': 'Borrador', + 'feature': 'Característica', + 'autosave': 'Autoguardado', + 'search': 'Buscar', + 'split': 'Dividir', + 'smileys_emotion': 'Emoticonos y emociones', + 'people_body': 'Personas y cuerpo', + 'component': 'Componente', + 'animals_nature': 'Animales y naturaleza', + 'food_drink': 'Comida y bebida', + 'travel_places': 'Viajes y lugares', + 'activities': 'Actividades', + 'objects': 'Objetos', + 'symbols': 'Símbolos', + 'flags': 'Banderas', + 'latin': 'Latín', + 'greek': 'Griego', + 'punctuation_more': 'Puntuación y más', + 'math': 'Matemáticas', + 'currency': 'Moneda', + 'rows': 'Filas', + 'cells': 'Celdas', + 'new_tab': 'Nueva pestaña', + 'categories': 'Categorías', + 'file_edited_by': 'El archivo está siendo editado por', + 'light_mode': 'Modo Claro', + 'st-dark-mode': 'Modo Oscuro', + 'set_date' : 'Establecer Fecha', + 'set_time' : 'Establecer Hora', + 'upgrade_n_icon' : ' Actualizar Plan' +}; + +lang_pack.change(); \ No newline at end of file diff --git a/plugin/index.html b/plugin/index.html new file mode 100644 index 00000000..98cc0865 --- /dev/null +++ b/plugin/index.html @@ -0,0 +1,1004 @@ + + + + + + + + + + + Adiptal Studio + + + + + + + + + + +
            + + +
            + +
            + + + + +
            +
            +
            + +
              +
            • +
            • +
            +
            + + +
            +
            + +
            +
            + +
              +
            • +
              + + + +
              +
            • +
            • +
            • +
            • +
            +
            +
            + +
              +
            • +
            • +
            • +
            +
            +
            + +
            +
              +
            • +
            +
            + +
            +
            +
            + +
              +
            • +
            • +
            +
            +
            + +
              +
            • +
            • +
            +
            + +
            +
            + +
            + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
            +
            +
            +

            +
            + +
            +
            + + +
            + +
            + + +
            +
            + +
            +
              +
            • +
            +
            +
            +
            + +
            +
            +
            +

            +
            + +
            +
            + +
            +
              +
            • +
              + +
                +
                +
              • + +
              • +
              +
              +
              +
              + +
              +
              +
              +

              +
              + +
              +
              + +
              +
                +
              • +
                + +
                  +
                  +
                • + +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +
                + +
                +
                  +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +
                + + +
                +
                + +
                +
                  +
                • +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +
                + + +
                +
                + +
                +
                  +
                • +
                • +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +
                + + +
                + +
                + + +
                + + +
                + +
                +
                  +
                • +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +
                +
                + + +
                + + + + +
                +
                +
                +
                +
                + +
                +
                  +
                • +
                • +
                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                +

                +
                +
                +
                + +
                +
                +
                +

                +
                + +
                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                Windows / LinuxMacActionAvailable
                ctrl + scmd + sSaveYes
                ctrl + shift + Scmd + shift + SAutosave ( Toggle on/off ) Pro
                ctrl + fcmd + fFind and Replace Pro
                ctrl + pcmd + pPrint Pro
                ctrl + alt + vcmd + alt + vPaste Pro (Paste as HTML from Websites, Google Docs & Google Sheets) Pro
                ctrl + shift + Icmd + shift + IImport Pro
                ctrl + shift + Ecmd + shift + EExport Pro
                ctrl + shift + Fcmd + shift + FFullscreen ( Toggle on/off ) Pro
                Popup / Modal
                EscEscCancelYes
                ctrl + Entercmd + EnterSubmitYes
                Insert Element
                ctrl + shift + Hcmd + shift + HHeadingYes
                ctrl + shift + Pcmd + shift + PParagraphYes
                ctrl + shift + Bcmd + shift + BBlockquoteYes
                ctrl + alt + hcmd + alt + hHtml EmbedYes
                ctrl + alt + pcmd + alt + pPreformattedYes
                ctrl + shift + Ucmd + shift + UUnorder ListYes
                ctrl + shift + Ocmd + shift + OOrder ListYes
                ctrl + shift + Ccmd + shift + CCheck ListYes
                ctrl + shiftalt + Pcmd + shiftalt + PPage BreakYes
                Text Style
                shift + Entershift + EnterEnter/New LineYes
                ctrl + bcmd + bBoldYes
                ctrl + icmd + iItalicYes
                ctrl + ucmd + uUnderlineYes
                ctrl + dcmd + dStrikethroughYes
                ctrl + Arrow Upcmd + Arrow UpSuperscriptYes
                ctrl + Arrow Downcmd + Arrow DownSubscriptYes
                ctrl + hcmd + hInline CodeYes
                ctrl + lcmd + lAlign LeftYes
                ctrl + ecmd + eAlign CenterYes
                ctrl + rcmd + rAlign RightYes
                ctrl + jcmd + jAlign JustifyYes
                ctrl + shift + Rcmd + shift + RParagraph Direction ( RTL / LTR )Yes
                ctrl + shift + Lcmd + shift + LCreate/Edit Inline LinkYes
                ctrl + shift + altRcmd + shift + altRRemove FormatYes
                +
                + +
                +
                  +
                • +
                +
                +
                +
                + +
                + + + + + + + + + + + + \ No newline at end of file diff --git a/plugin/ui/assets/css/default.min.css b/plugin/ui/assets/css/default.min.css new file mode 100644 index 00000000..b8dc2eab --- /dev/null +++ b/plugin/ui/assets/css/default.min.css @@ -0,0 +1,605 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +/* --------------------- DEFAULT --------------------- */ +:root{ + --primary: #282828; + --primary-rgba: 40,40,40; + + --secondary: #FFFFFF; + --secondary-rgba: 255,255,255; + + --blue: #1976d2; + --blue-rgba: 25,118,210; + + --red: #e53935; + --red-rgba: 229,57,53; + + --yellow: #ffb300; + --yellow-rgba: 255,179,0; + + --green: #66bb6a; + --green-rgba: 102,187,106; + + --grey-1: #EEEEEE; + --grey-2: #DDDDDD; + --grey-3: #AAAAAA; + + --weight-normal: 400; + --weight-strong-1: 500; + --weight-strong-2: 700; +} + +.st-dark-mode:root{ + color-scheme: dark; + --primary: #DDDDDD; + --primary-rgba: 221,221,221; + + --secondary: #252525; + --secondary-rgba: 37,37,37; + + --blue: #64b5f6; + --blue-rgba: 100,181,246; + + --red: #ef5350; + --red-rgba: 239,83,80; + + --yellow: #dbc070; + --yellow-rgba: 219,192,112; + + --green: #81c784; + --green-rgba: 129,199,132; + + --grey-1: #353535; + --grey-2: #454545; + --grey-3: #555555; +} + +*{ + overflow-wrap: break-word; +} + +[data-dir="rtl"], +[data-dir="rtl"] *{ + text-align: initial; + direction: rtl; +} + +pre{ + position: relative; + white-space: pre-wrap; +} + +pre .copy_to_clipboard{ + position: absolute; + top: 0; + right: 0; + background: var( --grey-1 ); + padding: .25rem .5rem; +} + +.hljs{ + background: var( --secondary ) !important; +} + +.hljs *{ + color: inherit; +} + +ul, +ol{ + list-style: none; +} +/* ------------------------- END DEFAULT ------------------------- */ + + + +.adiptal-ui{ + display: flex; + flex-direction: column; + container: adiptal-ui / inline-size; +} + +.adiptal-ui *{ + line-height: 1.6; +} + +.adiptal-ui p, +.adiptal-ui li, +.adiptal-ui td, +.adiptal-ui th, +.adiptal-ui pre>code, +.adiptal-ui blockquote, +.adiptal-ui .il:not([data-cr="eb"]){ + color: rgba( var( --primary-rgba ), .85); +} + + +/* --------------------- TITLE --------------------- */ +.adiptal-ui>header{ + margin-bottom: 1rem; +} + +.adiptal-ui>header h1{ + padding: 0 1rem; + font-size: 3rem; + font-weight: var( --weight-strong-2 ); + letter-spacing: .05rem; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui>header h1{ + font-size: 2.25rem; + } +} + + +/* --------------------- SECTION --------------------- */ +.adiptal-ui>section{ + position: relative; + padding: 3rem 0; +} + +.adiptal-ui>section:not(:first-of-type){ + box-shadow: 0 -.05rem rgba( var( --primary-rgba ), .1); +} + +.adiptal-ui section>*, +.adiptal-ui section .columns>div>*, +.adiptal-ui section .carousel>*:not(.navigation)>*, +.adiptal-ui section .accordion>div>*>*, +.adiptal-ui section .tab>div>*>*, +.adiptal-ui section .container>*{ + position: relative; + margin: 1.5rem; + z-index: 1; +} + +@container adiptal-ui (width >= 768px){ + .adiptal-ui>section>*{ + margin: 1.5rem 15%; + } +} + + + +.adiptal-ui section .columns>div, +.adiptal-ui section .carousel>*:not(.navigation), +.adiptal-ui section .accordion>*>button.active+*, +.adiptal-ui section .tab>.tab-body>*, +.adiptal-ui section .container{ + position: relative; + overflow: auto; +} + + +/* --------------------- ALIGN --------------------- */ +[data-align="CENTER"], +[data-align="CENTER"] *{ + text-align: center; +} + +[data-align="JUSTIFY"], +[data-align="JUSTIFY"] *{ + text-align: justify; +} + +[data-align="RIGHT"], +[data-align="RIGHT"] *{ + text-align: right; +} + + +/* --------------------- STYLING --------------------- */ +.adiptal-ui del, +.adiptal-ui sup, +.adiptal-ui sub, +.adiptal-ui em, +.adiptal-ui strong, +.adiptal-ui code, +.adiptal-ui a, +.adiptal-ui mark{ + display: inline; + font: inherit; + color: inherit; +} + +.adiptal-ui sup, +.adiptal-ui sub{ + font-size: .85rem; +} + +.adiptal-ui em.i{ + font-style: italic; +} + +.adiptal-ui em.ul, +.adiptal-ui a{ + text-decoration: underline; +} + +.adiptal-ui strong{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui mark{ + background: none; +} + +.adiptal-ui code:not(.hljs){ + padding: 0 .25rem .15rem; + border-radius: .25rem; + background: rgba( var( --primary-rgba ), .05); + box-shadow: 0 0 0 .1rem rgba( var( --primary-rgba ), .1); +} + +.adiptal-ui a{ + color: var( --blue ); +} + + +/* --------------------- HEADING --------------------- */ +.adiptal-ui h2{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui h2, +.adiptal-ui h3, +.adiptal-ui h4{ + font-size: 1.6rem; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui h2, + .adiptal-ui h3, + .adiptal-ui h4{ + font-size: 1.5rem; + } +} + +.adiptal-ui h3:not(:first-child), +.adiptal-ui h4:not(:first-child){ + margin-top: 3rem; +} + + +/* --------------------- ASIDE --------------------- */ +.adiptal-ui aside *{ + min-width: unset !important; + max-width: 100% !important; +} + + +/* --------------------- dm --------------------- */ +.adiptal-ui section>a, +.adiptal-ui section div:not(.il)>a{ + display: block; + text-decoration: none; + color: rgba( var( --primary-rgba ), .85); +} + + +/* --------------------- PRE --------------------- */ +.adiptal-ui figure.pre{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui figure.pre figcaption{ + padding: .35rem 1rem; + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui figure.pre>pre>code{ + padding: 1.5rem; +} + + +/* --------------------- dn --------------------- */ +.adiptal-ui figure.image img{ + display: block; + width: 100%; + height: 100%; + object-fit: contain; +} + + +/* --------------------- BLOCKQUOTE --------------------- */ +.adiptal-ui figure.blockquote{ + position: relative; +} + +.adiptal-ui figure blockquote{ + padding: 1rem; +} + +.adiptal-ui figure.blockquote figcaption{ + padding: .35rem 1rem; +} + + +/* --------------------- CAPTION --------------------- */ +.adiptal-ui figure figcaption{ + font-style: italic; + color: rgba( var( --primary-rgba ), .6); +} + +.adiptal-ui figure cite{ + font-size: inherit; + color: inherit; +} + + +/* --------------------- LISTS --------------------- */ +.adiptal-ui li{ + margin: .75rem 0; + margin-left: 1.5rem; +} + +.adiptal-ui section>ul:not(.checklist), +.adiptal-ui section .columns>div>ul:not(.checklist), +.adiptal-ui section .carousel>*>ul:not(.checklist), +.adiptal-ui section .accordion>div>*>ul:not(.checklist), +.adiptal-ui section .tab>div>*>ul:not(.checklist), +.adiptal-ui section .container>ul:not(.checklist){ + list-style-type: disc; +} + +.adiptal-ui section>ol, +.adiptal-ui section .columns>div>ol, +.adiptal-ui section .carousel>*>ol, +.adiptal-ui section .accordion>div>*>ol, +.adiptal-ui section .tab>div>*>ol, +.adiptal-ui section .container>ol{ + list-style-type: decimal; +} + +.adiptal-ui li::marker{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui ul.checklist li{ + position: relative; +} + +.adiptal-ui ul.checklist li::before{ + content: '\025A2'; +} + +.adiptal-ui ul.checklist li.checked::before{ + content: '\2713'; +} + +.adiptal-ui ul.checklist li::before, +.hg ul.checklist button{ + position: absolute; + left: -1.5rem; +} + +.hg ul.checklist button{ + top: .35rem; + padding: .45rem; + z-index: 1; +} + + +/* --------------------- dk --------------------- */ +.adiptal-ui .table>div, +.adiptal-ui .im{ + table-layout: fixed; + overflow-x: auto; +} + +.adiptal-ui table{ + width: 100%; + border-collapse: collapse; +} + +.adiptal-ui table, +.adiptal-ui table td, +.adiptal-ui table th{ + border: solid .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui table td, +.adiptal-ui table th{ + padding: .5rem 1rem; +} + +.adiptal-ui table th{ + font-weight: var( --weight-strong-1 ); +} + + +/* ------------------------- MEDIA EMBED ------------------------- */ +.adiptal-ui .media-embed.spotify, +.adiptal-ui .media-embed.vimeo, +.adiptal-ui .media-embed.youtube, +.adiptal-ui .media-embed.soundcloud{ + aspect-ratio: 16/9; +} + +.adiptal-ui .media-embed.twitter *{ + width: 100% !important; + max-width: 100% !important; +} + +.adiptal-ui .media-embed.spotify iframe, +.adiptal-ui .media-embed.vimeo iframe, +.adiptal-ui .media-embed.youtube iframe, +.adiptal-ui .media-embed.soundcloud iframe{ + display: block; + width: 100%; + height: 100%; +} + + +/* --------------------- dp --------------------- */ +.adiptal-ui .columns{ + display: flex; + flex-wrap: wrap; +} + +.adiptal-ui .columns>*{ + flex: 0 0 50%; +} + +@container adiptal-ui (width < 768px) +{ + .adiptal-ui .columns>*{ + flex: 0 0 100%; + } +} + + +/* ------------------------- dt ------------------------- */ +.adiptal-ui .carousel{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .carousel>.navigation{ + display: flex; + align-items: center; + justify-content: center; + gap: .5rem; + padding: .5rem; + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .carousel>.navigation button{ + background: rgba( var( --primary-rgba ), .05); + padding: .25rem .5rem; + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui .carousel>.navigation .prev{ + transform: rotateY(180deg); +} + +.adiptal-ui .carousel>*:not(.navigation):not(:first-of-type){ + display: none; +} + + +/* --------------------- dq --------------------- */ +.adiptal-ui .accordion{ + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .accordion>*:not(:last-of-type){ + box-shadow: inset 0 -.05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .accordion>*>button{ + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + padding: .75rem 1.5rem; +} + +.adiptal-ui .accordion>*>button::after{ + content: '+'; + margin-bottom: .25rem; + line-height: 0; + font-size: 1.5rem; + font-weight: var( --weight-strong-1 ); + color: rgba( var( --primary-rgba ), .6); +} + +.adiptal-ui .accordion>*>button.active{ + font-weight: var( --weight-strong-1 ); + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .accordion>*>button.active::after{ + content: '-'; + font-size: 2rem; +} + +.adiptal-ui .accordion>*>button:not(.active)+*{ + display: none; +} + + +/* --------------------- dr --------------------- */ +.adiptal-ui .tab{ + position: relative; + display: flex; + flex-wrap: wrap; + box-shadow: 0 0 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading{ + width: 100%; + padding: 0; + display: flex; + overflow: auto; + box-shadow: 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading>li{ + flex: 0 0 auto; + margin: 0; + padding: 0; + box-shadow: 0 .05rem rgba( var( --primary-rgba ), .2); +} + +.adiptal-ui .tab>.tab-heading>li.active{ + background: rgba( var( --primary-rgba ), .05); +} + +.adiptal-ui .tab>.tab-heading>li button{ + width: 100%; + padding: .75rem 1.5rem; + text-align: center; +} + +.adiptal-ui .tab>.tab-heading>li.active button{ + font-weight: var( --weight-strong-1 ); +} + +.adiptal-ui .tab>.tab-body{ + width: 100%; +} + +.adiptal-ui .tab>.tab-body>*{ + display: none; +} + +@container adiptal-ui (width >= 768px) +{ + .adiptal-ui .tab.vertical>.tab-heading{ + flex-direction: column; + flex: 0 0 25%; + box-shadow: .05rem 0 rgba( var( --primary-rgba ), .2); + } + + .adiptal-ui .tab.vertical>.tab-body{ + flex: 0 0 75%; + } + + .adiptal-ui .tab.vertical>.tab-heading>li button{ + text-align: left; + } +} + + + +/* --------------------- DIRECTION RIGHT --------------------- */ +.adiptal-ui li[data-dir]{ + margin-left: unset; + margin-right: 1.5rem; +} + +.adiptal-ui ul.checklist li[data-dir]::before, +.hg ul.checklist [data-dir] button{ + left: unset; + right: -1.5rem; +} \ No newline at end of file diff --git a/plugin/ui/assets/js/default.min.js b/plugin/ui/assets/js/default.min.js new file mode 100644 index 00000000..69d8510c --- /dev/null +++ b/plugin/ui/assets/js/default.min.js @@ -0,0 +1,8 @@ +/* + Product : Adiptal Studio + All Information : https://github.com/adiptal/studio +*/ + + + +document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .carousel > .navigation .prev")){var o=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)").mi(),a=o.lw(":not(.navigation)");0==a.length&&(a=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)"),a=a.mf(a.length-1)),a.mr(),o.ms()}}),document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .carousel > .navigation .next")){var o=ne(e).mg(".carousel").ne(":scope > *:not(.navigation)").mi(),a=o.lt(":not(.navigation)");0==a.length&&(a=ne(e).mg(".carousel").ne(":scope > *:not(.navigation):first-of-type")),a.mr(),o.ms()}}),document.addEventListener("click",function(t){var e=t.target;e.matches(".adiptal-ui .accordion > * > button:not(.active)")&&(ne(e).mg(".accordion").ne(":scope > * > button.active").lx("active"),ne(e).mb("active"),ne(e.closest(".accordion")).mp().top<0&&e.closest(".accordion").scrollIntoView({behavior:"smooth"}))}),document.addEventListener("click",function(t){var e=t.target;if(e.matches(".adiptal-ui .tab-heading > li:not(.active) > button")){var o=ne(e).mg("li").mj();ne(e).mg("ul").ne(":scope > li.active").lx("active"),ne(e).mg(".tab").ne(":scope > .tab-body > *").ms(),ne(e).mg("li").mu("active"),ne(e).mg(".tab").ne(":scope > .tab-body > *").mf(o).mr(),ne(e.closest(".tab")).mp().top<0&&e.closest(".tab").scrollIntoView({behavior:"smooth"})}}),document.addEventListener("click",function(t){var e=t.target;if(e.matches("pre .copy_to_clipboard")){var o=new ClipboardItem({"text/html":new Blob([ne(e).lq().ne(":scope > code").my()],{type:"text/html"}),"text/plain":new Blob([ne(e).lq().ne(":scope > code").my()],{type:"text/plain"})});navigator.permissions.query({name:"clipboard-write"}).then(function(t){"granted"===t.state&&(navigator.clipboard.write([o]).then(t=>console.warn(t)),ne(e).mw("Coppied").mq({background:"rgba( var( --blue-rgba ), .2)",color:"var( --blue )"}),setTimeout(function(){ne(e).mw("Copy").lz("background").lz("color")},500))})}}),["DOMContentLoaded","RenderPreview"].forEach(function(t){document.addEventListener(t,function(t){ne(".adiptal-ui .accordion , .adiptal-ui .tab").forEach(function(t){0==ne(t).ne(":scope > * > button + *").mi().length&&ne(t).ne(":scope > *:first-of-type > button").mn(),0==ne(t).ne(":scope > .tab-body > *").mi().length&&ne(t).ne(":scope > .tab-heading > li:first-of-type > button").mn()})})}); \ No newline at end of file