@abtasty/modal
Advanced tools
Comparing version 2.5.16-2 to 2.5.16-3
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.widgetForm=t()}(this,function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}var a={propName:"backgroundGroup",category:"style",type:"group",label:{en:"Background",fr:"Fond",es:"Fondo",de:"Hintergrund"},collapsible:!0,children:[{propName:"backgroundColor",type:"colorpicker",category:"style",label:{en:"Background color",fr:"Couleur d'arrière-plan"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"backgroundImage-style-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{propName:"backgroundImage",type:"mediaupload",category:"style",label:{en:"Background image",fr:"Image d'arrière-plan"},conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"overlay-style-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{propName:"overlayOpacity",type:"slider",category:"style",label:{en:"Overlay opacity",fr:"Opacité de l'overlay",es:"Opacidad de la capa",de:"Overlay Opacity"},value:"50",unit:"%"}]},r={propName:"borderGroup",category:"style",type:"group",label:{en:"Border",fr:"Bordure"},collapsible:!0,children:[{propName:"borderWidth",category:"style",type:"slider",unit:"px",value:0,min:0,max:10,label:{en:"Border Thickness",fr:"Largeur de la bordure"}},{category:"style",type:"short-separator",propName:"borderRadius-style-separator"},{propName:"borderRadius",category:"style",type:"slider",unit:"px",value:10,min:0,max:20,label:{en:"Border radius",fr:"Angle de la bordure"}},{category:"style",type:"short-separator",propName:"borderRadiusImage-separator",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"borderRadiusImage",category:"style",type:"slider",unit:"px",value:10,min:0,max:20,label:{en:"Image Border radius",fr:"Angle de la bordure de l'image"},conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"borderColor-style-separator"},{propName:"borderColor",category:"style",type:"colorpicker",label:{en:"Border color",fr:"Couleur de la bordure"},value:"rgba(0, 0, 0, 1)"}]},n={propName:"closeButtonGroup",category:"style",type:"group",label:{en:"Close button",fr:"Bouton de fermeture",es:"Botón cerrar",de:"Schließen-Button"},collapsible:!0,children:[{propName:"closeButtonPosition",category:"style",type:"radio",label:{en:"Close button position",fr:"Position du bouton de fermeture",es:"Posición del botón",de:"Button-Position"},value:"inside",options:[{label:{en:"Inside",fr:"À l'intérieur",es:"Dentro",de:"Innen"},value:"inside"},{label:{en:"Outside",fr:"À l'extérieur",es:"Fuera",de:"Außen"},value:"outside"}]},{category:"style",type:"short-separator",propName:"closeButtonColor-style-separator"},{propName:"closeButtonColor",type:"colorpicker",category:"style",label:{en:"Close button color",fr:"Couleur du bouton de fermeture",es:"Color del botón cerrar",de:"Button-Farbe"},value:"rgba(92, 92, 92, 1)"},{category:"style",type:"short-separator",propName:"closeBackgroundButtonColor-style-separator",conditions:[{field:"closeButtonPosition",value:"outside"}]},{propName:"backgroundCloseButtonColor",type:"colorpicker",category:"style",label:{en:"Background close button color",fr:"Couleur du fond du bouton de fermeture",es:"Background close button color",de:"Background close button color"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"closeButtonPosition",value:"outside"}]}]},l=[{propName:"widthImageWithText",type:"radio",category:"style",label:{en:"Width",fr:"Largeur"},value:"medium",options:[{label:{en:"Small",fr:"Petite",es:"Pequeño",de:"Klein"},value:"small"},{label:{en:"Medium",fr:"Moyenne",es:"Mediano",de:"Medium"},value:"medium"},{label:{en:"Large",fr:"Large",es:"Grande",de:"Groß"},value:"large"},{label:{en:"Custom",fr:"Sur mesure"},value:"custom"}],conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"widthImageOnly",type:"radio",category:"style",label:{en:"Width",fr:"Largeur"},value:"fit",options:[{label:{en:"Fit to size",fr:"S'adapte à la taille",es:"Ajustar",de:"Angepasst"},value:"fit"},{label:{en:"Small",fr:"Petite",es:"Pequeño",de:"Klein"},value:"small"},{label:{en:"Medium",fr:"Moyenne",es:"Mediano",de:"Medium"},value:"medium"},{label:{en:"Large",fr:"Large",es:"Grande",de:"Groß"},value:"large"}],conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"===e}}]},{propName:"customWidth",type:"number",category:"style",label:{en:"Custom width (%)",fr:"Largeur sur mesure (%)"},value:50,conditions:[{field:"widthImageWithText",value:"custom"}]}],i=[{category:"style",type:"separator",propName:"animation-separator"},{propName:"animation",type:"radio",category:"style",label:{en:"Animation",fr:"Animation",es:"Animación",de:"Animation"},value:"none",options:[{label:{en:"None",fr:"Aucune",es:"Ninguna",de:"Keine"},value:"none"},{label:{en:"Slide In",fr:"Slide In",es:"Deslizar",de:"Slide In"},value:"slideIn"},{label:{en:"Fade In",fr:"Fade In",es:"Disolver",de:"Fade In"},value:"fadeIn"}]}],u=[{propName:"recurrence",type:"select",category:"conditions",label:{en:"Recurrence",fr:"Récurrence",es:"Recurrencia",de:"Récurrence"},value:"-1",options:[{label:{en:"Every time",fr:"Chaque page"},value:"-1"},{label:{en:"Every session",fr:"Chaque session"},value:"0"},{label:{en:"Everyday",fr:"Chaque jour"},value:"1"},{label:{en:"Every week",fr:"Chaque semaine"},value:"7"},{label:{en:"Every month",fr:"Chaque mois"},value:"30"},{label:{en:"Once per user (no recurrence)",fr:"Une fois par visiteur (pas de récurrence)"},value:"365"}]},{category:"conditions",type:"separator",propName:"triggerEvent-separator"},{propName:"triggerEvent",type:"select",category:"conditions",label:{en:"Triggers on",fr:"Se déclenche au",es:"¿Cuándo se activa?",de:"Triggert bei"},value:"pageLoad",options:[{label:{en:"Page load",fr:"Chargement de la page",es:"Al cargar la página",de:"Laden der Seite"},value:"pageLoad"},{label:{en:"Click",fr:"Clic",es:"Al hacer clic",de:"Klick"},value:"click"},{label:{en:"Exit intent",fr:"Avant fermeture de l'onglet",es:"Al intentar salir",de:"Exit Intent"},value:"exitIntent"},{label:{en:"Delay",fr:"Délai",es:"Después de un tiempo",de:"Verzögert"},value:"timer"},{label:{en:"Reengage (after inactivity)",fr:"Réengagement (après inactivité)",es:"Tras inactividad",de:"Ansprechen (nach Inaktivität)"},value:"reengage"}]},{propName:"clickEventSelector",type:"selectelement",category:"conditions",label:{en:"DOM element to listen to",fr:"Élément du DOM à écouter"},placeholder:{en:"Please select an element in the webpage",fr:"Veuillez sélectionner un élément dans la page"},conditions:[{field:"triggerEvent",value:"click"}]},{propName:"exitEventDelay",type:"number",category:"conditions",label:{en:"Delay after leaving",fr:"Délai avant affichage (après sortie de page)"},min:0,max:120,value:0,conditions:[{field:"triggerEvent",value:"exitIntent"}]},{propName:"reengageEventDelay",type:"number",category:"conditions",label:{en:"Delay before reengagement",fr:"Délai d'inactivité avant affichage"},min:1,max:120,value:10,conditions:[{field:"triggerEvent",value:"reengage"}]},{propName:"triggerEventDelay",type:"number",category:"conditions",label:{en:"Trigger event delay (in seconds)",fr:"Délai avant l'affichage (en secondes)"},value:10,conditions:[{field:"triggerEvent",value:"timer"}]}],s={title:{propName:"title",type:"wysiwyg",category:"content",label:{en:"Title",fr:"Titre"},placeholder:{en:"Some title",fr:"Mon titre"},value:{en:"Title",fr:"Titre"},conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},buttonSettings:[{category:"content",type:"separator",propName:"button-separator"},{propName:"button",category:"content",type:"switch",value:!1,label:{en:"Add a button",fr:"Ajouter un bouton",es:"Añadir un botón",de:"Button hinzufügen"}},{propName:"buttonText",type:"text",category:"content",label:{en:"Button text",fr:"Texte du bouton",es:"Texto del botón",de:"Button-Text"},value:{en:"Accept",fr:"Valider"},placeholder:{en:"Submit",fr:"Valider"},conditions:[{field:"button"}]},{propName:"buttonLink",type:"text",category:"content",label:{en:"Button link",fr:"Lien du bouton",es:"Enlace del botón",de:"Button-Link"},value:"https://www.google.com",conditions:[{field:"button"}]},{propName:"buttonTextColor",category:"content",type:"colorpicker",label:{en:"Button text color",fr:"Couleur du texte du bouton",es:"Color del texto del botón",de:"Button-Textfarbe"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"button"}]},{propName:"buttonBackgroundColor",category:"content",type:"colorpicker",label:{en:"Button background color",fr:"Couleur de fond du bouton",es:"Color del botón",de:"Button-Hintergrundfarbe"},value:"rgba(86, 159, 242, 1)",conditions:[{field:"button"}]}]},d=[{propName:"type",value:"image",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"imageOnly",type:"radioImage",options:[{label:{en:"Image only",fr:"Image seule",es:"Solo imagen",de:"Nur Bild"},value:"imageOnly",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/image-only.png"},{label:{en:"Left",fr:"Gauche"},value:"left",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/left.png"},{label:{en:"Right",fr:"Droite"},value:"right",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/right.png"},{label:{en:"Top",fr:"Haut"},value:"top",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/top.png"},{label:{en:"Bottom",fr:"Bas"},value:"bottom",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/bottom.png"}]},{propName:"image",type:"mediaupload",category:"content",label:{en:"Image",fr:"Image",es:"Imagen",de:"Bild"}},{category:"content",type:"separator",propName:"title-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},s.title,{category:"content",type:"separator",propName:"wysiwyg-content-separator",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"content",type:"wysiwyg",category:"content",label:{en:"Content",fr:"Contenu"},value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]}].concat(e(s.buttonSettings),e(l),[{type:"separator",category:"style"},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],e(i),e(u)),c=[{propName:"type",value:"simple",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"center",type:"radioImage",options:[{label:{en:"Center",fr:"Centre"},value:"center",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/center.png"},{label:{en:"Left",fr:"Gauche"},value:"left",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/left.png"},{label:{en:"Right",fr:"Droite"},value:"right",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/right.png"}]},s.title,{category:"content",type:"separator",propName:"title-content-separator"},{propName:"content",type:"wysiwyg",category:"content",label:{en:"Content",fr:"Contenu"},value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}].concat(t(s.buttonSettings),t(l),[{type:"separator",category:"style"},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],t(i),t(u)),p=[{propName:"type",value:"video",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"no-title",type:"radioImage",options:[{label:{en:"No title",fr:"Sans titre",es:"Sin título",de:"Kein Titel"},value:"no-title",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/video-only.png"},{label:{en:"Top",fr:"Haut"},value:"top",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/bottom.png"},{label:{en:"Bottom",fr:"Bas"},value:"bottom",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/top.png"}]},s.title,{propName:"videoLink",type:"text",category:"content",label:{en:"URL (Youtube or Vimeo)",fr:"URL (Youtube ou Vimeo)"},value:"https://www.youtube.com/watch?v=XyGGixAg3bE"}].concat(o(s.buttonSettings),o(l),[{type:"separator",category:"style",conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"!==e}}]},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],o(i),o(u),[{category:"content",type:"separator",propName:"autoPlay-separator"},{propName:"autoPlay",category:"conditions",type:"switch",value:!1,label:{en:"Auto play (Youtube only). Warning: on Chrome auto play is only allowed when the media doesn't include sound.",fr:"Lecture automatique (Youtube uniquement). Attention: sur Chrome, la lecture automatique n'est autorisée que lorsque le support n'inclut pas le son.",es:"Reproducción automática (solo para vídeos de YouTube). Aviso: En Chrome solo se permite la reproducción automática de videos sin sonido.",de:"Autoplay (nur für YouTube). Achtung: Chrome erlaubt Autoplay nur, wenn das Medium keinen Ton hat."}}]),m=void 0,y=document.getElementById("abtasty-widget-react-form__widget");if(y){var g=y.getAttribute("data-plugin-id");m="d5f5d126-4f25-413a-976e-6ca5f4a4734d"===g||9===Number(g)?c:"b5bb5334-ad3c-48bc-b9e0-4fc5fcce38e2"===g||64===Number(g)?p:d}else m=d;return m}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.widgetForm=t()}(this,function(){"use strict";function e(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}function o(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}var a={propName:"backgroundGroup",category:"style",type:"group",label:{en:"Background",fr:"Fond",es:"Fondo",de:"Hintergrund"},collapsible:!0,children:[{propName:"backgroundColor",type:"colorpicker",category:"style",label:{en:"Background color",fr:"Couleur d'arrière-plan"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"backgroundImage-style-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{propName:"backgroundImage",type:"mediaupload",category:"style",label:{en:"Background image",fr:"Image d'arrière-plan"},conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"overlay-style-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},{propName:"overlayOpacity",type:"slider",category:"style",label:{en:"Overlay opacity",fr:"Opacité de l'overlay",es:"Opacidad de la capa",de:"Overlay Opacity"},value:"50",unit:"%"}]},r={propName:"borderGroup",category:"style",type:"group",label:{en:"Border",fr:"Bordure"},collapsible:!0,children:[{propName:"borderWidth",category:"style",type:"slider",unit:"px",value:0,min:0,max:10,label:{en:"Border Thickness",fr:"Largeur de la bordure"}},{category:"style",type:"short-separator",propName:"borderRadius-style-separator"},{propName:"borderRadius",category:"style",type:"slider",unit:"px",value:10,min:0,max:20,label:{en:"Border radius",fr:"Angle de la bordure"}},{category:"style",type:"short-separator",propName:"borderRadiusImage-separator",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"borderRadiusImage",category:"style",type:"slider",unit:"px",value:10,min:0,max:20,label:{en:"Image Border radius",fr:"Angle de la bordure de l'image"},conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{category:"style",type:"short-separator",propName:"borderColor-style-separator"},{propName:"borderColor",category:"style",type:"colorpicker",label:{en:"Border color",fr:"Couleur de la bordure"},value:"rgba(0, 0, 0, 1)"}]},n={propName:"closeButtonGroup",category:"style",type:"group",label:{en:"Close button",fr:"Bouton de fermeture",es:"Botón cerrar",de:"Schließen-Button"},collapsible:!0,children:[{propName:"closeButtonPosition",category:"style",type:"radio",label:{en:"Close button position",fr:"Position du bouton de fermeture",es:"Posición del botón",de:"Button-Position"},value:"inside",options:[{label:{en:"Inside",fr:"À l'intérieur",es:"Dentro",de:"Innen"},value:"inside"},{label:{en:"Outside",fr:"À l'extérieur",es:"Fuera",de:"Außen"},value:"outside"}]},{category:"style",type:"short-separator",propName:"closeButtonColor-style-separator"},{propName:"closeButtonColor",type:"colorpicker",category:"style",label:{en:"Close button color",fr:"Couleur du bouton de fermeture",es:"Color del botón cerrar",de:"Button-Farbe"},value:"rgba(92, 92, 92, 1)"},{category:"style",type:"short-separator",propName:"closeBackgroundButtonColor-style-separator",conditions:[{field:"closeButtonPosition",value:"outside"}]},{propName:"backgroundCloseButtonColor",type:"colorpicker",category:"style",label:{en:"Background close button color",fr:"Couleur du fond du bouton de fermeture",es:"Background close button color",de:"Background close button color"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"closeButtonPosition",value:"outside"}]}]},l=[{propName:"widthImageWithText",type:"radio",category:"style",label:{en:"Width",fr:"Largeur"},value:"medium",options:[{label:{en:"Small",fr:"Petite",es:"Pequeño",de:"Klein"},value:"small"},{label:{en:"Medium",fr:"Moyenne",es:"Mediano",de:"Medium"},value:"medium"},{label:{en:"Large",fr:"Large",es:"Grande",de:"Groß"},value:"large"},{label:{en:"Custom",fr:"Sur mesure"},value:"custom"}],conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"widthImageOnly",type:"radio",category:"style",label:{en:"Width",fr:"Largeur"},value:"fit",options:[{label:{en:"Fit to size",fr:"S'adapte à la taille",es:"Ajustar",de:"Angepasst"},value:"fit"},{label:{en:"Small",fr:"Petite",es:"Pequeño",de:"Klein"},value:"small"},{label:{en:"Medium",fr:"Moyenne",es:"Mediano",de:"Medium"},value:"medium"},{label:{en:"Large",fr:"Large",es:"Grande",de:"Groß"},value:"large"}],conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"===e}}]},{propName:"customWidth",type:"number",category:"style",label:{en:"Custom width (%)",fr:"Largeur sur mesure (%)"},value:50,conditions:[{field:"widthImageWithText",value:"custom"}]}],i=[{category:"style",type:"separator",propName:"animation-separator"},{propName:"animation",type:"radio",category:"style",label:{en:"Animation",fr:"Animation",es:"Animación",de:"Animation"},value:"none",options:[{label:{en:"None",fr:"Aucune",es:"Ninguna",de:"Keine"},value:"none"},{label:{en:"Slide In",fr:"Slide In",es:"Deslizar",de:"Slide In"},value:"slideIn"},{label:{en:"Fade In",fr:"Fade In",es:"Disolver",de:"Fade In"},value:"fadeIn"}]}],u=[{propName:"recurrence",type:"select",category:"conditions",label:{en:"Recurrence",fr:"Récurrence",es:"Recurrencia",de:"Récurrence"},value:"-1",options:[{label:{en:"Every time",fr:"Chaque page"},value:"-1"},{label:{en:"Every session",fr:"Chaque session"},value:"0"},{label:{en:"Everyday",fr:"Chaque jour"},value:"1"},{label:{en:"Every week",fr:"Chaque semaine"},value:"7"},{label:{en:"Every month",fr:"Chaque mois"},value:"30"},{label:{en:"Once per user (no recurrence)",fr:"Une fois par visiteur (pas de récurrence)"},value:"365"}]},{category:"conditions",type:"separator",propName:"triggerEvent-separator"},{propName:"triggerEvent",type:"select",category:"conditions",label:{en:"Triggers on",fr:"Se déclenche au",es:"¿Cuándo se activa?",de:"Triggert bei"},value:"pageLoad",options:[{label:{en:"Page load",fr:"Chargement de la page",es:"Al cargar la página",de:"Laden der Seite"},value:"pageLoad"},{label:{en:"Click",fr:"Clic",es:"Al hacer clic",de:"Klick"},value:"click"},{label:{en:"Exit intent",fr:"Avant fermeture de l'onglet",es:"Al intentar salir",de:"Exit Intent"},value:"exitIntent"},{label:{en:"Delay",fr:"Délai",es:"Después de un tiempo",de:"Verzögert"},value:"timer"},{label:{en:"Reengage (after inactivity)",fr:"Réengagement (après inactivité)",es:"Tras inactividad",de:"Ansprechen (nach Inaktivität)"},value:"reengage"}]},{propName:"clickEventSelector",type:"selectelement",category:"conditions",label:{en:"DOM element to listen to",fr:"Élément du DOM à écouter"},placeholder:{en:"Please select an element in the webpage",fr:"Veuillez sélectionner un élément dans la page"},conditions:[{field:"triggerEvent",value:"click"}]},{propName:"exitEventDelay",type:"number",category:"conditions",label:{en:"Delay after leaving",fr:"Délai avant affichage (après sortie de page)"},min:0,max:120,value:0,conditions:[{field:"triggerEvent",value:"exitIntent"}]},{propName:"reengageEventDelay",type:"number",category:"conditions",label:{en:"Delay before reengagement",fr:"Délai d'inactivité avant affichage"},min:1,max:120,value:10,conditions:[{field:"triggerEvent",value:"reengage"}]},{propName:"triggerEventDelay",type:"number",category:"conditions",label:{en:"Trigger event delay (in seconds)",fr:"Délai avant l'affichage (en secondes)"},value:10,conditions:[{field:"triggerEvent",value:"timer"}]}],s={title:{propName:"title",type:"wysiwyg",category:"content",label:{en:"Title",fr:"Titre"},placeholder:{en:"Some title",fr:"Mon titre"},value:{en:"Title",fr:"Titre"},conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},buttonSettings:[{category:"content",type:"separator",propName:"button-separator"},{propName:"button",category:"content",type:"switch",value:!1,label:{en:"Add a button",fr:"Ajouter un bouton",es:"Añadir un botón",de:"Button hinzufügen"}},{propName:"buttonText",type:"text",category:"content",label:{en:"Button text",fr:"Texte du bouton",es:"Texto del botón",de:"Button-Text"},value:{en:"Accept",fr:"Valider"},placeholder:{en:"Submit",fr:"Valider"},conditions:[{field:"button"}]},{propName:"buttonLink",type:"text",category:"content",label:{en:"Button link",fr:"Lien du bouton",es:"Enlace del botón",de:"Button-Link"},value:"https://www.google.com",conditions:[{field:"button"}]},{propName:"buttonTextColor",category:"content",type:"colorpicker",label:{en:"Button text color",fr:"Couleur du texte du bouton",es:"Color del texto del botón",de:"Button-Textfarbe"},value:"rgba(255, 255, 255, 1)",conditions:[{field:"button"}]},{propName:"buttonBackgroundColor",category:"content",type:"colorpicker",label:{en:"Button background color",fr:"Couleur de fond du bouton",es:"Color del botón",de:"Button-Hintergrundfarbe"},value:"rgba(86, 159, 242, 1)",conditions:[{field:"button"}]}]},d=[{propName:"type",value:"image",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"imageOnly",type:"radioImage",options:[{label:{en:"Image only",fr:"Image seule",es:"Solo imagen",de:"Nur Bild"},value:"imageOnly",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/image-only.png"},{label:{en:"Left",fr:"Gauche"},value:"left",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/left.png"},{label:{en:"Right",fr:"Droite"},value:"right",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/right.png"},{label:{en:"Top",fr:"Haut"},value:"top",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/top.png"},{label:{en:"Bottom",fr:"Bas"},value:"bottom",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/image/bottom.png"}]},{propName:"image",type:"mediaupload",category:"content",label:{en:"Image",fr:"Image",es:"Imagen",de:"Bild"}},{category:"content",type:"separator",propName:"title-separator",conditions:[{field:"layout",value:function(e){return"no-title"!==e&&"imageOnly"!==e}}]},s.title,{category:"content",type:"separator",propName:"wysiwyg-content-separator",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]},{propName:"content",type:"wysiwyg",category:"content",label:{en:"Content",fr:"Contenu"},value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",conditions:[{field:"layout",value:function(e){return"imageOnly"!==e}}]}].concat(e(s.buttonSettings),e(l),[{type:"separator",category:"style"},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],e(i),e(u)),c=[{propName:"type",value:"simple",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"center",type:"radioImage",options:[{label:{en:"Center",fr:"Centre"},value:"center",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/center.png"},{label:{en:"Left",fr:"Gauche"},value:"left",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/left.png"},{label:{en:"Right",fr:"Droite"},value:"right",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/simple/right.png"}]},s.title,{category:"content",type:"separator",propName:"title-content-separator"},{propName:"content",type:"wysiwyg",category:"content",label:{en:"Content",fr:"Contenu"},value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."}].concat(t(s.buttonSettings),t(l),[{type:"separator",category:"style"},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],t(i),t(u)),p=[{propName:"type",value:"video",type:"hidden",category:"layout"},{propName:"layout",category:"layout",value:"no-title",type:"radioImage",options:[{label:{en:"No title",fr:"Sans titre",es:"Sin título",de:"Kein Titel"},value:"no-title",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/video-only.png"},{label:{en:"Top",fr:"Haut"},value:"top",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/bottom.png"},{label:{en:"Bottom",fr:"Bas"},value:"bottom",src:"https://s3-eu-west-1.amazonaws.com/widgets-form-images/modal/video/top.png"}]},s.title,{propName:"videoLink",type:"text",category:"content",label:{en:"URL (Youtube or Vimeo)",fr:"URL (Youtube ou Vimeo)"},value:"https://www.youtube.com/watch?v=XyGGixAg3bE"}].concat(o(s.buttonSettings),o(l),[{type:"separator",category:"style",conditions:[{field:"type",value:function(e){return"video"!==e}},{field:"layout",value:function(e){return"imageOnly"!==e}}]},a,{type:"separator",category:"style"},r,{type:"separator",category:"style"},n],o(i),o(u),[{category:"content",type:"separator",propName:"autoPlay-separator"},{propName:"autoPlay",category:"conditions",type:"switch",value:!1,label:{en:["Auto play (Youtube only).","Warning : on Chrome auto play is only allowed when the media doesn't include sound"],fr:["Lecture automatique (Youtube uniquement).","Attention: sur Chrome, la lecture automatique n'est autorisée que lorsque le support n'inclut pas le son"],es:["Reproducción automática (solo para vídeos de YouTube).","Aviso: En Chrome solo se permite la reproducción automática de videos sin sonido"],de:["Autoplay (nur für YouTube).","Achtung: Chrome erlaubt Autoplay nur, wenn das Medium keinen Ton hat"]}}]),m=void 0,y=document.getElementById("abtasty-widget-react-form__widget");if(y){var g=y.getAttribute("data-plugin-id");m="d5f5d126-4f25-413a-976e-6ca5f4a4734d"===g||9===Number(g)?c:"b5bb5334-ad3c-48bc-b9e0-4fc5fcce38e2"===g||64===Number(g)?p:d}else m=d;return m}); |
{ | ||
"name": "@abtasty/modal", | ||
"description": "Widget for AB Tasty", | ||
"version": "2.5.16-2", | ||
"version": "2.5.16-3", | ||
"icon": "icon.png", | ||
@@ -6,0 +6,0 @@ "form": "dist/form.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36815