"use strict"; function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } // Add to wishlist (function ($) { //Add to wishlist main function. $.fn.tinvwl_to_wishlist = function (so) { var sd = { api_url: window.location.href.split('?')[0], text_create: window.tinvwl_add_to_wishlist['text_create'], text_already_in: window.tinvwl_add_to_wishlist['text_already_in'], class: { dialogbox: '.tinvwl_add_to_select_wishlist', select: '.tinvwl_wishlist', newtitle: '.tinvwl_new_input', dialogbutton: '.tinvwl_button_add' }, redirectTimer: null, onPrepareList: function onPrepareList() {}, onGetDialogBox: function onGetDialogBox() {}, onPrepareDialogBox: function onPrepareDialogBox() { if (!$('body > .tinv-wishlist').length) { $('body').append($('
').addClass('tinv-wishlist')); } $(this).appendTo('body > .tinv-wishlist'); }, onCreateWishList: function onCreateWishList(wishlist) { $(this).append($('