Changeset 3399424
- Timestamp:
- 11/20/2025 06:21:01 AM (4 months ago)
- Location:
- wp-swiper/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (1 diff)
-
build/index.build.asset.php (modified) (1 diff)
-
build/index.build.js (modified) (1 diff)
-
wp-swiper.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-swiper/trunk/README.txt
r3393974 r3399424 119 119 120 120 == Changelog == 121 = 1.3.6 = 122 * Allow zero to be set for delay 123 121 124 = 1.3.5 = 122 125 * Fix Overlay color not persisting -
wp-swiper/trunk/build/index.build.asset.php
r3393974 r3399424 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' => ' 8cf5a6197666102db80a');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'); -
wp-swiper/trunk/build/index.build.js
r3393974 r3399424 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, 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,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"}])})()})(); -
wp-swiper/trunk/wp-swiper.php
r3393974 r3399424 17 17 * Plugin URI: https://digitalapps.com/wp-swiper/ 18 18 * Description: Swiper JS as a Gutenberg Block. 19 * Version: 1.3. 519 * Version: 1.3.6 20 20 * Author: Digital Apps 21 21 * Author URI: https://digitalapps.com/ … … 32 32 } 33 33 34 define( 'DAWPS_PLUGIN_VERSION', '1.3. 5' );34 define( 'DAWPS_PLUGIN_VERSION', '1.3.6' ); 35 35 define( 'DAWPS_BUNDLE_VERSION', '12.0.2' ); 36 36 define( 'DAWPS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.