/*! elementor-pro - v3.21.0 - 30-04-2024 */ "use strict";(self.webpackChunkelementor_pro=self.webpackChunkelementor_pro||[]).push([[1],{915:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;class Base extends elementorModules.frontend.handlers.Base{getDefaultSettings(){return{selectors:{stickyRightColumn:".e-sticky-right-column"},classes:{stickyRightColumnActive:"e-sticky-right-column--active"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$stickyRightColumn:this.$element.find(e.stickyRightColumn)}}bindEvents(){elementorFrontend.elements.$document.on("select2:open",(e=>{this.addSelect2Wrapper(e)}))}addSelect2Wrapper(e){const t=jQuery(e.target).data("select2");t.$dropdown&&t.$dropdown.addClass("e-woo-select2-wrapper")}isStickyRightColumnActive(){const e=this.getSettings("classes");return this.elements.$stickyRightColumn.hasClass(e.stickyRightColumnActive)}activateStickyRightColumn(){const e=this.getElementSettings(),t=elementorFrontend.elements.$wpAdminBar,s=this.getSettings("classes");let n=e.sticky_right_column_offset||0;t.length&&"fixed"===t.css("position")&&(n+=t.height()),"yes"===this.getElementSettings("sticky_right_column")&&(this.elements.$stickyRightColumn.addClass(s.stickyRightColumnActive),this.elements.$stickyRightColumn.css("top",n+"px"))}deactivateStickyRightColumn(){if(!this.isStickyRightColumnActive())return;const e=this.getSettings("classes");this.elements.$stickyRightColumn.removeClass(e.stickyRightColumnActive)}toggleStickyRightColumn(){this.getElementSettings("sticky_right_column")?this.isStickyRightColumnActive()||this.activateStickyRightColumn():this.deactivateStickyRightColumn()}equalizeElementHeight(e){if(e.length){e.removeAttr("style");let t=0;e.each(((e,s)=>{t=Math.max(t,s.offsetHeight)})),0{jQuery(t).prev().children("td").addClass("product-purchase-note-is-below")}))}updateWpReferers(){const e=this.getSettings("selectors"),t=this.$element.find(e.wpHttpRefererInputs),s=new URL(document.location);s.searchParams.set("elementorPageId",elementorFrontend.config.post.id),s.searchParams.set("elementorWidgetId",this.getID()),t.attr("value",s)}}t.default=Base},484:(e,t,s)=>{var n=s(3203);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(s(915));class PurchaseSummaryHandler extends i.default{getDefaultSettings(){return{selectors:{container:".elementor-widget-woocommerce-purchase-summary",address:"address",purchasenote:".product-purchase-note"}}}getDefaultElements(){const e=this.getSettings("selectors");return{$container:this.$element.find(e.container),$address:this.$element.find(e.address),$purchasenote:this.$element.find(e.purchasenote)}}onElementChange(e){const t=["general_text_typography","sections_padding","sections_border_width"];for(const s of t)e.startsWith(s)&&this.equalizeElementHeight(this.elements.$address);e.startsWith("order_details_rows_gap")&&this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote)}applyButtonsHoverAnimation(){const e=this.getElementSettings();e.order_details_button_hover_animation&&this.$element.find(".order-again .button, td .button").addClass("elementor-animation-"+e.order_details_button_hover_animation)}onInit(){super.onInit(...arguments),this.equalizeElementHeight(this.elements.$address),this.removePaddingBetweenPurchaseNote(this.elements.$purchasenote),this.applyButtonsHoverAnimation()}}t.default=PurchaseSummaryHandler}}]);/** * Additional functionality for TinyMCE. * @package advanced-editor-tools */ ( function( tinymce ) { tinymce.PluginManager.add( 'wptadv', function( editor ) { var noAutop = ( ! editor.settings.wpautop && editor.settings.tadv_noautop ); function addLineBreaks( html ) { var blocklist = 'table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre' + '|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section' + '|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary'; html = html.replace( new RegExp( '<(?:' + blocklist + ')(?: [^>]*)?>', 'gi' ), '\n$&' ); html = html.replace( new RegExp( '', 'gi' ), '$&\n' ); html = html.replace( /(]*)?>)[\r\n\t]*/gi, '$1\n' ); html = html.replace( />\n[\r\n\t]+\n<' ); html = html.replace( /^
  • \u00a0<\/td>/g, ' ' ); return tinymce.trim( html ); } editor.addCommand( 'Tadv_Mark', function() { editor.formatter.toggle('mark'); }); editor.addButton( 'tadv_mark', { icon: 'backcolor', tooltip: 'Mark', cmd: 'Tadv_Mark', stateSelector: 'mark' }); editor.on( 'init', function() { if ( noAutop ) { editor.on( 'SaveContent', function( event ) { event.content = event.content.replace( /caption\](\s|]*>|

     <\/p>)*\[caption/g, 'caption] [caption' ); event.content = event.content.replace( /<(object|audio|video)[\s\S]+?<\/\1>/g, function( match ) { return match.replace( /[\r\n\t ]+/g, ' ' ); }); event.content = event.content.replace( /]*)?>[\s\S]+?<\/pre>/g, function( match ) { match = match.replace( /
    (\r\n|\n)?/g, '\n' ); return match.replace( /<\/?p( [^>]*)?>(\r\n|\n)?/g, '\n' ); }); event.content = addLineBreaks( event.content ); }); } try { if ( editor.plugins.searchreplace && ! editor.controlManager.buttons.searchreplace ) { editor.shortcuts.remove( 'meta+f' ); } } catch ( er ) {} editor.formatter.register({ mark: { inline: 'mark' } }); }); editor.on( 'ObjectResizeStart', function( event ) { var element = event.target; var table = editor.$( element ); var parentWidth; var tableWidth; var width; if ( table.is( 'table' ) ) { if ( element.style.width && element.style.width.indexOf( '%' ) !== -1 ) { return; } parentWidth = parseInt( table.parent().css( 'width' ), 10 ); tableWidth = parseInt( event.width, 10 ); if ( parentWidth && tableWidth ) { if ( Math.abs( parentWidth - tableWidth ) < 3 ) { table.css({ width: '100%' }); } else { width = Math.round( ( tableWidth / parentWidth ) * 100 ); if ( width > 10 && width < 200 ) { table.css({ width: width + '%' }); } } } } }, true ); editor.addMenuItem( 'tmaresettablesize', { text: 'Reset table size', cmd: 'tmaResetTableSize', icon: 'dashicon dashicons-image-flip-horizontal', context: 'format', }); editor.addMenuItem( 'tmaremovetablestyles', { text: 'Remove table styling', cmd: 'tmaRemoveTableStyles', icon: 'dashicon dashicons-editor-table', context: 'format', }); editor.addButton( 'tmaresettablesize', { title: 'Reset table size', cmd: 'tmaResetTableSize', icon: 'dashicon dashicons-image-flip-horizontal', } ); editor.addButton( 'tmaremovetablestyles', { title: 'Remove table styling', cmd: 'tmaRemoveTableStyles', icon: 'dashicon dashicons-editor-table', } ); editor.addCommand( 'tmaRemoveTableStyles', function() { var node = editor.selection.getStart(); var table = editor.dom.getParents( node, 'table' ); var attr = { style: null, 'data-mce-style': null, width: null, height: null, minWidth: null, maxWidth: null, minHeight: null, maxHeight: null, align: null, valign: null, axis: null, 'char': null, charoff: null, bgcolor: null, border: null, cellspacing: null, cellpadding: null }; if ( table ) { editor.$( table ).attr( attr ).find( 'tr, th, td, thead, tbody, tfoot' ).each( function( i, element ) { editor.$( element ).attr( attr ); } ); } } ); editor.addCommand( 'tmaResetTableSize', function() { var node = editor.selection.getStart(); var table = editor.dom.getParents( node, 'table' ); if ( table ) { removeInlineSizes( null, table ); editor.$( table ).find( 'tr, th, td, thead, tbody, tfoot' ).each( removeInlineSizes ); } } ); function removeInlineSizes( i, node ) { var element = editor.$( node ); element.attr( { width: null, height: null, minWidth: null, maxWidth: null, minHeight: null, maxHeight: null } ); element.css({ width: null, height: null }); if ( element.is( 'table' ) ) { element.css({ 'border-collapse': 'collapse', width: '100%;' }); } if ( ! element.attr( 'style' ) ) { element.attr({ style: null, 'data-mce-style': null }); } else { element.attr( 'data-mce-style', element.attr( 'style' ) ); } } if ( noAutop ) { editor.on( 'beforeSetContent', function( event ) { var autop; var wp = window.wp; if ( ! wp ) { return; } autop = wp.editor && wp.editor.autop; if ( ! autop ) { autop = wp.oldEditor && wp.oldEditor.autop; } if ( event.load && autop && event.content && event.content.indexOf( '\n' ) > -1 && ! /

    /i.test( event.content ) ) { event.content = autop( event.content ); } }, true ); if ( editor.settings.classic_block_editor ) { editor.on( 'beforeGetContent', function( event ) { if ( event.format === 'raw' ) { return; } var blocks = tinymce.$( '.block-editor-block-list__block' ); if ( blocks.length === 1 && blocks.attr( 'data-type' ) === 'core/freeform' ) { // Mark all paragraph tags inside a single freeform block so they are not stripped by the block editor... editor.$( 'p' ).each( function ( i, node ) { if ( ! node.hasAttributes() ) { editor.$( node ).attr( 'data-tadv-p', 'keep' ); } } ); } else { // Remove the above ugliness... editor.$( 'p[data-tadv-p]' ).removeAttr( 'data-tadv-p' ); } }, true ); } } return { addLineBreaks: addLineBreaks }; }); }( window.tinymce )); Luciana Mentoria