Plugin Directory

Changeset 3407581


Ignore:
Timestamp:
12/02/2025 07:05:25 AM (3 months ago)
Author:
digitalapps
Message:

1.3.7

Location:
wp-swiper/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wp-swiper/trunk/README.txt

    r3399424 r3407581  
    7676This filter provides flexibility in how the `frontend-js` script is loaded, allowing for optimizations tailored to your specific site needs.
    7777
    78 ---
     78---
     79
     80## API Parameters
     81
     82### Loop Parameters
     83
     84#### `loopAddBlankSlides`
     85- **Type:** boolean
     86- **Default:** true
     87- **Description:** Automatically adds blank slides if you use Grid or slidesPerGroup and the total amount of slides is not even to slidesPerGroup or to grid.rows
     88
     89#### `loopAdditionalSlides`
     90- **Type:** number
     91- **Default:** 0
     92- **Description:** Allows to increase amount of looped slides
     93
     94---
    7995
    8096!!! IMPORTANT !!!
     
    119135
    120136== Changelog ==
     137= 1.3.7 =
     138* Extended support for Free Mode
     139* added loopAdditionalSlides
     140* remove jquery dependency
     141
    121142= 1.3.6 =
    122143* Allow zero to be set for delay
  • wp-swiper/trunk/build/blocks/slides/block.json

    r3393974 r3407581  
    7070      "default": false
    7171    },
     72    "reverseDirection": {
     73      "type": "boolean",
     74      "default": false
     75    },
     76    "stopOnLastSlide": {
     77      "type": "boolean",
     78      "default": false
     79    },
     80    "waitForTransition": {
     81      "type": "boolean",
     82      "default": true
     83    },
    7284    "navigation": {
    7385      "type": "boolean",
     
    8597      "type": "boolean",
    8698      "default": false
     99    },
     100    "loopAddBlankSlides": {
     101      "type": "boolean",
     102      "default": true
     103    },
     104    "loopAdditionalSlides": {
     105      "type": "number",
     106      "default": 0
    87107    },
    88108    "effect": {
     
    160180      "default": false
    161181    },
    162     "sticky": {
     182    "freeModeMinimumVelocity": {
     183      "type": "number",
     184      "default": 0.02
     185    },
     186    "freeModeMomentum": {
     187      "type": "boolean",
     188      "default": true
     189    },
     190    "freeModeMomentumBounce": {
     191      "type": "boolean",
     192      "default": true
     193    },
     194    "freeModeMomentumBounceRatio": {
     195      "type": "number",
     196      "default": 1
     197    },
     198    "freeModeMomentumRatio": {
     199      "type": "number",
     200      "default": 1
     201    },
     202    "freeModeMomentumVelocityRatio": {
     203      "type": "number",
     204      "default": 1
     205    },
     206    "freeModeSticky": {
    163207      "type": "boolean",
    164208      "default": false
  • wp-swiper/trunk/build/index.build.asset.php

    r3399424 r3407581  
    1 <?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes'), 'version' => 'db21eb65880bddd3173a');
     1<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keycodes'), 'version' => 'c94746c68b6782a4eecb');
  • wp-swiper/trunk/build/index.build.js

    r3399424 r3407581  
    1 (()=>{var e={98:function(e,t,n){"use strict";var s;!function(){if("function"!=typeof l){var l=function(e){return e};l.nonNative=!0}const o=l("plaintext"),i=l("html"),a=l("comment"),r=/<(\w*)>/g,c=/<\/?([^\s\/>]+)/;function d(e,t,n){return u(e=e||"",p(t=t||[],n=n||""))}function p(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let n;for(;n=r.exec(e);)t.add(n[1])}else l.nonNative||"function"!=typeof e[l.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:o,tag_buffer:"",depth:0,in_quote_char:""}}function u(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let n=t.allowable_tags,s=t.tag_replacement,l=t.state,r=t.tag_buffer,c=t.depth,d=t.in_quote_char,p="";for(let t=0,u=e.length;t<u;t++){let u=e[t];if(l===o)"<"===u?(l=i,r+=u):p+=u;else if(l===i)switch(u){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",l=o,r+=">",n.has(h(r))?p+=r:p+=s,r="";break;case'"':case"'":d=u===d?"":d||u,r+=u;break;case"-":"<!-"===r&&(l=a),r+=u;break;case" ":case"\n":if("<"===r){l=o,p+="< ",r="";break}r+=u;break;default:r+=u}else l===a&&(">"===u?("--"==r.slice(-2)&&(l=o),r=""):r+=u)}return t.state=l,t.tag_buffer=r,t.depth=c,t.in_quote_char=d,p}function h(e){let t=c.exec(e);return t?t[1].toLowerCase():null}d.init_streaming_mode=function(e,t){let n=p(e=e||[],t=t||"");return function(e){return u(e||"",n)}},void 0===(s=function(){return d}.call(t,n,t,e))||(e.exports=s)}()},495:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function n(n,s){if("string"!=typeof n)throw new Error("slugify: string argument expected");var l=t[(s="string"==typeof s?{replacement:s}:s||{}).locale]||{},o=void 0===s.replacement?"-":s.replacement,i=void 0===s.trim||s.trim,a=n.normalize().split("").reduce(function(t,n){var i=l[n];return void 0===i&&(i=e[n]),void 0===i&&(i=n),i===o&&(i=" "),t+i.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(a=a.replace(/[^A-Za-z0-9\s]/g,"")),i&&(a=a.trim()),a=a.replace(/\s+/g,o),s.lower&&(a=a.toLowerCase()),a}return n.extend=function(t){Object.assign(e,t)},n},e.exports=t(),e.exports.default=t()},655:(e,t)=>{var n;!function(){"use strict";var s=function(){function e(){}function t(e,t){for(var n=t.length,s=0;s<n;++s)l(e,t[s])}e.prototype=Object.create(null);var n={}.hasOwnProperty,s=/\s+/;function l(e,l){if(l){var o=typeof l;"string"===o?function(e,t){for(var n=t.split(s),l=n.length,o=0;o<l;++o)e[n[o]]=!0}(e,l):Array.isArray(l)?t(e,l):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var s in t)n.call(t,s)&&(e[s]=!!t[s]);else e[t.toString()]=!0}(e,l):"number"===o&&function(e,t){e[t]=!0}(e,l)}}return function(){for(var n=arguments.length,s=Array(n),l=0;l<n;l++)s[l]=arguments[l];var o=new e;t(o,s);var i=[];for(var a in o)o[a]&&i.push(a);return i.join(" ")}}();e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()}},t={};function n(s){var l=t[s];if(void 0!==l)return l.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"name":"da/wp-swiper-slides","category":"media","supports":{"html":false,"className":false,"anchor":true,"align":["wide","full"]},"attributes":{"align":{"type":"string","default":""},"txtColor":{"type":"string"},"overlayColor":{"type":"object","default":{"rgb":{"r":0,"g":0,"b":0,"a":0}}},"containerWidth":{"type":"number"},"overlayImg":{"type":"string"},"previousIcon":{"type":"string"},"nextIcon":{"type":"string"},"overlayImgOpacity":{"type":"number","default":0.5},"currentSlide":{"type":"number","default":0},"tabActive":{"type":"string","default":"slide-1"},"buttonsAlign":{"type":"string","default":"start"},"autoplay":{"type":"boolean","default":false},"disableOnInteraction":{"type":"boolean","default":true},"pauseOnMouseEnter":{"type":"boolean","default":false},"navigation":{"type":"boolean","default":true},"pagination":{"type":"boolean","default":true},"clickable_pagination":{"type":"boolean","default":false},"loop":{"type":"boolean","default":false},"effect":{"type":"string","default":"slide"},"speed":{"type":"number","default":500},"delay":{"type":"number","default":3000},"slidesPerView":{"type":"string","default":"1"},"slidesPerGroup":{"type":"number","default":1},"slidesPerGroupAuto":{"type":"boolean","default":false},"slidesPerGroupSkip":{"type":"number","default":0},"spaceBetween":{"type":"number","default":0},"slidesOffsetBefore":{"type":"number","default":0},"slidesOffsetAfter":{"type":"number","default":0},"tabsData":{"type":"array","default":[{"clientId":"","slug":"slide-1","slideImg":"","thumbImg":""}]},"breakpoints":{"type":"string"},"thumbs":{"type":"boolean","default":false},"thumbsSlidesPerView":{"type":"number","default":4},"thumbsSpaceBetween":{"type":"number","default":10},"autoHeight":{"type":"boolean","default":true},"freeMode":{"type":"boolean","default":false},"sticky":{"type":"boolean","default":false},"debug":{"type":"boolean","default":false},"direction":{"type":"string","default":"horizontal"},"overflowVisible":{"type":"boolean","default":false}}}');var t=n(655),s=n.n(t);const l=window.wp.blockEditor,o=window.ReactJSXRuntime,i=[{save:function(e){let{className:t}=e.attributes;const{align:n,overlayImg:i,overlayImgOpacity:a,slidesPerView:r,spaceBetween:c,txtColor:d,autoplay:p,disableOnInteraction:u,pauseOnMouseEnter:h,delay:g,speed:b,loop:m,effect:f,navigation:w,pagination:x,mousewheel:v,releaseOnEdges:y,pagination_type:j,clickable_pagination:k,breakpoints:_,thumbs:C,thumbsSpaceBetween:P,thumbsSlidesPerView:B,autoHeight:I,freeMode:S,sticky:O,debug:N,direction:A,tabsData:R,previousIcon:E,nextIcon:T,slidesOffsetBefore:M,slidesOffsetAfter:D}=e.attributes;t=s()(t,"wp-swiper"),n&&(t=s()(t,`align${n}`));const z=l.useBlockProps.save({className:t}),$=(l.useInnerBlocksProps,(void 0!==R?R:[]).map((e,t)=>(e.thumbImg||e.slideImg)&&(0,o.jsx)("div",{className:"swiper-slide wp-swiper__thumb","data-thumb":t+1,children:(0,o.jsx)("img",{src:e.thumbImg||e.slideImg,alt:`Thumbnail ${t+1}`})},t))),V=i?{backgroundImage:`url(${i})`}:{};a&&(V.opacity=a);const H=d?{color:d}:{};let U={"data-thumbs":{}},G={"slidesPerView-":r,navigation:w,pagination:x,autoplay:p,disableOnInteraction:u,pauseOnMouseEnter:h,delay:g,speed:b,loop:m,effect:f};return N&&(G.debug=N),S&&O&&(G.sticky=O),G.slidesOffsetBefore=M,G.slidesOffsetAfter=D,G.direction=A,G.freeMode=S,G.autoHeight=I,G.spaceBetween=c,G.mousewheel=v,G.releaseOnEdges=y,G.type="bullets"!=j?j:"bullets",k&&(G.clickable=!!k||""),void 0!==_&&""!=_&&(G["data-breakpoints"]=JSON.stringify(_.replace(/^\s+|\s+|\n$/gm,"")),G["data-breakpoints"]=G.breakpoints.substring(1,G.breakpoints.length-1)),C&&(U["data-thumbs"]=JSON.stringify({spaceBetween:P,slidesPerView:B,freeMode:!0,watchSlidesProgress:!0,navigation:!1})),(0,o.jsxs)("div",{...z,children:[function(e,t){if(void 0!==e)return(0,o.jsx)("div",{className:"wp-swiper__overlay-img",style:t})}(i,V),(0,o.jsxs)("div",{className:"wp-swiper__wrapper",style:H,children:[(0,o.jsx)("div",{className:"swiper-container swiper","data-swiper":JSON.stringify(G),...U,children:(0,o.jsx)("div",{className:"swiper-wrapper",children:(0,o.jsx)(l.InnerBlocks.Content,{})})}),function({attributes:e}){const{navigation:t}=e;if(t)return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"wp_swiper__navigation",children:(0,o.jsxs)("div",{className:"wp_swiper__navigation-container",children:[(0,o.jsx)("div",{className:"swiper-button-prev "+(E?"wp_swiper__button-prev":""),children:E?(0,o.jsx)("img",{src:E,alt:"Previous"}):null}),(0,o.jsx)("div",{className:"swiper-button-next "+(T?"wp_swiper__button-next":""),children:T?(0,o.jsx)("img",{src:T,alt:"Previous"}):null})]})})})}(e),function({attributes:e}){const{pagination:t}=e;if(t)return(0,o.jsx)("div",{className:"swiper-pagination"})}(e)]}),function({attributes:e}){let{className:t}=e;if(t=t?t.toString():"",-1!==t.indexOf("is-style-testimonials"))return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"wp-swiper__quotes",children:(0,o.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"svg-inline--fa fa-quote-right fa-w-16 fa-5x",children:(0,o.jsx)("path",{fill:"currentColor",d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",class:""})})})})}(e),C&&(0,o.jsx)("div",{className:"wp-swiper__thumbs",children:(0,o.jsx)("div",{className:"wp-swiper__wrapper",children:(0,o.jsx)("div",{className:"swiper-container",children:(0,o.jsx)("div",{className:"swiper-wrapper",children:$})})})})]})}}],a=window.React,r=window.wp.i18n,c=window.wp.element,d=window.wp.blocks,p=window.wp.components,u=window.wp.compose,h=window.wp.data,{Component:g}=wp.element,{__}=wp.i18n,{Button:b,Popover:m}=wp.components;class f extends g{constructor(){super(...arguments),this.state={confirmed:-1}}render(){const{onRemove:e,show:t,style:n,tooltipText:s=__("Remove Slide?","@@text_domain"),tooltipRemoveText:l=__("Remove","@@text_domain"),tooltipCancelText:i=__("Cancel","@@text_domain")}=this.props,{confirmed:a}=this.state;return t?(0,o.jsxs)(b,{className:"wb-component-remove-button",onClick:()=>{-1===a&&this.setState({confirmed:0})},style:n,children:[0===a?(0,o.jsxs)(m,{className:"wb-component-remove-button-confirm",onClose:()=>{this.setState({confirmed:-1})},onClickOutside:()=>{this.setState({confirmed:-1})},children:[s,(0,o.jsx)(b,{className:"wb-component-remove-button-confirm-yep",onClick:e,children:l}),(0,o.jsx)(b,{className:"wb-component-remove-button-confirm-nope",onClick:()=>{this.setState({confirmed:-1})},children:i})]}):"",(0,o.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"trash",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"svg-inline--fa fa-trash fa-w-14 fa-3x",children:(0,o.jsx)("path",{fill:"currentColor",d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z",class:""})})]}):""}}n(495),n(98);const{getBlocks:w}=wp.data.select("core/block-editor");function x(e){return(0,o.jsx)("div",{className:"wb-tabs-icon",children:""!=e&&(0,o.jsx)("img",{className:"wb-tabs-icon_image",src:e})})}const v={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function y(e){return function(e){return!e||"center center"===e||"center"===e}(e)?"":v[e]}function j(e){if(Array.isArray(e))return e.map(e=>j(e));if("object"==typeof e&&null!==e){const t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=j(e[n]));return t}return e}const k=[["da/wp-swiper-slide",{slug:"slide-1"}]],_=(0,u.compose)([(0,h.withSelect)((e,t)=>{const{getBlock:n,isBlockSelected:s,hasSelectedInnerBlock:o}=e("core/block-editor"),{clientId:i}=t,a=n(i);return{innerBlocks:a?a.innerBlocks:[],blocks:e(l.store).getBlocks(),block:a,isSelectedBlockInRoot:s(i)||o(i,!0)}}),(0,h.withDispatch)((e,t,n)=>{const{updateBlockAttributes:s,removeBlock:l,replaceInnerBlocks:o,moveBlockToPosition:i,moveBlocksDown:a}=e("core/block-editor"),{getBlocks:r}=n.select("core/block-editor");return{moveBlocksDown:a,moveBlockToPosition:i,replaceInnerBlocks:o,getBlocks:r,updateBlockAttributes:s,removeBlock:l,updateSlugsForInnerBlocks:e=>{let t=1;e.forEach((e,n)=>{s(e.clientId,{slug:`slide-${t}`}),t++})}}})])(function(e){const{clientId:t,attributes:n,setAttributes:i,isSelectedBlockInRoot:u,getBlocks:h,replaceInnerBlocks:g,updateBlockAttributes:b,block:m,updateSlugsForInnerBlocks:w}=e;let{className:v}=e;const y=(0,l.useBlockProps)(),{tabActive:_,buttonsAlign:C,tabsData:P,txtColor:B,overlayColor:I,overlayImg:S,overlayImgOpacity:O,autoplay:N,disableOnInteraction:A,pauseOnMouseEnter:R,delay:E,speed:T,loop:M,effect:D,slidesPerView:z,slidesPerGroup:$,slidesPerGroupAuto:V,slidesPerGroupSkip:H,spaceBetween:U,navigation:G,pagination:F,containerWidth:W,mousewheel:Y,releaseOnEdges:J,pagination_type:q,clickable_pagination:L,breakpoints:Z,freeMode:K,sticky:X,thumbs:Q,thumbsSlidesPerView:ee,thumbsSpaceBetween:te,autoHeight:ne,debug:se,direction:le,previousIcon:oe,nextIcon:ie,slidesOffsetBefore:ae,slidesOffsetAfter:re,overflowVisible:ce}=n,de=h(t);(0,a.useEffect)(()=>{const t=m.innerBlocks.map(e=>e.attributes.slug),n=e.attributes.tabsData.map(e=>e.slug),s=m.innerBlocks.map(e=>e.attributes.thumbImg),l=e.attributes.tabsData.map(e=>e.thumbImg);let o=0;if(!he(t,n&&!he(s,l))){const e=m.innerBlocks.map((e,t)=>(o++,{clientId:e.clientId,slideImg:e.attributes.slideImg,thumbImg:e.attributes.thumbImg,slug:`slide-${o}`}));w(m.innerBlocks),i({tabsData:e})}},[de]);const[pe,ue]=(0,a.useState)("bottom center"),he=(e,t)=>e.length===t.length&&e.every((e,n)=>e===t[n]),ge=t=>{const{setAttributes:n,attributes:s,block:l,getBlocks:o,replaceInnerBlocks:i,removeBlock:a}=e,{tabsData:r=[]}=s;if(1>=l.innerBlocks.length)a(l.clientId);else if(l.innerBlocks[t]&&r[t]){const e=j(r);e.splice(t,1),a(l.innerBlocks[t].clientId);for(let n=t;n<e.length;n++){const t=`slide-${n+1}`;e[n].slug=t,b(e[n].clientId,{slug:t})}n({tabsData:e})}};(0,a.useEffect)(()=>{},[P]),v=s()(v,"wp-swiper__slides");let be=C;"start"===be?be="left":"end"===be&&(be="right");let me=1;const fe=B?{color:B}:{},we=()=>(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)("div",{style:{borderTop:"1px solid #dddddd",marginTop:"16px",marginBottom:"16px",width:"100%"}})});return(0,o.jsxs)(c.Fragment,{children:[(0,o.jsxs)(l.InspectorControls,{children:[(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Overlay Settings"),initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(l.MediaUploadCheck,{children:(0,o.jsx)(l.MediaUpload,{value:S,onSelect:e=>{let t=e.sizes.full.url;i({overlayImg:t})},type:"image",render:e=>(0,o.jsx)(p.Button,{onClick:e.open,className:"button",children:"Select overlay image"})})})}),S&&(0,o.jsx)(p.PanelRow,{children:x(S)}),S&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>i({overlayImg:void 0}),children:(0,r.__)("Clear Media")})}),S&&(0,o.jsx)(p.BaseControl,{label:(0,r.__)("Image Overlay Opacity","@@text_domain"),children:(0,o.jsx)(p.RangeControl,{label:(0,r.__)("Opacity"),value:O,onChange:e=>i({overlayImgOpacity:e}),min:0,max:1,step:.01,required:!0})}),(0,o.jsx)(we,{}),(0,o.jsx)(p.BaseControl,{label:(0,r.__)("Overlay Color","@@text_domain"),children:(0,o.jsx)(p.ColorPicker,{color:I.hex||I,onChangeComplete:e=>{i({overlayColor:e}),m.innerBlocks.map(t=>{b(t.clientId,{overlayColor:e})})}})}),I.rgb.a>0&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>{const e={rgb:{r:0,g:0,b:0,a:0}};i({overlayColor:e}),m.innerBlocks.map(t=>{b(t.clientId,{overlayColor:e})})},children:(0,r.__)("Clear Color")})})]}),(0,o.jsx)(p.PanelBody,{title:(0,r.__)("Color Settings"),initialOpen:!1,children:(0,o.jsx)(p.BaseControl,{label:(0,r.__)("Text Color","@@text_domain"),children:(0,o.jsx)(p.ColorPicker,{color:B,onChangeComplete:e=>i({txtColor:e.hex})})})}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Basic Slider Settings"),icon:"controls-play",initialOpen:!0,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Auto Play",checked:N,onChange:()=>{i({autoplay:!N})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Loop",checked:M,onChange:()=>{i({loop:!M})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Speed",help:"Duration of transition between slides (in ms)",value:T,type:"number",onChange:e=>{i({speed:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Delay",help:"Delay between transitions (in ms)",value:E,type:"number",onChange:e=>{i({delay:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.RangeControl,{label:(0,r.__)("Container Max Width %"),help:(0,r.__)("Frontend: Set the max width for the content with text."),value:W,onChange:e=>{i({containerWidth:e}),m.innerBlocks.map(t=>{b(t.clientId,{containerWidth:e})})},min:1,max:100,step:1,required:!0})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Overflow Visible",help:"Apply overflow visible to the swiper container",checked:ce,onChange:()=>{i({overflowVisible:!ce})}})})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Slides Configuration"),icon:"grid-view",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Slides per view",help:"Number of slides per view (slides visible at the same time on slider's container). Can be a number or auto",value:z,onChange:e=>{i({slidesPerView:e})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Slides Per Group",help:"Set numbers of slides to define and enable group sliding. Useful to use with slidesPerView > 1",value:$,type:"number",onChange:e=>{i({slidesPerGroup:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Slides Per Group Auto",help:"This param intended to be used only with slidesPerView: 'auto' and slidesPerGroup: 1. When enabled, it will skip all slides in view on .slideNext() & .slidePrev() methods calls, on Navigation buttons clicks and in autoplay.",checked:V,onChange:()=>{i({slidesPerGroupAuto:!V})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Slides Per Group Skip",help:"If slidesPerGroupSkip equals 0 (default), no slides are excluded from grouping. If slidesPerGroupSkip is equal or greater than 1, the first X slides are treated as single groups, whereas all following slides are grouped by the slidesPerGroup value.",value:H,type:"number",onChange:e=>{i({slidesPerGroupSkip:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Space Between",help:"Distance between slides in px.",value:U,onChange:e=>{i({spaceBetween:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Slides Offset Before",help:"Add (in px) additional slide offset in the beginning of the container (before all slides)",value:ae,onChange:e=>{i({slidesOffsetBefore:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Slides Offset After",help:"Add (in px) additional slide offset in the end of the container (after all slides)",value:re,onChange:e=>{i({slidesOffsetAfter:parseInt(e)})}})})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Navigation & Controls"),icon:"leftright",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Show Navigation",checked:G,onChange:()=>{i({navigation:!G})}})}),G&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)("p",{children:"You can customize icons by uploading your own. Default icons used otherwise."})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(l.MediaUploadCheck,{children:(0,o.jsx)(l.MediaUpload,{value:oe,onSelect:e=>{let t=e.sizes.full.url;i({previousIcon:t})},type:"image",render:e=>(0,o.jsx)(p.Button,{onClick:e.open,className:"button",children:"Select previous slide icon"})})})}),oe&&(0,o.jsx)(p.PanelRow,{children:x(oe)}),oe&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>i({previousIcon:void 0}),children:(0,r.__)("Clear Media")})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(l.MediaUploadCheck,{children:(0,o.jsx)(l.MediaUpload,{value:ie,onSelect:e=>{let t=e.sizes.full.url;i({nextIcon:t})},type:"image",render:e=>(0,o.jsx)(p.Button,{onClick:e.open,className:"button",children:"Select next slide icon"})})})}),ie&&(0,o.jsx)(p.PanelRow,{children:x(ie)}),ie&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>i({nextIcon:void 0}),children:(0,r.__)("Clear Media")})})]}),(0,o.jsx)(we,{}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Show Pagination",checked:F,onChange:()=>{i({pagination:!F})}})}),F&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.SelectControl,{label:"Type of pagination",value:q,options:[{label:"Bullets",value:"bullets"},{label:"Fraction",value:"fraction"},{label:"Progress Bar",value:"progressbar"}],onChange:e=>{i({pagination_type:e})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Clickable Pagination",checked:L,onChange:()=>{i({clickable_pagination:!L})}})})]}),(0,o.jsx)(we,{}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Auto Height",help:"Set to true and slider wrapper will adapt its height to the height of the currently active slide",checked:ne,onChange:()=>{i({autoHeight:!ne})}})})]}),(0,o.jsx)(p.PanelBody,{title:(0,r.__)("Direction Settings"),icon:"sort",initialOpen:!1,children:(0,o.jsx)(p.SelectControl,{label:"Direction",help:"For vertical slider, Slides Per View should be set to 1",value:le,options:[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],onChange:e=>{i({direction:e})}})}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Autoplay Behavior"),icon:"controls-repeat",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Disable On Interaction",checked:A,help:"Set to false and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction",onChange:()=>{i({disableOnInteraction:!A})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Pause On Mouse Enter",checked:R,help:"When enabled autoplay will be paused on pointer (mouse) enter over Swiper container.",onChange:()=>{i({pauseOnMouseEnter:!R})}})})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Advanced Features"),icon:"admin-generic",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.SelectControl,{label:"Effect (Under Construction)",value:D,options:[{label:"Slide",value:"slide"},{label:"Fade",value:"fade"},{label:"Cube",value:"cube"},{label:"Coverflow",value:"coverflow"},{label:"Flip",value:"flip"}],onChange:e=>{i({effect:e})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Free Mode",help:"Enables free mode functionality",checked:K,onChange:()=>{K&&i({sticky:!1}),i({freeMode:!K})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Sticky",help:"Set to enabled to enable snap to slides positions in free mode",disabled:!K,checked:X,onChange:()=>{i({sticky:!X})}})}),(0,o.jsx)(we,{}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Mouse Wheel",help:"Enables navigation through slides using mouse wheel.",checked:Y,onChange:()=>{i({mousewheel:!Y})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Release On Edges",help:"Set to true and swiper will release mousewheel event and allow page scrolling when swiper is on edge positions (in the beginning or in the end) NOTE: Mouse Wheel must be set to true for this to work.",checked:J,onChange:()=>{i({releaseOnEdges:!J})}})})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Responsive Breakpoints"),icon:"smartphone",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextareaControl,{label:"Responsive breakpoints (JSON Object)",help:"Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which are not required different layout and logic, like slidesPerView, slidesPerGroup, spaceBetween, grid.rows. Such parameters like loop and effect won't work",value:Z,onChange:e=>{i({breakpoints:e})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsxs)("p",{children:["Example: ",'{"720":{"slidesPerView":2}}'," - Notice the double quotes"]})})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Thumbnails"),icon:"images-alt2",initialOpen:!1,children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.ToggleControl,{label:"Thumbs",help:"Enables thumbs to be used as pagination.",checked:Q,onChange:()=>{i({thumbs:!Q})}})}),Q&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Space Between",help:"Distance between slides in px.",value:te,onChange:e=>{i({thumbsSpaceBetween:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.TextControl,{label:"Thumbs per view",help:"Number of slides per view (slides visible at the same time on slider's container). Can be a number or auto",value:ee,onChange:e=>{i({thumbsSlidesPerView:parseInt(e)})}})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.__experimentalAlignmentMatrixControl,{disableAlignment:["center"],value:pe,onChange:e=>ue(e)})})]})]}),(0,o.jsxs)(p.PanelBody,{title:(0,r.__)("Developer Tools"),icon:"admin-tools",initialOpen:!1,children:[(0,o.jsx)(p.ToggleControl,{label:"Debug",help:"Show (console.log) config JSON object for each slider",checked:se,onChange:()=>{i({debug:!se})}}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{onClick:()=>{let e=1;P.forEach((t,n)=>{t.slug=`slide-${e}`,e++}),i({tabsData:P}),w(m.innerBlocks)},className:"button",children:"Fix Slide Slugs"})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)("p",{style:{marginTop:"calc(8px)",fontSize:"12px",fontStyle:"normal",color:"rgb(117, 117, 117)",marginBottom:"revert"},children:"On rare occasions, if the slide slugs become out of sync with the slide data stored in the parent block, you might notice all slide contents appearing under a single tab. Clicking this button could help resolve the issue. This action iterates over each slide and resets the slugs in ascending order (e.g., slide-1, slide-2, etc.), ensuring that each tab properly corresponds to its respective slide."})})]})]}),(0,o.jsx)("div",{...y,className:v,"data-tab-active":_,children:(0,o.jsxs)("div",{className:"wb-tabs-buttons-wrapper",style:fe,children:[(0,o.jsxs)("div",{className:s()("wb-tabs-buttons",`wb-tabs-buttons-align-${C}`),children:[P.map((e,t)=>{const{slug:n}=e,l=_===n;return(0,o.jsxs)("div",{className:s()("wb-tabs-buttons-item",l?"wb-tabs-buttons-item-active":""),onClick:()=>i({tabActive:n}),children:[(0,o.jsxs)("h4",{children:["Slide ",me++]}),(0,o.jsx)(f,{show:u,tooltipText:(0,r.__)("Remove slide?","@@text_domain"),onRemove:()=>{ge(t)}})]},`tab_button_${e.slug}`)}),u?(0,o.jsx)(p.Tooltip,{text:(0,r.__)("Add Slide","@@text_domain"),children:(0,o.jsx)(p.Button,{icon:"insert",onClick:()=>{let e=[];const n=P.length+1,s=(0,d.createBlock)("da/wp-swiper-slide",{slug:`slide-${n}`});e=[...P],e.push({clientId:s.clientId,slug:`slide-${n}`,slideImg:"",thumbImg:""});let l=h(t);l=[...l,s],g(t,l,!1),i({tabsData:e})}})}):""]}),(0,o.jsx)("div",{className:"wp-swiper__slide-content",children:(0,o.jsx)(l.InnerBlocks,{template:k,templateLock:!1,allowedBlocks:["da/wp-swiper-slide"]})})]})}),(0,o.jsx)("style",{children:`\n\t\t\t\t\t\t[data-block="${e.clientId}"] .wp-swiper__slides .wp-swiper__slide-content .block-editor-inner-blocks .block-editor-block-list__layout [data-tab="${null!=_?_:"slide-1"}"] {\n\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t`})]})}),{__:C}=wp.i18n,{name:P}=e,B={...e,title:C("WP Swiper","@@text_domain"),description:C("Create an awesome slider.","@@text_domain"),icon:(0,o.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M20 17.4444C20 17.857 19.8314 18.2527 19.5314 18.5444C19.2313 18.8361 18.8243 19 18.4 19H5.6C5.17565 19 4.76869 18.8361 4.46863 18.5444C4.16857 18.2527 4 17.857 4 17.4444V6.55556C4 6.143 4.16857 5.74733 4.46863 5.45561C4.76869 5.16389 5.17565 5 5.6 5H9.6L11.2 7.33333H18.4C18.8243 7.33333 19.2313 7.49722 19.5314 7.78894C19.8314 8.08067 20 8.47633 20 8.88889V17.4444Z",stroke:"currentColor",fill:"transparent","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),keywords:[C("swiper","@@text_domain"),C("slider","@@text_domain"),C("wp slider","@@text_domain"),C("wp swiper","@@text_domain")],edit:_,save:function(e){let{className:t}=e.attributes;const{align:n,overlayImg:i,overlayImgOpacity:a,slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:p,spaceBetween:u,txtColor:h,autoplay:g,disableOnInteraction:b,pauseOnMouseEnter:m,delay:f,speed:w,loop:x,effect:v,navigation:y,pagination:j,mousewheel:k,releaseOnEdges:_,pagination_type:C,clickable_pagination:P,breakpoints:B,thumbs:I,thumbsSpaceBetween:S,thumbsSlidesPerView:O,autoHeight:N,freeMode:A,sticky:R,debug:E,direction:T,tabsData:M,previousIcon:D,nextIcon:z,slidesOffsetBefore:$,slidesOffsetAfter:V,overflowVisible:H}=e.attributes;t=s()(t,"wp-swiper"),n&&(t=s()(t,`align${n}`));const U=l.useBlockProps.save({className:t}),G=(l.useInnerBlocksProps,i?{backgroundImage:`url(${i})`}:{});a&&(G.opacity=a);const F=h?{color:h}:{};let W={"data-thumbs":{}},Y={slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:p,navigation:y,pagination:{},delay:f,speed:w,loop:x,direction:T,slidesOffsetBefore:$,slidesOffsetAfter:V,autoHeight:N,spaceBetween:u,releaseOnEdges:_};k&&_&&(Y.mousewheel={releaseOnEdges:"true"===_}),v&&(Y.effect=v,"fade"===v&&(Y.fadeEffect={crossFade:!0})),g&&(Y.autoplay=!0,null!=f&&(Y.autoplay={delay:Number(f)}),b&&(Y.autoplay||(Y.autoplay={}),Y.autoplay.disableOnInteraction=!0),m&&(Y.autoplay||(Y.autoplay={}),Y.autoplay.pauseOnMouseEnter=!0)),A&&(Y.freeMode={enabled:!0},R&&(Y.freeMode.sticky=!0)),Y.pagination.type="bullets"!=C?C:"bullets",P&&(Y.pagination.clickable=!!P||""),void 0!==B&&""!=B&&(Y.breakpoints=B),I&&(W["data-thumbs"]=JSON.stringify({spaceBetween:S,slidesPerView:O,freeMode:!0,watchSlidesProgress:!0,navigation:!1}));const J=(void 0!==M?M:[]).map((e,t)=>(e.thumbImg||e.slideImg)&&(0,o.jsx)("div",{className:"swiper-slide wp-swiper__thumb","data-thumb":t+1,children:(0,o.jsx)("img",{src:e.thumbImg||e.slideImg,alt:`Thumbnail ${t+1}`})},t)),q=s()("swiper-container","swiper",{"swiper-overflow-visible":H});return(0,o.jsxs)("div",{...U,children:[function(e,t){if(void 0!==e)return(0,o.jsx)("div",{className:"wp-swiper__overlay-img",style:t})}(i,G),(0,o.jsxs)("div",{className:"wp-swiper__wrapper",style:F,children:[(0,o.jsx)("div",{className:q,...E?{"data-debug":!0}:{},"data-swiper":JSON.stringify(Y),...W,children:(0,o.jsx)("div",{className:"swiper-wrapper",children:(0,o.jsx)(l.InnerBlocks.Content,{})})}),function({attributes:e}){const{navigation:t}=e;if(t)return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"wp_swiper__navigation",children:(0,o.jsxs)("div",{className:"wp_swiper__navigation-container",children:[(0,o.jsx)("div",{className:"swiper-button-prev "+(D?"wp_swiper__button-prev":""),children:D?(0,o.jsx)("img",{src:D,alt:"Previous"}):null}),(0,o.jsx)("div",{className:"swiper-button-next "+(z?"wp_swiper__button-next":""),children:z?(0,o.jsx)("img",{src:z,alt:"Previous"}):null})]})})})}(e),function({attributes:e}){const{pagination:t}=e;if(t)return(0,o.jsx)("div",{className:"swiper-pagination"})}(e)]}),function({attributes:e}){let{className:t}=e;if(t=t?t.toString():"",-1!==t.indexOf("is-style-testimonials"))return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("div",{className:"wp-swiper__quotes",children:(0,o.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"svg-inline--fa fa-quote-right fa-w-16 fa-5x",children:(0,o.jsx)("path",{fill:"currentColor",d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",class:""})})})})}(e),I&&(0,o.jsx)("div",{className:"wp-swiper__thumbs",children:(0,o.jsx)("div",{className:"wp-swiper__wrapper",children:(0,o.jsx)("div",{className:"swiper-container",children:(0,o.jsx)("div",{className:"swiper-wrapper",children:J})})})})]})},deprecated:i};B.attributes={...B.attributes,freeMode:{type:"boolean",default:!1},mousewheel:{type:"boolean",default:!1},releaseOnEdges:{type:"boolean",default:!1},pagination_type:{type:"string",default:"bullets"}};const I=JSON.parse('{"name":"da/wp-swiper-slide","parent":["da/wp-swiper-slides"],"category":"media","supports":{"html":false,"className":false,"anchor":true,"inserter":false,"reusable":false},"attributes":{"align":{"type":"string","default":"undefined"},"slideImgId":{"type":"number"},"slideImg":{"type":"string"},"thumbImg":{"type":"string"},"slug":{"type":"string"},"contentValign":{"type":"string","default":""},"contentHalign":{"type":"string","default":""},"contentVHalign":{"type":"string"},"focalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"overlayColor":{"type":"object","default":{"rgb":{"r":0,"g":0,"b":0,"a":0}}},"containerWidth":{"type":"number"}}}'),S=window.wp.keycodes,O=function(e){const{label:t=(0,r.__)("Change matrix alignment"),onChange:n="undefined",value:s="center",isDisabled:l}=e,i=(0,o.jsx)(p.__experimentalAlignmentMatrixControl.Icon,{value:s}),a="block-editor-block-alignment-matrix-control",c=`${a}__popover`;return(0,o.jsx)(p.Dropdown,{placement:"bottom right",className:a,popoverProps:{className:c,isAlternate:!0},renderToggle:({onToggle:e,isOpen:n})=>(0,o.jsx)(p.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==S.DOWN||(t.preventDefault(),t.stopPropagation(),e())},label:t,icon:i,showTooltip:!0,disabled:l}),renderContent:()=>(0,o.jsx)(p.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:s})})},N=(0,h.withSelect)((e,t)=>{const{clientId:n}=t,{getBlockOrder:s}=e("core/block-editor");return{hasChildBlocks:s(n).length>0}})(function(e){const t=t=>{e.setAttributes({focalPoint:t})},{setAttributes:n,hasChildBlocks:i,attributes:a}=e;let{className:d=""}=e;const{slideImg:u,thumbImg:h,overlayColor:g,contentVHalign:b}=a;d=s()(d,"wp-swiper__slide"),d=s()(d,{"has-image":!0}),d=s()(d,y(b));const m={backgroundImage:`url(${u})`,backgroundPosition:`${100*e.attributes.focalPoint.x}% ${100*e.attributes.focalPoint.y}%`};let f={},w={};return f=(t=>(e.attributes.slideImg&&(t.backgroundImage=`url(${e.attributes.slideImg})`),t))(f),w=(t=>{if(e.attributes.overlayColor){let{overlayColor:n}=e.attributes;t.backgroundColor=`rgba(${n.rgb.r}, ${n.rgb.g}, ${n.rgb.b}, ${n.rgb.a})`}return t})(w),f={...f,...m},(0,o.jsxs)(c.Fragment,{children:[(0,o.jsx)(l.InspectorControls,{children:(0,o.jsx)(p.PanelBody,{title:(0,r.__)("Image Settings"),children:(0,o.jsxs)(p.BaseControl,{label:(0,r.__)("Slide Image","@@text_domain"),children:[(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(l.MediaUploadCheck,{children:(0,o.jsx)(l.MediaUpload,{value:u,onSelect:t=>{let n=t.sizes.full.url;e.setAttributes({slideImg:n})},type:"image",render:e=>(0,o.jsx)(p.Button,{onClick:e.open,className:"button",children:"Select slide image"})})})}),u&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.FocalPointPicker,{url:u,value:e.attributes.focalPoint,onDragStart:t,onDrag:t,onChange:t})}),u&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>n({slideImg:void 0}),children:(0,r.__)("Clear Media")})}),(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(l.MediaUploadCheck,{children:(0,o.jsx)(l.MediaUpload,{value:h,onSelect:t=>{let n=t.sizes.full.url;e.setAttributes({thumbImg:n})},type:"image",render:e=>(0,o.jsx)(p.Button,{onClick:e.open,className:"button",children:"Select thumb image"})})})}),h&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.FocalPointPicker,{url:h,value:e.attributes.focalPoint,onDragStart:t,onDrag:t,onChange:t})}),h&&(0,o.jsx)(p.PanelRow,{children:(0,o.jsx)(p.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>n({thumbImg:void 0}),children:(0,r.__)("Clear Media")})})]})})}),(0,o.jsx)(l.BlockControls,{group:"block",children:(0,o.jsx)(O,{label:(0,r.__)("Change content position"),value:b,onChange:e=>{n({contentVHalign:e})}})}),(0,o.jsxs)("div",{className:d,children:[u&&(0,o.jsx)("div",{className:"wp-swiper__slide-overlay wp-swiper__slide-overlay--image",style:f}),g.rgb.a>0&&(0,o.jsx)("div",{className:"wp-swiper__slide-overlay wp-swiper__slide-overlay--color",style:w}),(0,o.jsx)(l.InnerBlocks,{renderAppender:i?void 0:()=>(0,o.jsx)(l.InnerBlocks.ButtonBlockAppender,{})})]})]})}),{applyFilters:A}=wp.hooks,{Component:R}=wp.element,{InnerBlocks:E}=wp.blockEditor,{name:T}=I,M=[{supports:I.supports,attributes:{...I.attributes},save:class extends R{render(){const{overlayColor:e,slug:t,slideImg:n,contentVHalign:l,containerWidth:i}=this.props.attributes;let a="wp-swiper__slide swiper-slide";""!=l&&void 0!==l&&(a=s()(a,y(l)));const r=n?{backgroundImage:`url(${n})`,backgroundSize:"cover"}:{},c=i?{maxWidth:`${i}%`}:null,d=e?{backgroundColor:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}:{};return(0,o.jsxs)("div",{className:a,"data-tab":t,style:r,children:[(0,o.jsx)("div",{className:"wp-swiper__overlay-color",style:d}),(0,o.jsx)("div",{className:"wp-swiper__slide-content",style:c,children:(0,o.jsx)(E.Content,{})})]})}}}],{__:D}=wp.i18n,{name:z}=I,$={...I,title:D("Slide","@@text_domain"),description:D("A single slide within a wp-swiper block.","@@text_domain"),icon:"admin",getEditWrapperProps:e=>({"data-tab":e.slug}),edit:N,save:function(e){const{attributes:t}=e,{overlayColor:n,slug:i,slideImg:r,contentVHalign:c,containerWidth:d,focalPoint:p}=t;let u="wp-swiper__slide swiper-slide";""!=c&&void 0!==c&&(u=s()(u,y(c)));const h=r?{backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:`${100*p.x}% ${100*p.y}%`}:{},g=d?{maxWidth:`${d}%`}:null,b=n?{backgroundColor:`rgba(${n.rgb.r}, ${n.rgb.g}, ${n.rgb.b}, ${n.rgb.a})`}:{},m=l.useBlockProps.save();return(0,a.createElement)("div",{...m,key:i,"data-tab":i,className:u,style:h},(0,o.jsx)("div",{className:"wp-swiper__overlay-color",style:b}),(0,o.jsx)("div",{className:"wp-swiper__slide-content",style:g,children:(0,o.jsx)(l.InnerBlocks.Content,{})}))},deprecated:M},{registerBlockType:V,registerBlockStyle:H}=wp.blocks;V(P,B),V(z,$),H(P,[{name:"testimonials",label:"Testimonials"},{name:"thumbnails-bottom-right",label:"Thumbnails Bottom Right"},{name:"overlayed-text-right",label:"Overlayed Text Right"}])})()})();
     1(()=>{var e={98:function(e,t,o){"use strict";var n;!function(){if("function"!=typeof i){var i=function(e){return e};i.nonNative=!0}const l=i("plaintext"),a=i("html"),s=i("comment"),r=/<(\w*)>/g,c=/<\/?([^\s\/>]+)/;function d(e,t,o){return p(e=e||"",u(t=t||[],o=o||""))}function u(e,t){return{allowable_tags:e=function(e){let t=new Set;if("string"==typeof e){let o;for(;o=r.exec(e);)t.add(o[1])}else i.nonNative||"function"!=typeof e[i.iterator]?"function"==typeof e.forEach&&e.forEach(t.add,t):t=new Set(e);return t}(e),tag_replacement:t,state:l,tag_buffer:"",depth:0,in_quote_char:""}}function p(e,t){if("string"!=typeof e)throw new TypeError("'html' parameter must be a string");let o=t.allowable_tags,n=t.tag_replacement,i=t.state,r=t.tag_buffer,c=t.depth,d=t.in_quote_char,u="";for(let t=0,p=e.length;t<p;t++){let p=e[t];if(i===l)"<"===p?(i=a,r+=p):u+=p;else if(i===a)switch(p){case"<":if(d)break;c++;break;case">":if(d)break;if(c){c--;break}d="",i=l,r+=">",o.has(h(r))?u+=r:u+=n,r="";break;case'"':case"'":d=p===d?"":d||p,r+=p;break;case"-":"<!-"===r&&(i=s),r+=p;break;case" ":case"\n":if("<"===r){i=l,u+="< ",r="";break}r+=p;break;default:r+=p}else i===s&&(">"===p?("--"==r.slice(-2)&&(i=l),r=""):r+=p)}return t.state=i,t.tag_buffer=r,t.depth=c,t.in_quote_char=d,u}function h(e){let t=c.exec(e);return t?t[1].toLowerCase():null}d.init_streaming_mode=function(e,t){let o=u(e=e||[],t=t||"");return function(e){return p(e||"",o)}},void 0===(n=function(){return d}.call(t,o,t,e))||(e.exports=n)}()},495:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E\'","Ը":"Y\'","Թ":"T\'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C\'","Կ":"K","Հ":"H","Ձ":"D\'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R\'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P\'","Ք":"Q\'","Օ":"O\'\'","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"\'","’":"\'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}'),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(o,n){if("string"!=typeof o)throw new Error("slugify: string argument expected");var i=t[(n="string"==typeof n?{replacement:n}:n||{}).locale]||{},l=void 0===n.replacement?"-":n.replacement,a=void 0===n.trim||n.trim,s=o.normalize().split("").reduce(function(t,o){var a=i[o];return void 0===a&&(a=e[o]),void 0===a&&(a=o),a===l&&(a=" "),t+a.replace(n.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return n.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),a&&(s=s.trim()),s=s.replace(/\s+/g,l),n.lower&&(s=s.toLowerCase()),s}return o.extend=function(t){Object.assign(e,t)},o},e.exports=t(),e.exports.default=t()},655:(e,t)=>{var o;!function(){"use strict";var n=function(){function e(){}function t(e,t){for(var o=t.length,n=0;n<o;++n)i(e,t[n])}e.prototype=Object.create(null);var o={}.hasOwnProperty,n=/\s+/;function i(e,i){if(i){var l=typeof i;"string"===l?function(e,t){for(var o=t.split(n),i=o.length,l=0;l<i;++l)e[o[l]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===l?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var n in t)o.call(t,n)&&(e[n]=!!t[n]);else e[t.toString()]=!0}(e,i):"number"===l&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var o=arguments.length,n=Array(o),i=0;i<o;i++)n[i]=arguments[i];var l=new e;t(l,n);var a=[];for(var s in l)l[s]&&a.push(s);return a.join(" ")}}();e.exports?(n.default=n,e.exports=n):void 0===(o=function(){return n}.apply(t,[]))||(e.exports=o)}()}},t={};function o(n){var i=t[n];if(void 0!==i)return i.exports;var l=t[n]={exports:{}};return e[n].call(l.exports,l,l.exports,o),l.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=JSON.parse('{"name":"da/wp-swiper-slides","category":"media","supports":{"html":false,"className":false,"anchor":true,"align":["wide","full"]},"attributes":{"align":{"type":"string","default":""},"txtColor":{"type":"string"},"overlayColor":{"type":"object","default":{"rgb":{"r":0,"g":0,"b":0,"a":0}}},"containerWidth":{"type":"number"},"overlayImg":{"type":"string"},"previousIcon":{"type":"string"},"nextIcon":{"type":"string"},"overlayImgOpacity":{"type":"number","default":0.5},"currentSlide":{"type":"number","default":0},"tabActive":{"type":"string","default":"slide-1"},"buttonsAlign":{"type":"string","default":"start"},"autoplay":{"type":"boolean","default":false},"disableOnInteraction":{"type":"boolean","default":true},"pauseOnMouseEnter":{"type":"boolean","default":false},"reverseDirection":{"type":"boolean","default":false},"stopOnLastSlide":{"type":"boolean","default":false},"waitForTransition":{"type":"boolean","default":true},"navigation":{"type":"boolean","default":true},"pagination":{"type":"boolean","default":true},"clickable_pagination":{"type":"boolean","default":false},"loop":{"type":"boolean","default":false},"loopAddBlankSlides":{"type":"boolean","default":true},"loopAdditionalSlides":{"type":"number","default":0},"effect":{"type":"string","default":"slide"},"speed":{"type":"number","default":500},"delay":{"type":"number","default":3000},"slidesPerView":{"type":"string","default":"1"},"slidesPerGroup":{"type":"number","default":1},"slidesPerGroupAuto":{"type":"boolean","default":false},"slidesPerGroupSkip":{"type":"number","default":0},"spaceBetween":{"type":"number","default":0},"slidesOffsetBefore":{"type":"number","default":0},"slidesOffsetAfter":{"type":"number","default":0},"tabsData":{"type":"array","default":[{"clientId":"","slug":"slide-1","slideImg":"","thumbImg":""}]},"breakpoints":{"type":"string"},"thumbs":{"type":"boolean","default":false},"thumbsSlidesPerView":{"type":"number","default":4},"thumbsSpaceBetween":{"type":"number","default":10},"autoHeight":{"type":"boolean","default":true},"freeMode":{"type":"boolean","default":false},"freeModeMinimumVelocity":{"type":"number","default":0.02},"freeModeMomentum":{"type":"boolean","default":true},"freeModeMomentumBounce":{"type":"boolean","default":true},"freeModeMomentumBounceRatio":{"type":"number","default":1},"freeModeMomentumRatio":{"type":"number","default":1},"freeModeMomentumVelocityRatio":{"type":"number","default":1},"freeModeSticky":{"type":"boolean","default":false},"debug":{"type":"boolean","default":false},"direction":{"type":"string","default":"horizontal"},"overflowVisible":{"type":"boolean","default":false}}}');var t=o(655),n=o.n(t);const i=window.wp.blockEditor,l=window.ReactJSXRuntime,a=[{attributes:{...e.attributes,sticky:{type:"boolean",default:!1}},save:function(e){let{className:t}=e.attributes;const{align:o,overlayImg:a,overlayImgOpacity:s,slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:u,spaceBetween:p,txtColor:h,autoplay:m,disableOnInteraction:g,pauseOnMouseEnter:b,delay:f,speed:w,loop:x,effect:v,navigation:y,pagination:j,mousewheel:k,releaseOnEdges:_,pagination_type:C,clickable_pagination:P,breakpoints:S,thumbs:B,thumbsSpaceBetween:I,thumbsSlidesPerView:O,autoHeight:M,freeMode:N,sticky:R,debug:A,direction:T,tabsData:E,previousIcon:V,nextIcon:D,slidesOffsetBefore:H,slidesOffsetAfter:$,overflowVisible:z}=e.attributes;t=n()(t,"wp-swiper"),o&&(t=n()(t,`align${o}`));const F=i.useBlockProps.save({className:t}),G=(i.useInnerBlocksProps,a?{backgroundImage:`url(${a})`}:{});s&&(G.opacity=s);const U=h?{color:h}:{};let W={"data-thumbs":{}},L={slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:u,navigation:y,pagination:{},delay:f,speed:w,loop:x,direction:T,slidesOffsetBefore:H,slidesOffsetAfter:$,autoHeight:M,spaceBetween:p,releaseOnEdges:_};k&&_&&(L.mousewheel={releaseOnEdges:"true"===_}),v&&(L.effect=v,"fade"===v&&(L.fadeEffect={crossFade:!0})),m&&(L.autoplay=!0,null!=f&&(L.autoplay={delay:Number(f)}),g&&(L.autoplay||(L.autoplay={}),L.autoplay.disableOnInteraction=!0),b&&(L.autoplay||(L.autoplay={}),L.autoplay.pauseOnMouseEnter=!0),reverseDirection&&(L.autoplay||(L.autoplay={}),L.autoplay.reverseDirection=!0),stopOnLastSlide&&(L.autoplay||(L.autoplay={}),L.autoplay.stopOnLastSlide=!0),void 0!==waitForTransition&&null!==waitForTransition&&(L.autoplay||(L.autoplay={}),L.autoplay.waitForTransition=waitForTransition)),N&&(L.freeMode={enabled:!0},R&&(L.freeMode.sticky=!0)),L.pagination.type="bullets"!=C?C:"bullets",P&&(L.pagination.clickable=!!P||""),void 0!==S&&""!=S&&(L.breakpoints=S),B&&(W["data-thumbs"]=JSON.stringify({spaceBetween:I,slidesPerView:O,freeMode:!0,watchSlidesProgress:!0,navigation:!1}));const q=(void 0!==E?E:[]).map((e,t)=>(e.thumbImg||e.slideImg)&&(0,l.jsx)("div",{className:"swiper-slide wp-swiper__thumb","data-thumb":t+1,children:(0,l.jsx)("img",{src:e.thumbImg||e.slideImg,alt:`Thumbnail ${t+1}`})},t)),J=n()("swiper-container","swiper",{"swiper-overflow-visible":z});return(0,l.jsxs)("div",{...F,children:[function(e,t){if(void 0!==e)return(0,l.jsx)("div",{className:"wp-swiper__overlay-img",style:t})}(a,G),(0,l.jsxs)("div",{className:"wp-swiper__wrapper",style:U,children:[(0,l.jsx)("div",{className:J,...A?{"data-debug":!0}:{},"data-swiper":JSON.stringify(L),...W,children:(0,l.jsx)("div",{className:"swiper-wrapper",children:(0,l.jsx)(i.InnerBlocks.Content,{})})}),function({attributes:e}){const{navigation:t}=e;if(t)return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp_swiper__navigation",children:(0,l.jsxs)("div",{className:"wp_swiper__navigation-container",children:[(0,l.jsx)("div",{className:"swiper-button-prev "+(V?"wp_swiper__button-prev":""),children:V?(0,l.jsx)("img",{src:V,alt:"Previous"}):null}),(0,l.jsx)("div",{className:"swiper-button-next "+(D?"wp_swiper__button-next":""),children:D?(0,l.jsx)("img",{src:D,alt:"Previous"}):null})]})})})}(e),function({attributes:e}){const{pagination:t}=e;if(t)return(0,l.jsx)("div",{className:"swiper-pagination"})}(e)]}),function({attributes:e}){let{className:t}=e;if(t=t?t.toString():"",-1!==t.indexOf("is-style-testimonials"))return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp-swiper__quotes",children:(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"svg-inline--fa fa-quote-right fa-w-16 fa-5x",children:(0,l.jsx)("path",{fill:"currentColor",d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",class:""})})})})}(e),B&&(0,l.jsx)("div",{className:"wp-swiper__thumbs",children:(0,l.jsx)("div",{className:"wp-swiper__wrapper",children:(0,l.jsx)("div",{className:"swiper-container",children:(0,l.jsx)("div",{className:"swiper-wrapper",children:q})})})})]})},migrate(e){const{sticky:t,...o}=e;return{...o,freeModeSticky:t||!1}}},{save:function(e){let{className:t}=e.attributes;const{align:o,overlayImg:a,overlayImgOpacity:s,slidesPerView:r,spaceBetween:c,txtColor:d,autoplay:u,disableOnInteraction:p,pauseOnMouseEnter:h,delay:m,speed:g,loop:b,effect:f,navigation:w,pagination:x,mousewheel:v,releaseOnEdges:y,pagination_type:j,clickable_pagination:k,breakpoints:_,thumbs:C,thumbsSpaceBetween:P,thumbsSlidesPerView:S,autoHeight:B,freeMode:I,sticky:O,debug:M,direction:N,tabsData:R,previousIcon:A,nextIcon:T,slidesOffsetBefore:E,slidesOffsetAfter:V}=e.attributes;t=n()(t,"wp-swiper"),o&&(t=n()(t,`align${o}`));const D=i.useBlockProps.save({className:t}),H=(i.useInnerBlocksProps,(void 0!==R?R:[]).map((e,t)=>(e.thumbImg||e.slideImg)&&(0,l.jsx)("div",{className:"swiper-slide wp-swiper__thumb","data-thumb":t+1,children:(0,l.jsx)("img",{src:e.thumbImg||e.slideImg,alt:`Thumbnail ${t+1}`})},t))),$=a?{backgroundImage:`url(${a})`}:{};s&&($.opacity=s);const z=d?{color:d}:{};let F={"data-thumbs":{}},G={"slidesPerView-":r,navigation:w,pagination:x,autoplay:u,disableOnInteraction:p,pauseOnMouseEnter:h,delay:m,speed:g,loop:b,effect:f};return M&&(G.debug=M),I&&O&&(G.sticky=O),G.slidesOffsetBefore=E,G.slidesOffsetAfter=V,G.direction=N,G.freeMode=I,G.autoHeight=B,G.spaceBetween=c,G.mousewheel=v,G.releaseOnEdges=y,G.type="bullets"!=j?j:"bullets",k&&(G.clickable=!!k||""),void 0!==_&&""!=_&&(G["data-breakpoints"]=JSON.stringify(_.replace(/^\s+|\s+|\n$/gm,"")),G["data-breakpoints"]=G.breakpoints.substring(1,G.breakpoints.length-1)),C&&(F["data-thumbs"]=JSON.stringify({spaceBetween:P,slidesPerView:S,freeMode:!0,watchSlidesProgress:!0,navigation:!1})),(0,l.jsxs)("div",{...D,children:[function(e,t){if(void 0!==e)return(0,l.jsx)("div",{className:"wp-swiper__overlay-img",style:t})}(a,$),(0,l.jsxs)("div",{className:"wp-swiper__wrapper",style:z,children:[(0,l.jsx)("div",{className:"swiper-container swiper","data-swiper":JSON.stringify(G),...F,children:(0,l.jsx)("div",{className:"swiper-wrapper",children:(0,l.jsx)(i.InnerBlocks.Content,{})})}),function({attributes:e}){const{navigation:t}=e;if(t)return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp_swiper__navigation",children:(0,l.jsxs)("div",{className:"wp_swiper__navigation-container",children:[(0,l.jsx)("div",{className:"swiper-button-prev "+(A?"wp_swiper__button-prev":""),children:A?(0,l.jsx)("img",{src:A,alt:"Previous"}):null}),(0,l.jsx)("div",{className:"swiper-button-next "+(T?"wp_swiper__button-next":""),children:T?(0,l.jsx)("img",{src:T,alt:"Previous"}):null})]})})})}(e),function({attributes:e}){const{pagination:t}=e;if(t)return(0,l.jsx)("div",{className:"swiper-pagination"})}(e)]}),function({attributes:e}){let{className:t}=e;if(t=t?t.toString():"",-1!==t.indexOf("is-style-testimonials"))return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp-swiper__quotes",children:(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"svg-inline--fa fa-quote-right fa-w-16 fa-5x",children:(0,l.jsx)("path",{fill:"currentColor",d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",class:""})})})})}(e),C&&(0,l.jsx)("div",{className:"wp-swiper__thumbs",children:(0,l.jsx)("div",{className:"wp-swiper__wrapper",children:(0,l.jsx)("div",{className:"swiper-container",children:(0,l.jsx)("div",{className:"swiper-wrapper",children:H})})})})]})}}],s=window.React,r=window.wp.i18n,c=window.wp.element,d=window.wp.blocks,u=window.wp.components,p=window.wp.compose,h=window.wp.data,{Component:m}=wp.element,{__}=wp.i18n,{Button:g,Popover:b}=wp.components;class f extends m{constructor(){super(...arguments),this.state={confirmed:-1}}render(){const{onRemove:e,show:t,style:o,tooltipText:n=__("Remove Slide?","@@text_domain"),tooltipRemoveText:i=__("Remove","@@text_domain"),tooltipCancelText:a=__("Cancel","@@text_domain")}=this.props,{confirmed:s}=this.state;return t?(0,l.jsxs)(g,{className:"wb-component-remove-button",onClick:()=>{-1===s&&this.setState({confirmed:0})},style:o,children:[0===s?(0,l.jsxs)(b,{className:"wb-component-remove-button-confirm",onClose:()=>{this.setState({confirmed:-1})},onClickOutside:()=>{this.setState({confirmed:-1})},children:[n,(0,l.jsx)(g,{className:"wb-component-remove-button-confirm-yep",onClick:e,children:i}),(0,l.jsx)(g,{className:"wb-component-remove-button-confirm-nope",onClick:()=>{this.setState({confirmed:-1})},children:a})]}):"",(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"trash",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",class:"svg-inline--fa fa-trash fa-w-14 fa-3x",children:(0,l.jsx)("path",{fill:"currentColor",d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z",class:""})})]}):""}}o(495),o(98);const{getBlocks:w}=wp.data.select("core/block-editor");function x(e){return(0,l.jsx)("div",{className:"wb-tabs-icon",children:""!=e&&(0,l.jsx)("img",{className:"wb-tabs-icon_image",src:e})})}const v={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"};function y(e){return function(e){return!e||"center center"===e||"center"===e}(e)?"":v[e]}function j(e){if(Array.isArray(e))return e.map(e=>j(e));if("object"==typeof e&&null!==e){const t={};for(let o in e)e.hasOwnProperty(o)&&(t[o]=j(e[o]));return t}return e}const k=[["da/wp-swiper-slide",{slug:"slide-1"}]],_=(0,p.compose)([(0,h.withSelect)((e,t)=>{const{getBlock:o,isBlockSelected:n,hasSelectedInnerBlock:l}=e("core/block-editor"),{clientId:a}=t,s=o(a);return{innerBlocks:s?s.innerBlocks:[],blocks:e(i.store).getBlocks(),block:s,isSelectedBlockInRoot:n(a)||l(a,!0)}}),(0,h.withDispatch)((e,t,o)=>{const{updateBlockAttributes:n,removeBlock:i,replaceInnerBlocks:l,moveBlockToPosition:a,moveBlocksDown:s}=e("core/block-editor"),{getBlocks:r}=o.select("core/block-editor");return{moveBlocksDown:s,moveBlockToPosition:a,replaceInnerBlocks:l,getBlocks:r,updateBlockAttributes:n,removeBlock:i,updateSlugsForInnerBlocks:e=>{let t=1;e.forEach((e,o)=>{n(e.clientId,{slug:`slide-${t}`}),t++})}}})])(function(e){const{clientId:t,attributes:o,setAttributes:a,isSelectedBlockInRoot:p,getBlocks:h,replaceInnerBlocks:m,updateBlockAttributes:g,block:b,updateSlugsForInnerBlocks:w}=e;let{className:v}=e;const y=(0,i.useBlockProps)(),{tabActive:_,buttonsAlign:C,tabsData:P,txtColor:S,overlayColor:B,overlayImg:I,overlayImgOpacity:O,autoplay:M,disableOnInteraction:N,pauseOnMouseEnter:R,reverseDirection:A,stopOnLastSlide:T,waitForTransition:E,delay:V,speed:D,loop:H,loopAddBlankSlides:$,loopAdditionalSlides:z,effect:F,slidesPerView:G,slidesPerGroup:U,slidesPerGroupAuto:W,slidesPerGroupSkip:L,spaceBetween:q,navigation:J,pagination:Y,containerWidth:Z,mousewheel:K,releaseOnEdges:X,pagination_type:Q,clickable_pagination:ee,breakpoints:te,freeMode:oe,freeModeMinimumVelocity:ne,freeModeMomentum:ie,freeModeMomentumBounce:le,freeModeMomentumBounceRatio:ae,freeModeMomentumRatio:se,freeModeMomentumVelocityRatio:re,freeModeSticky:ce,thumbs:de,thumbsSlidesPerView:ue,thumbsSpaceBetween:pe,autoHeight:he,debug:me,direction:ge,previousIcon:be,nextIcon:fe,slidesOffsetBefore:we,slidesOffsetAfter:xe,overflowVisible:ve}=o,ye=h(t);(0,s.useEffect)(()=>{const t=b.innerBlocks.map(e=>e.attributes.slug),o=e.attributes.tabsData.map(e=>e.slug),n=b.innerBlocks.map(e=>e.attributes.thumbImg),i=e.attributes.tabsData.map(e=>e.thumbImg);let l=0;if(!_e(t,o&&!_e(n,i))){const e=b.innerBlocks.map((e,t)=>(l++,{clientId:e.clientId,slideImg:e.attributes.slideImg,thumbImg:e.attributes.thumbImg,slug:`slide-${l}`}));w(b.innerBlocks),a({tabsData:e})}},[ye]);const[je,ke]=(0,s.useState)("bottom center"),_e=(e,t)=>e.length===t.length&&e.every((e,o)=>e===t[o]),Ce=t=>{const{setAttributes:o,attributes:n,block:i,getBlocks:l,replaceInnerBlocks:a,removeBlock:s}=e,{tabsData:r=[]}=n;if(1>=i.innerBlocks.length)s(i.clientId);else if(i.innerBlocks[t]&&r[t]){const e=j(r);e.splice(t,1),s(i.innerBlocks[t].clientId);for(let o=t;o<e.length;o++){const t=`slide-${o+1}`;e[o].slug=t,g(e[o].clientId,{slug:t})}o({tabsData:e})}};(0,s.useEffect)(()=>{},[P]),v=n()(v,"wp-swiper__slides");let Pe=C;"start"===Pe?Pe="left":"end"===Pe&&(Pe="right");let Se=1;const Be=S?{color:S}:{},Ie=()=>(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)("div",{style:{borderTop:"1px solid #dddddd",marginTop:"16px",marginBottom:"16px",width:"100%"}})});return(0,l.jsxs)(c.Fragment,{children:[(0,l.jsxs)(i.InspectorControls,{children:[(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Overlay Settings"),initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(i.MediaUploadCheck,{children:(0,l.jsx)(i.MediaUpload,{value:I,onSelect:e=>{let t=e.sizes.full.url;a({overlayImg:t})},type:"image",render:e=>(0,l.jsx)(u.Button,{onClick:e.open,className:"button",children:"Select overlay image"})})})}),I&&(0,l.jsx)(u.PanelRow,{children:x(I)}),I&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>a({overlayImg:void 0}),children:(0,r.__)("Clear Media")})}),I&&(0,l.jsx)(u.BaseControl,{label:(0,r.__)("Image Overlay Opacity","@@text_domain"),children:(0,l.jsx)(u.RangeControl,{label:(0,r.__)("Opacity"),value:O,onChange:e=>a({overlayImgOpacity:e}),min:0,max:1,step:.01,required:!0})}),(0,l.jsx)(Ie,{}),(0,l.jsx)(u.BaseControl,{label:(0,r.__)("Overlay Color","@@text_domain"),children:(0,l.jsx)(u.ColorPicker,{color:B.hex||B,onChangeComplete:e=>{a({overlayColor:e}),b.innerBlocks.map(t=>{g(t.clientId,{overlayColor:e})})}})}),B.rgb.a>0&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>{const e={rgb:{r:0,g:0,b:0,a:0}};a({overlayColor:e}),b.innerBlocks.map(t=>{g(t.clientId,{overlayColor:e})})},children:(0,r.__)("Clear Color")})})]}),(0,l.jsx)(u.PanelBody,{title:(0,r.__)("Color Settings"),initialOpen:!1,children:(0,l.jsx)(u.BaseControl,{label:(0,r.__)("Text Color","@@text_domain"),children:(0,l.jsx)(u.ColorPicker,{color:S,onChangeComplete:e=>a({txtColor:e.hex})})})}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Basic Slider Settings"),icon:"controls-play",initialOpen:!0,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Auto Play",checked:M,onChange:()=>{a({autoplay:!M})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Loop",checked:H,onChange:()=>{a({loop:!H})}})}),H&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Loop Add Blank Slides",help:"Automatically adds blank slides if you use Grid or slidesPerGroup and the total amount of slides is not even to slidesPerGroup or to grid.rows",checked:$,onChange:()=>{a({loopAddBlankSlides:!$})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Loop Additional Slides",help:"Allows to increase amount of looped slides",value:z,type:"number",onChange:e=>{a({loopAdditionalSlides:parseInt(e)})}})})]}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Speed",help:"Duration of transition between slides (in ms)",value:D,type:"number",onChange:e=>{a({speed:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Delay",help:"Delay between transitions (in ms)",value:V,type:"number",onChange:e=>{a({delay:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.RangeControl,{label:(0,r.__)("Container Max Width %"),help:(0,r.__)("Frontend: Set the max width for the content with text."),value:Z,onChange:e=>{a({containerWidth:e}),b.innerBlocks.map(t=>{g(t.clientId,{containerWidth:e})})},min:1,max:100,step:1,required:!0})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Overflow Visible",help:"Apply overflow visible to the swiper container",checked:ve,onChange:()=>{a({overflowVisible:!ve})}})})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Slides Configuration"),icon:"grid-view",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Slides per view",help:"Number of slides per view (slides visible at the same time on slider's container). Can be a number or auto",value:G,onChange:e=>{a({slidesPerView:e})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Slides Per Group",help:"Set numbers of slides to define and enable group sliding. Useful to use with slidesPerView > 1",value:U,type:"number",onChange:e=>{a({slidesPerGroup:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Slides Per Group Auto",help:"This param intended to be used only with slidesPerView: 'auto' and slidesPerGroup: 1. When enabled, it will skip all slides in view on .slideNext() & .slidePrev() methods calls, on Navigation buttons clicks and in autoplay.",checked:W,onChange:()=>{a({slidesPerGroupAuto:!W})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Slides Per Group Skip",help:"If slidesPerGroupSkip equals 0 (default), no slides are excluded from grouping. If slidesPerGroupSkip is equal or greater than 1, the first X slides are treated as single groups, whereas all following slides are grouped by the slidesPerGroup value.",value:L,type:"number",onChange:e=>{a({slidesPerGroupSkip:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Space Between",help:"Distance between slides in px.",value:q,onChange:e=>{a({spaceBetween:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Slides Offset Before",help:"Add (in px) additional slide offset in the beginning of the container (before all slides)",value:we,onChange:e=>{a({slidesOffsetBefore:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Slides Offset After",help:"Add (in px) additional slide offset in the end of the container (after all slides)",value:xe,onChange:e=>{a({slidesOffsetAfter:parseInt(e)})}})})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Navigation & Controls"),icon:"leftright",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Show Navigation",checked:J,onChange:()=>{a({navigation:!J})}})}),J&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)("p",{children:"You can customize icons by uploading your own. Default icons used otherwise."})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(i.MediaUploadCheck,{children:(0,l.jsx)(i.MediaUpload,{value:be,onSelect:e=>{let t=e.sizes.full.url;a({previousIcon:t})},type:"image",render:e=>(0,l.jsx)(u.Button,{onClick:e.open,className:"button",children:"Select previous slide icon"})})})}),be&&(0,l.jsx)(u.PanelRow,{children:x(be)}),be&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>a({previousIcon:void 0}),children:(0,r.__)("Clear Media")})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(i.MediaUploadCheck,{children:(0,l.jsx)(i.MediaUpload,{value:fe,onSelect:e=>{let t=e.sizes.full.url;a({nextIcon:t})},type:"image",render:e=>(0,l.jsx)(u.Button,{onClick:e.open,className:"button",children:"Select next slide icon"})})})}),fe&&(0,l.jsx)(u.PanelRow,{children:x(fe)}),fe&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>a({nextIcon:void 0}),children:(0,r.__)("Clear Media")})})]}),(0,l.jsx)(Ie,{}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Show Pagination",checked:Y,onChange:()=>{a({pagination:!Y})}})}),Y&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.SelectControl,{label:"Type of pagination",value:Q,options:[{label:"Bullets",value:"bullets"},{label:"Fraction",value:"fraction"},{label:"Progress Bar",value:"progressbar"}],onChange:e=>{a({pagination_type:e})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Clickable Pagination",checked:ee,onChange:()=>{a({clickable_pagination:!ee})}})})]}),(0,l.jsx)(Ie,{}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Auto Height",help:"Set to true and slider wrapper will adapt its height to the height of the currently active slide",checked:he,onChange:()=>{a({autoHeight:!he})}})})]}),(0,l.jsx)(u.PanelBody,{title:(0,r.__)("Direction Settings"),icon:"sort",initialOpen:!1,children:(0,l.jsx)(u.SelectControl,{label:"Direction",help:"For vertical slider, Slides Per View should be set to 1",value:ge,options:[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],onChange:e=>{a({direction:e})}})}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Autoplay Behavior"),icon:"controls-repeat",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Disable On Interaction",checked:N,help:"Set to false and autoplay will not be disabled after user interactions (swipes), it will be restarted every time after interaction",onChange:()=>{a({disableOnInteraction:!N})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Pause On Mouse Enter",checked:R,help:"When enabled autoplay will be paused on pointer (mouse) enter over Swiper container.",onChange:()=>{a({pauseOnMouseEnter:!R})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Reverse Direction",checked:A,help:"Enables autoplay in reverse direction",onChange:()=>{a({reverseDirection:!A})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Stop On Last Slide",checked:T,help:"Enable this parameter and autoplay will be stopped when it reaches last slide (has no effect in loop mode)",onChange:()=>{a({stopOnLastSlide:!T})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Wait For Transition",checked:E,help:"When enabled autoplay will wait for wrapper transition to continue. Can be disabled in case of using Virtual Translate when your slider may not have transition",onChange:()=>{a({waitForTransition:!E})}})})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Advanced Features"),icon:"admin-generic",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.SelectControl,{label:"Effect (Under Construction)",value:F,options:[{label:"Slide",value:"slide"},{label:"Fade",value:"fade"},{label:"Cube",value:"cube"},{label:"Coverflow",value:"coverflow"},{label:"Flip",value:"flip"}],onChange:e=>{a({effect:e})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Mouse Wheel",help:"Enables navigation through slides using mouse wheel.",checked:K,onChange:()=>{a({mousewheel:!K})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Release On Edges",help:"Set to true and swiper will release mousewheel event and allow page scrolling when swiper is on edge positions (in the beginning or in the end) NOTE: Mouse Wheel must be set to true for this to work.",checked:X,onChange:()=>{a({releaseOnEdges:!X})}})})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Free Mode"),icon:"controls-play",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Enable Free Mode",help:"Whether the free mode is enabled. Slide will continue moving for a while after you release it.",checked:oe,onChange:()=>{oe&&a({freeModeSticky:!1}),a({freeMode:!oe})}})}),oe&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.RangeControl,{label:"Minimum Velocity",help:"Minimum touchmove-velocity required to trigger free mode momentum",value:ne,onChange:e=>{a({freeModeMinimumVelocity:e})},min:0,max:1,step:.01})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Momentum",help:"If enabled, then slide will keep moving for a while after you release it",checked:ie,onChange:()=>{a({freeModeMomentum:!ie})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Momentum Bounce",help:"Set to false if you want to disable momentum bounce in free mode",checked:le,onChange:()=>{a({freeModeMomentumBounce:!le})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.RangeControl,{label:"Momentum Bounce Ratio",help:"Higher value produces larger momentum bounce effect",value:ae,onChange:e=>{a({freeModeMomentumBounceRatio:e})},min:0,max:10,step:.1})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.RangeControl,{label:"Momentum Ratio",help:"Higher value produces larger momentum distance after you release slider",value:se,onChange:e=>{a({freeModeMomentumRatio:e})},min:0,max:10,step:.1})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.RangeControl,{label:"Momentum Velocity Ratio",help:"Higher value produces larger momentum velocity after you release slider",value:re,onChange:e=>{a({freeModeMomentumVelocityRatio:e})},min:0,max:10,step:.1})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Sticky",help:"Set to enabled to enable snap to slides positions in free mode",checked:ce,onChange:()=>{a({freeModeSticky:!ce})}})})]})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Responsive Breakpoints"),icon:"smartphone",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextareaControl,{label:"Responsive breakpoints (JSON Object)",help:"Allows to set different parameter for different responsive breakpoints (screen sizes). Not all parameters can be changed in breakpoints, only those which are not required different layout and logic, like slidesPerView, slidesPerGroup, spaceBetween, grid.rows. Such parameters like loop and effect won't work",value:te,onChange:e=>{a({breakpoints:e})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsxs)("p",{children:["Example: ",'{"720":{"slidesPerView":2}}'," - Notice the double quotes"]})})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Thumbnails"),icon:"images-alt2",initialOpen:!1,children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.ToggleControl,{label:"Thumbs",help:"Enables thumbs to be used as pagination.",checked:de,onChange:()=>{a({thumbs:!de})}})}),de&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Space Between",help:"Distance between slides in px.",value:pe,onChange:e=>{a({thumbsSpaceBetween:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.TextControl,{label:"Thumbs per view",help:"Number of slides per view (slides visible at the same time on slider's container). Can be a number or auto",value:ue,onChange:e=>{a({thumbsSlidesPerView:parseInt(e)})}})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.__experimentalAlignmentMatrixControl,{disableAlignment:["center"],value:je,onChange:e=>ke(e)})})]})]}),(0,l.jsxs)(u.PanelBody,{title:(0,r.__)("Developer Tools"),icon:"admin-tools",initialOpen:!1,children:[(0,l.jsx)(u.ToggleControl,{label:"Debug",help:"Show (console.log) config JSON object for each slider",checked:me,onChange:()=>{a({debug:!me})}}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{onClick:()=>{let e=1;P.forEach((t,o)=>{t.slug=`slide-${e}`,e++}),a({tabsData:P}),w(b.innerBlocks)},className:"button",children:"Fix Slide Slugs"})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)("p",{style:{marginTop:"calc(8px)",fontSize:"12px",fontStyle:"normal",color:"rgb(117, 117, 117)",marginBottom:"revert"},children:"On rare occasions, if the slide slugs become out of sync with the slide data stored in the parent block, you might notice all slide contents appearing under a single tab. Clicking this button could help resolve the issue. This action iterates over each slide and resets the slugs in ascending order (e.g., slide-1, slide-2, etc.), ensuring that each tab properly corresponds to its respective slide."})})]})]}),(0,l.jsx)("div",{...y,className:v,"data-tab-active":_,children:(0,l.jsxs)("div",{className:"wb-tabs-buttons-wrapper",style:Be,children:[(0,l.jsxs)("div",{className:n()("wb-tabs-buttons",`wb-tabs-buttons-align-${C}`),children:[P.map((e,t)=>{const{slug:o}=e,i=_===o;return(0,l.jsxs)("div",{className:n()("wb-tabs-buttons-item",i?"wb-tabs-buttons-item-active":""),onClick:()=>a({tabActive:o}),children:[(0,l.jsxs)("h4",{children:["Slide ",Se++]}),(0,l.jsx)(f,{show:p,tooltipText:(0,r.__)("Remove slide?","@@text_domain"),onRemove:()=>{Ce(t)}})]},`tab_button_${e.slug}`)}),p?(0,l.jsx)(u.Tooltip,{text:(0,r.__)("Add Slide","@@text_domain"),children:(0,l.jsx)(u.Button,{icon:"insert",onClick:()=>{let e=[];const o=P.length+1,n=(0,d.createBlock)("da/wp-swiper-slide",{slug:`slide-${o}`});e=[...P],e.push({clientId:n.clientId,slug:`slide-${o}`,slideImg:"",thumbImg:""});let i=h(t);i=[...i,n],m(t,i,!1),a({tabsData:e})}})}):""]}),(0,l.jsx)("div",{className:"wp-swiper__slide-content",children:(0,l.jsx)(i.InnerBlocks,{template:k,templateLock:!1,allowedBlocks:["da/wp-swiper-slide"]})})]})}),(0,l.jsx)("style",{children:`\n\t\t\t\t\t\t[data-block="${e.clientId}"] .wp-swiper__slides .wp-swiper__slide-content .block-editor-inner-blocks .block-editor-block-list__layout [data-tab="${null!=_?_:"slide-1"}"] {\n\t\t\t\t\t\t\tdisplay: block;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t`})]})}),{__:C}=wp.i18n,{name:P}=e,S={...e,title:C("WP Swiper","@@text_domain"),description:C("Create an awesome slider.","@@text_domain"),icon:(0,l.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M20 17.4444C20 17.857 19.8314 18.2527 19.5314 18.5444C19.2313 18.8361 18.8243 19 18.4 19H5.6C5.17565 19 4.76869 18.8361 4.46863 18.5444C4.16857 18.2527 4 17.857 4 17.4444V6.55556C4 6.143 4.16857 5.74733 4.46863 5.45561C4.76869 5.16389 5.17565 5 5.6 5H9.6L11.2 7.33333H18.4C18.8243 7.33333 19.2313 7.49722 19.5314 7.78894C19.8314 8.08067 20 8.47633 20 8.88889V17.4444Z",stroke:"currentColor",fill:"transparent","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})}),keywords:[C("swiper","@@text_domain"),C("slider","@@text_domain"),C("wp slider","@@text_domain"),C("wp swiper","@@text_domain")],edit:_,save:function(e){let{className:t}=e.attributes;const{align:o,overlayImg:a,overlayImgOpacity:s,slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:u,spaceBetween:p,txtColor:h,autoplay:m,disableOnInteraction:g,pauseOnMouseEnter:b,delay:f,speed:w,loop:x,loopAddBlankSlides:v,loopAdditionalSlides:y,effect:j,navigation:k,pagination:_,mousewheel:C,releaseOnEdges:P,pagination_type:S,clickable_pagination:B,breakpoints:I,thumbs:O,thumbsSpaceBetween:M,thumbsSlidesPerView:N,autoHeight:R,freeMode:A,freeModeMinimumVelocity:T,freeModeMomentum:E,freeModeMomentumBounce:V,freeModeMomentumBounceRatio:D,freeModeMomentumRatio:H,freeModeMomentumVelocityRatio:$,freeModeSticky:z,debug:F,direction:G,tabsData:U,previousIcon:W,nextIcon:L,slidesOffsetBefore:q,slidesOffsetAfter:J,overflowVisible:Y}=e.attributes;t=n()(t,"wp-swiper"),o&&(t=n()(t,`align${o}`));const Z=i.useBlockProps.save({className:t}),K=(i.useInnerBlocksProps,a?{backgroundImage:`url(${a})`}:{});s&&(K.opacity=s);const X=h?{color:h}:{};let Q={"data-thumbs":{}},ee={slidesPerView:r,slidesPerGroup:c,slidesPerGroupAuto:d,slidesPerGroupSkip:u,navigation:k,pagination:{},delay:f,speed:w,loop:x,direction:G,slidesOffsetBefore:q,slidesOffsetAfter:J,autoHeight:R,spaceBetween:p,releaseOnEdges:P};C&&P&&(ee.mousewheel={releaseOnEdges:"true"===P}),x&&(ee.loopAddBlankSlides=v,ee.loopAdditionalSlides=y),j&&(ee.effect=j,"fade"===j&&(ee.fadeEffect={crossFade:!0})),m&&(ee.autoplay=!0,null!=f&&(ee.autoplay={delay:Number(f)}),g&&(ee.autoplay||(ee.autoplay={}),ee.autoplay.disableOnInteraction=!0),b&&(ee.autoplay||(ee.autoplay={}),ee.autoplay.pauseOnMouseEnter=!0),reverseDirection&&(ee.autoplay||(ee.autoplay={}),ee.autoplay.reverseDirection=!0),stopOnLastSlide&&(ee.autoplay||(ee.autoplay={}),ee.autoplay.stopOnLastSlide=!0),void 0!==waitForTransition&&null!==waitForTransition&&(ee.autoplay||(ee.autoplay={}),ee.autoplay.waitForTransition=waitForTransition)),A&&(ee.freeMode={enabled:!0,minimumVelocity:T,momentum:E,momentumBounce:V,momentumBounceRatio:D,momentumRatio:H,momentumVelocityRatio:$,sticky:z}),ee.pagination.type="bullets"!=S?S:"bullets",B&&(ee.pagination.clickable=!!B||""),void 0!==I&&""!=I&&(ee.breakpoints=I),O&&(Q["data-thumbs"]=JSON.stringify({spaceBetween:M,slidesPerView:N,freeMode:!0,watchSlidesProgress:!0,navigation:!1}));const te=(void 0!==U?U:[]).map((e,t)=>(e.thumbImg||e.slideImg)&&(0,l.jsx)("div",{className:"swiper-slide wp-swiper__thumb","data-thumb":t+1,children:(0,l.jsx)("img",{src:e.thumbImg||e.slideImg,alt:`Thumbnail ${t+1}`})},t)),oe=n()("swiper-container","swiper",{"swiper-overflow-visible":Y});return(0,l.jsxs)("div",{...Z,children:[function(e,t){if(void 0!==e)return(0,l.jsx)("div",{className:"wp-swiper__overlay-img",style:t})}(a,K),(0,l.jsxs)("div",{className:"wp-swiper__wrapper",style:X,children:[(0,l.jsx)("div",{className:oe,...F?{"data-debug":!0}:{},"data-swiper":JSON.stringify(ee),...Q,children:(0,l.jsx)("div",{className:"swiper-wrapper",children:(0,l.jsx)(i.InnerBlocks.Content,{})})}),function({attributes:e}){const{navigation:t}=e;if(t)return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp_swiper__navigation",children:(0,l.jsxs)("div",{className:"wp_swiper__navigation-container",children:[(0,l.jsx)("div",{className:"swiper-button-prev "+(W?"wp_swiper__button-prev":""),children:W?(0,l.jsx)("img",{src:W,alt:"Previous"}):null}),(0,l.jsx)("div",{className:"swiper-button-next "+(L?"wp_swiper__button-next":""),children:L?(0,l.jsx)("img",{src:L,alt:"Previous"}):null})]})})})}(e),function({attributes:e}){const{pagination:t}=e;if(t)return(0,l.jsx)("div",{className:"swiper-pagination"})}(e)]}),function({attributes:e}){let{className:t}=e;if(t=t?t.toString():"",-1!==t.indexOf("is-style-testimonials"))return(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:"wp-swiper__quotes",children:(0,l.jsx)("svg",{"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"quote-right",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:"svg-inline--fa fa-quote-right fa-w-16 fa-5x",children:(0,l.jsx)("path",{fill:"currentColor",d:"M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z",class:""})})})})}(e),O&&(0,l.jsx)("div",{className:"wp-swiper__thumbs",children:(0,l.jsx)("div",{className:"wp-swiper__wrapper",children:(0,l.jsx)("div",{className:"swiper-container",children:(0,l.jsx)("div",{className:"swiper-wrapper",children:te})})})})]})},deprecated:a};S.attributes={...S.attributes,freeMode:{type:"boolean",default:!1},freeModeMinimumVelocity:{type:"number",default:.02},freeModeMomentum:{type:"boolean",default:!0},freeModeMomentumBounce:{type:"boolean",default:!0},freeModeMomentumBounceRatio:{type:"number",default:1},freeModeMomentumRatio:{type:"number",default:1},freeModeMomentumVelocityRatio:{type:"number",default:1},freeModeSticky:{type:"boolean",default:!1},mousewheel:{type:"boolean",default:!1},releaseOnEdges:{type:"boolean",default:!1},pagination_type:{type:"string",default:"bullets"}};const B=JSON.parse('{"name":"da/wp-swiper-slide","parent":["da/wp-swiper-slides"],"category":"media","supports":{"html":false,"className":false,"anchor":true,"inserter":false,"reusable":false},"attributes":{"align":{"type":"string","default":"undefined"},"slideImgId":{"type":"number"},"slideImg":{"type":"string"},"thumbImg":{"type":"string"},"slug":{"type":"string"},"contentValign":{"type":"string","default":""},"contentHalign":{"type":"string","default":""},"contentVHalign":{"type":"string"},"focalPoint":{"type":"object","default":{"x":0.5,"y":0.5}},"overlayColor":{"type":"object","default":{"rgb":{"r":0,"g":0,"b":0,"a":0}}},"containerWidth":{"type":"number"}}}'),I=window.wp.keycodes,O=function(e){const{label:t=(0,r.__)("Change matrix alignment"),onChange:o="undefined",value:n="center",isDisabled:i}=e,a=(0,l.jsx)(u.__experimentalAlignmentMatrixControl.Icon,{value:n}),s="block-editor-block-alignment-matrix-control",c=`${s}__popover`;return(0,l.jsx)(u.Dropdown,{placement:"bottom right",className:s,popoverProps:{className:c,isAlternate:!0},renderToggle:({onToggle:e,isOpen:o})=>(0,l.jsx)(u.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":o,onKeyDown:t=>{o||t.keyCode!==I.DOWN||(t.preventDefault(),t.stopPropagation(),e())},label:t,icon:a,showTooltip:!0,disabled:i}),renderContent:()=>(0,l.jsx)(u.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:o,value:n})})},M=(0,h.withSelect)((e,t)=>{const{clientId:o}=t,{getBlockOrder:n}=e("core/block-editor");return{hasChildBlocks:n(o).length>0}})(function(e){const t=t=>{e.setAttributes({focalPoint:t})},{setAttributes:o,hasChildBlocks:a,attributes:s}=e;let{className:d=""}=e;const{slideImg:p,thumbImg:h,overlayColor:m,contentVHalign:g}=s;d=n()(d,"wp-swiper__slide"),d=n()(d,{"has-image":!0}),d=n()(d,y(g));const b={backgroundImage:`url(${p})`,backgroundPosition:`${100*e.attributes.focalPoint.x}% ${100*e.attributes.focalPoint.y}%`};let f={},w={};return f=(t=>(e.attributes.slideImg&&(t.backgroundImage=`url(${e.attributes.slideImg})`),t))(f),w=(t=>{if(e.attributes.overlayColor){let{overlayColor:o}=e.attributes;t.backgroundColor=`rgba(${o.rgb.r}, ${o.rgb.g}, ${o.rgb.b}, ${o.rgb.a})`}return t})(w),f={...f,...b},(0,l.jsxs)(c.Fragment,{children:[(0,l.jsx)(i.InspectorControls,{children:(0,l.jsx)(u.PanelBody,{title:(0,r.__)("Image Settings"),children:(0,l.jsxs)(u.BaseControl,{label:(0,r.__)("Slide Image","@@text_domain"),children:[(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(i.MediaUploadCheck,{children:(0,l.jsx)(i.MediaUpload,{value:p,onSelect:t=>{let o=t.sizes.full.url;e.setAttributes({slideImg:o})},type:"image",render:e=>(0,l.jsx)(u.Button,{onClick:e.open,className:"button",children:"Select slide image"})})})}),p&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.FocalPointPicker,{url:p,value:e.attributes.focalPoint,onDragStart:t,onDrag:t,onChange:t})}),p&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>o({slideImg:void 0}),children:(0,r.__)("Clear Media")})}),(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(i.MediaUploadCheck,{children:(0,l.jsx)(i.MediaUpload,{value:h,onSelect:t=>{let o=t.sizes.full.url;e.setAttributes({thumbImg:o})},type:"image",render:e=>(0,l.jsx)(u.Button,{onClick:e.open,className:"button",children:"Select thumb image"})})})}),h&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.FocalPointPicker,{url:h,value:e.attributes.focalPoint,onDragStart:t,onDrag:t,onChange:t})}),h&&(0,l.jsx)(u.PanelRow,{children:(0,l.jsx)(u.Button,{isSecondary:!0,size:"small",className:"block-library-cover__reset-button",onClick:()=>o({thumbImg:void 0}),children:(0,r.__)("Clear Media")})})]})})}),(0,l.jsx)(i.BlockControls,{group:"block",children:(0,l.jsx)(O,{label:(0,r.__)("Change content position"),value:g,onChange:e=>{o({contentVHalign:e})}})}),(0,l.jsxs)("div",{className:d,children:[p&&(0,l.jsx)("div",{className:"wp-swiper__slide-overlay wp-swiper__slide-overlay--image",style:f}),m.rgb.a>0&&(0,l.jsx)("div",{className:"wp-swiper__slide-overlay wp-swiper__slide-overlay--color",style:w}),(0,l.jsx)(i.InnerBlocks,{renderAppender:a?void 0:()=>(0,l.jsx)(i.InnerBlocks.ButtonBlockAppender,{})})]})]})}),{applyFilters:N}=wp.hooks,{Component:R}=wp.element,{InnerBlocks:A}=wp.blockEditor,{name:T}=B,E=[{supports:B.supports,attributes:{...B.attributes},save:class extends R{render(){const{overlayColor:e,slug:t,slideImg:o,contentVHalign:i,containerWidth:a}=this.props.attributes;let s="wp-swiper__slide swiper-slide";""!=i&&void 0!==i&&(s=n()(s,y(i)));const r=o?{backgroundImage:`url(${o})`,backgroundSize:"cover"}:{},c=a?{maxWidth:`${a}%`}:null,d=e?{backgroundColor:`rgba(${e.rgb.r}, ${e.rgb.g}, ${e.rgb.b}, ${e.rgb.a})`}:{};return(0,l.jsxs)("div",{className:s,"data-tab":t,style:r,children:[(0,l.jsx)("div",{className:"wp-swiper__overlay-color",style:d}),(0,l.jsx)("div",{className:"wp-swiper__slide-content",style:c,children:(0,l.jsx)(A.Content,{})})]})}}}],{__:V}=wp.i18n,{name:D}=B,H={...B,title:V("Slide","@@text_domain"),description:V("A single slide within a wp-swiper block.","@@text_domain"),icon:"admin",getEditWrapperProps:e=>({"data-tab":e.slug}),edit:M,save:function(e){const{attributes:t}=e,{overlayColor:o,slug:a,slideImg:r,contentVHalign:c,containerWidth:d,focalPoint:u}=t;let p="wp-swiper__slide swiper-slide";""!=c&&void 0!==c&&(p=n()(p,y(c)));const h=r?{backgroundImage:`url(${r})`,backgroundSize:"cover",backgroundPosition:`${100*u.x}% ${100*u.y}%`}:{},m=d?{maxWidth:`${d}%`}:null,g=o?{backgroundColor:`rgba(${o.rgb.r}, ${o.rgb.g}, ${o.rgb.b}, ${o.rgb.a})`}:{},b=i.useBlockProps.save();return(0,s.createElement)("div",{...b,key:a,"data-tab":a,className:p,style:h},(0,l.jsx)("div",{className:"wp-swiper__overlay-color",style:g}),(0,l.jsx)("div",{className:"wp-swiper__slide-content",style:m,children:(0,l.jsx)(i.InnerBlocks.Content,{})}))},deprecated:E},{registerBlockType:$,registerBlockStyle:z}=wp.blocks;$(P,S),$(D,H),z(P,[{name:"testimonials",label:"Testimonials"},{name:"thumbnails-bottom-right",label:"Thumbnails Bottom Right"},{name:"overlayed-text-right",label:"Overlayed Text Right"}])})()})();
  • wp-swiper/trunk/includes/blocks/class-wp-swiper-block-registration.php

    r3373519 r3407581  
    178178                    $this->block_name . '-frontend',
    179179                    DAWPS_PLUGIN_URL . 'build/frontend.build.js',
    180                     array('jquery'),
     180                    array(),
    181181                    DAWPS_PLUGIN_VERSION
    182182                );
  • wp-swiper/trunk/wp-swiper.php

    r3399424 r3407581  
    1717 * Plugin URI:        https://digitalapps.com/wp-swiper/
    1818 * Description:       Swiper JS as a Gutenberg Block.
    19  * Version:           1.3.6
     19 * Version:           1.3.7
    2020 * Author:            Digital Apps
    2121 * Author URI:        https://digitalapps.com/
     
    3232}
    3333
    34 define( 'DAWPS_PLUGIN_VERSION', '1.3.6' );
     34define( 'DAWPS_PLUGIN_VERSION', '1.3.7' );
    3535define( 'DAWPS_BUNDLE_VERSION', '12.0.2' );
    3636define( 'DAWPS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.