@abtasty/social-proof
Advanced tools
Comparing version 0.1.17 to 0.1.18
@@ -1,1 +0,1 @@ | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.widgetForm=a()}(this,function(){"use strict";return[{propName:"layoutGroup",category:"layout",type:"group",children:[{value:"abtasty-widget-top",propName:"layout",type:"radioImage",label:{en:"Sticky to the page",fr:"Fixe par rapport à la page",de:"An der Seite angeheftet"},options:[{label:{en:"Left",fr:"Gauche",de:"Links",es:"Izquierda"},value:"abtasty-widget-left",src:"https://gitlab.com/builat/staticimages/raw/master/left.png"},{label:{en:"Right",fr:"Droite",de:"Rechts",es:"Derecha"},value:"abtasty-widget-right",src:"https://gitlab.com/builat/staticimages/raw/master/right.png"},{label:{en:"Bottom",fr:"Bas",de:"Unten",es:"Abajo"},value:"abtasty-widget-bottom",src:"https://gitlab.com/builat/staticimages/raw/master/bottom.png"},{label:{en:"Top",fr:"Haut",de:"Oben",es:"Arriba"},value:"abtasty-widget-top",src:"https://gitlab.com/builat/staticimages/raw/master/up.png"}]},{type:"separator"},{label:{en:"Sticky to an element",fr:"Fixe par rapport à un élément",de:"An ein Element angeheftet"},propName:"stickTo",type:"selectelement",value:void 0},{propName:"positionSelector",type:"radio",value:"afterend",options:[{label:{fr:"En dessous",en:"After",de:"Nach"},value:"afterend"},{label:{fr:"Avant",en:"Before",de:"Vor"},value:"beforebegin"},{label:{fr:"À sa gauche",en:"At the beginning",de:"Am Anfang"},value:"afterbegin"},{label:{fr:"À sa droite",en:"At the end",de:"Am Ende"},value:"beforeend"}]}]},{category:"content",type:"group",propName:"contentGroup",children:[{propName:"typeOfContent",label:{en:"Select the type of content you want to display",fr:"Choisissez le type de contenu à afficher",de:"Wählen Sie die Art des Inhalts, den Sie anzeigen wollen",es:"Selecciona el tipo de contenido que quieres mostrar"},type:"select",value:1,options:[{label:{en:"Number of purchases",fr:"Nombre d'achats",de:"Anzahl der Käufe",es:"Número de compras"},value:1},{label:{en:"Number of views",fr:"Nombre de vues",de:"Anzahl der Aufrufe",es:"Número de visualizaciones"},value:2}]},{propName:"viewInterval",type:"select",value:"count_3hours",options:[{label:{en:"In the last 3 hours",fr:"Dans les 3 dernières heures",de:"In den letzen 3 Stunden",es:"En las últimas 3 horas"},value:"count_3hours"},{label:{en:"In the last 12 hours",fr:"Dans les 12 dernières heures",de:"In den letzen 12 Stunden",es:"En las últimas 12 horas"},value:"count_12hours"},{label:{en:"In the last 24 hours",fr:"Dans les 24 dernières heures",de:"In den letzten 24 Stunden",es:"En las últimas 24 horas"},value:"count_24hours"},{label:{en:"In the last 3 days",fr:"Dans les 3 derniers jours",de:"In den letzen 3 Tagen",es:"En los últimos 3 días"},value:"count_72hours"},{label:{en:"In the last 7 days",fr:"Dans les 7 derniers jours",de:"In den letzen 7 Tagen",es:"En los últmos 7 días"},value:"count_168hours"}]},{type:"separator"},{propName:"manualInput",label:{en:"Insert your own content below. To add the dynamic values, use the variable !purchaseQty! for the number of product purchased and !views! for the number of pages seen. Also, type !period! to insert the period selected for the widget.",fr:"Personnalisez votre message ci-dessous. Pour utiliser le contenu dynamique du Social Proof, utilisez la variable !purchaseQty! pour le nombre de produit achetés et !views! pour le nombre de pages vues. Aussi, utilisez !period! pour indiquer la période sélectionner dans le widget. ",de:"Tragen Sie Ihren eigenen Inhalt unten ein. Um dynamische Werte hinzuzufügen, verwenden Sie die Variable !purchaseQty! für die Anzahl der Produkte und die Variable !views! für die Zahl der Seitenansichten. Verwenden Sie zusätzlich !period!, um den gewählten Zeitraum für das Widget einzusetzen.",es:"Añade tu contenido debajo. Para añadir valores dinámicos, usa la variable !purchaseQty! para el número de productos comprados y la variable !views! para el número de páginas vistas. Además, puedes usar !period! para insertar la franja de tiempo seleccionada para el widget."},type:"wysiwyg"}]},{category:"style",type:"group",propName:"styleGroup",children:[{propName:"textAlign",value:"left",label:{en:"Text alignment"},type:"radioImage",options:[{label:{en:"Left",fr:"Gauche",de:"Links",es:"Izquierda"},value:"left",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignLeftSmall.png"},{label:{en:"Center",fr:"Center"},value:"center",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignCenterSmall.png"},{label:{en:"Right",fr:"Droite",de:"Rechts",es:"Derecha"},value:"right",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignRightSmall.png"}]},{type:"separator"},{type:"group",propName:"borderGroup",children:[{type:"slider",propName:"borderWidth",label:{en:"Border Thickness",fr:"Border Thickness"},unit:"px",min:0,max:50,value:2},{type:"slider",propName:"borderRadius",label:{en:"Border radius",fr:"Border radius"},unit:"px",min:0,max:100,value:10},{type:"colorpicker",propName:"borderColor",label:{en:"Border color",fr:"Border color"},value:"rgba(200, 10, 40, 1)"}]},{type:"separator"},{type:"group",propName:"backgroundGroup",children:[{type:"colorpicker",propName:"backgroundColor",label:{en:"Background color",fr:"Background color"},value:"rgba(247, 12, 53, 1)"},{type:"slider",propName:"backgroundOpacity",label:{en:"Overlay opacity",fr:"Overlay opacity"},unit:"%",min:0,max:100,value:10}]},{type:"separator"},{type:"group",propName:"margines",children:[{type:"number",propName:"marginTop",label:"Margin top px",value:0},{type:"number",propName:"marginBottom",label:"Margin bottom px",value:0},{type:"number",propName:"marginLeft",label:"Margin left px",value:0},{type:"number",propName:"marginRight",label:"Margin right px",value:0}]},{type:"separator"},{type:"group",propName:"shadowGroup",children:[{type:"slider",propName:"contentPadding",label:{en:"Padding",fr:"Padding"},unit:"px",min:0,max:100,value:0},{type:"separator"},{type:"switch",propName:"dropShadow",label:{en:"Drop shadow",fr:"Drop shadow"},value:!0},{type:"slider",propName:"shadowOpacity",label:{en:"Shadow opacity (%)",fr:"Shadow opacity (%)"},unit:"%",min:0,max:100,value:40}]}]},{category:"conditions",type:"group",propName:"conditionGroup",children:[{propName:"recurrence",label:{en:'Enter the minimum number of views or purchases to display the widget. "always" means that it will always be displayed.',fr:"Personnalisez votre message ci-dessous. Pour utiliser le contenu dynamique du Social Proof, utilisez la variable !purchaseQty! pour le nombre de produit achetés et !views! pour le nombre de pages vues. Aussi, utilisez !period! pour indiquer la période sélectionner dans le widget.",de:"Tragen Sie Ihren eigenen Inhalt unten ein. Um dynamische Werte hinzuzufügen, verwenden Sie die Variable !purchaseQty! für die Anzahl der Produkte und die Variable !views! für die Zahl der Seitenansichten. Verwenden Sie zusätzlich !period!, um den gewählten Zeitraum für das Widget einzusetzen.",es:"Añade tu contenido debajo. Para añadir valores dinámicos, usa la variable !purchaseQty! para el número de productos comprados y la variable !views! para el número de páginas vistas. Además, puedes usar !period! para insertar la franja de tiempo seleccionada para el widget."},type:"text",value:"always"},{type:"separator"},{propName:"fadeOut",label:{en:"Dismiss content",fr:"Dismiss content"},type:"select",value:0,options:[{label:{en:"Do not dismiss it",fr:"Do not dismiss it"},value:0},{label:{en:"Automatically fade out after 5 seconds",fr:"Automatically fade out after 5 seconds"},value:5e3},{label:{en:"Automatically fade out after 6 seconds",fr:"Automatically fade out after 6 seconds"},value:6e3},{label:{en:"Automatically fade out after 7 seconds",fr:"Automatically fade out after 7 seconds"},value:7e3},{label:{en:"Automatically fade out after 8 seconds",fr:"Automatically fade out after 8 seconds"},value:8e3},{label:{en:"Automatically fade out after 9 seconds",fr:"Automatically fade out after 9 seconds"},value:9e3},{label:{en:"Automatically fade out after 10 seconds",fr:"Automatically fade out after 10 seconds"},value:1e4}]},{type:"separator"}]}]}); | ||
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):e.widgetForm=a()}(this,function(){"use strict";return[{propName:"layoutGroup",category:"layout",type:"group",children:[{value:"abtasty-widget-top",propName:"layout",type:"radioImage",label:{en:"Sticky to the page",fr:"Fixe par rapport à la page",de:"An der Seite angeheftet"},options:[{label:{en:"Left",fr:"Gauche",de:"Links",es:"Izquierda"},value:"abtasty-widget-left",src:"https://gitlab.com/builat/staticimages/raw/master/left.png"},{label:{en:"Right",fr:"Droite",de:"Rechts",es:"Derecha"},value:"abtasty-widget-right",src:"https://gitlab.com/builat/staticimages/raw/master/right.png"},{label:{en:"Bottom",fr:"Bas",de:"Unten",es:"Abajo"},value:"abtasty-widget-bottom",src:"https://gitlab.com/builat/staticimages/raw/master/bottom.png"},{label:{en:"Top",fr:"Haut",de:"Oben",es:"Arriba"},value:"abtasty-widget-top",src:"https://gitlab.com/builat/staticimages/raw/master/up.png"}]},{type:"separator"},{label:{en:"Sticky to an element",fr:"Fixe par rapport à un élément",de:"An ein Element angeheftet"},propName:"stickTo",type:"selectelement",value:void 0},{propName:"positionSelector",type:"radio",value:"afterend",options:[{label:{fr:"En dessous",en:"After",de:"Nach"},value:"afterend"},{label:{fr:"Avant",en:"Before",de:"Vor"},value:"beforebegin"},{label:{fr:"À sa gauche",en:"At the beginning",de:"Am Anfang"},value:"afterbegin"},{label:{fr:"À sa droite",en:"At the end",de:"Am Ende"},value:"beforeend"}]}]},{category:"content",type:"group",propName:"contentGroup",children:[{propName:"typeOfContent",label:{en:"Select the type of content you want to display",fr:"Choisissez le type de contenu à afficher",de:"Wählen Sie die Art des Inhalts, den Sie anzeigen wollen",es:"Selecciona el tipo de contenido que quieres mostrar"},type:"select",value:1,options:[{label:{en:"Number of purchases",fr:"Nombre d'achats",de:"Anzahl der Käufe",es:"Número de compras"},value:1},{label:{en:"Number of views",fr:"Nombre de vues",de:"Anzahl der Aufrufe",es:"Número de visualizaciones"},value:2}]},{propName:"viewInterval",type:"select",value:"count_3hours",options:[{label:{en:"In the last 3 hours",fr:"Dans les 3 dernières heures",de:"In den letzen 3 Stunden",es:"En las últimas 3 horas"},value:"count_3hours"},{label:{en:"In the last 12 hours",fr:"Dans les 12 dernières heures",de:"In den letzen 12 Stunden",es:"En las últimas 12 horas"},value:"count_12hours"},{label:{en:"In the last 24 hours",fr:"Dans les 24 dernières heures",de:"In den letzten 24 Stunden",es:"En las últimas 24 horas"},value:"count_24hours"},{label:{en:"In the last 3 days",fr:"Dans les 3 derniers jours",de:"In den letzen 3 Tagen",es:"En los últimos 3 días"},value:"count_72hours"},{label:{en:"In the last 7 days",fr:"Dans les 7 derniers jours",de:"In den letzen 7 Tagen",es:"En los últmos 7 días"},value:"count_168hours"}]},{type:"separator"},{propName:"manualInput",label:{en:"Insert your own content below. To add the dynamic values, use the variable !purchaseQty! for the number of product purchased and !views! for the number of pages seen. Also, type !period! to insert the period selected for the widget.",fr:"Personnalisez votre message ci-dessous. Pour utiliser le contenu dynamique du Social Proof, utilisez la variable !purchaseQty! pour le nombre de produit achetés et !views! pour le nombre de pages vues. Aussi, utilisez !period! pour indiquer la période sélectionner dans le widget. ",de:"Tragen Sie Ihren eigenen Inhalt unten ein. Um dynamische Werte hinzuzufügen, verwenden Sie die Variable !purchaseQty! für die Anzahl der Produkte und die Variable !views! für die Zahl der Seitenansichten. Verwenden Sie zusätzlich !period!, um den gewählten Zeitraum für das Widget einzusetzen.",es:"Añade tu contenido debajo. Para añadir valores dinámicos, usa la variable !purchaseQty! para el número de productos comprados y la variable !views! para el número de páginas vistas. Además, puedes usar !period! para insertar la franja de tiempo seleccionada para el widget."},type:"wysiwyg"}]},{category:"style",type:"group",propName:"styleGroup",children:[{propName:"textAlign",value:"left",label:{en:"Text alignment"},type:"radioImage",options:[{label:{en:"Left",fr:"Gauche",de:"Links",es:"Izquierda"},value:"left",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignLeftSmall.png"},{label:{en:"Center",fr:"Centre",de:"Center",es:"Centrar"},value:"center",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignCenterSmall.png"},{label:{en:"Right",fr:"Droite",de:"Rechts",es:"Derecha"},value:"right",src:"https://gitlab.com/builat/staticimages/raw/master/textAlignRightSmall.png"}]},{type:"separator"},{type:"group",propName:"borderGroup",children:[{type:"slider",propName:"borderWidth",label:{en:"Border Thickness"},unit:"px",min:0,max:50,value:2},{type:"slider",propName:"borderRadius",label:{en:"Border radius"},unit:"px",min:0,max:100,value:10},{type:"colorpicker",propName:"borderColor",label:{en:"Border color"},value:"rgba(200, 10, 40, 1)"}]},{type:"separator"},{type:"group",propName:"backgroundGroup",children:[{type:"colorpicker",propName:"backgroundColor",label:{en:"Background color"},value:"rgba(247, 12, 53, 1)"},{type:"slider",propName:"backgroundOpacity",label:{en:"Overlay opacity"},unit:"%",min:0,max:100,value:10}]},{type:"separator"},{type:"group",propName:"margines",children:[{type:"number",propName:"marginTop",label:"Margin top px",value:0},{type:"number",propName:"marginBottom",label:"Margin bottom px",value:0},{type:"number",propName:"marginLeft",label:"Margin left px",value:0},{type:"number",propName:"marginRight",label:"Margin right px",value:0}]},{type:"separator"},{type:"group",propName:"shadowGroup",children:[{type:"slider",propName:"contentPadding",label:{en:"Padding"},unit:"px",min:0,max:100,value:0},{type:"separator"},{type:"switch",propName:"dropShadow",label:{en:"Drop shadow"},value:!0},{type:"slider",propName:"shadowOpacity",label:{en:"Shadow opacity (%)"},unit:"%",min:0,max:100,value:40}]}]},{category:"conditions",type:"group",propName:"conditionGroup",children:[{propName:"recurrence",label:{en:'Enter the minimum number of views or purchases to display the widget. "always" means that it will always be displayed.',fr:"Entrez le minimum de pages vues ou de produits achetés afin d'afficher le widget. \"always\" signifie que vous voulez afficher le widget même si vous n'avez aucune conversion.",de:'Geben Sie die minimale Anzahl von gesehenen Seiten oder Käufen an, nach der das Widget angezeigt werden soll. "always" bedeutet, dass das Widget immer angezeigt wird.',es:'Introduce el número de visitas o compras mínimo para mostrar el widget. "always" significa que siempre se mostrará.'},type:"text",value:"always"},{type:"separator"},{propName:"fadeOut",label:{en:"Hide content",fr:"Cacher le contenu",de:"Inhalt ausblenden",es:"Ocultar contenido"},type:"select",value:0,options:[{label:{en:"Never hide it",fr:"Jamais",de:"Nie ausblenden",es:"No ocultar nunca"},value:0},{label:{en:"Automatically fade out after 5 seconds",fr:"Cacher le contenu après 5 secondes",de:"Automatisches Fade-Out nach 5 Sekunden.",es:"Desaparecer automáticamente después de 5 segundos."},value:5e3},{label:{en:"Automatically fade out after 6 seconds",fr:"Cacher le contenu après 6 secondes",de:"Automatisches Fade-Out nach 6 Sekunden.",es:"Desaparecer automáticamente después de 6 segundos."},value:6e3},{label:{en:"Automatically fade out after 7 seconds",fr:"Cacher le contenu après 7 secondes",de:"Automatisches Fade-Out nach 7 Sekunden.",es:"Desaparecer automáticamente después de 7 segundos."},value:7e3},{label:{en:"Automatically fade out after 8 seconds",fr:"Cacher le contenu après 8 secondes",de:"Automatisches Fade-Out nach 8 Sekunden.",es:"Desaparecer automáticamente después de 8 segundos."},value:8e3},{label:{en:"Automatically fade out after 9 seconds",fr:"Cacher le contenu après 9 secondes",de:"Automatisches Fade-Out nach 9 Sekunden.",es:"Desaparecer automáticamente después de 9 segundos."},value:9e3},{label:{en:"Automatically fade out after 10 seconds",fr:"Cacher le contenu après 10 secondes",de:"Automatisches Fade-Out nach 10 Sekunden.",es:"Desaparecer automáticamente después de 10 segundos."},value:1e4}]},{type:"separator"}]}]}); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=function(e){var t=Object.prototype.hasOwnProperty;function n(e,r){return Array.isArray(e)?function(e,t){for(var r,i="",a="",s=Array.isArray(t),l=0;l<e.length;l++)(r=n(e[l]))&&(s&&t[l]&&(r=o(r)),i=i+a+r,a=" ");return i}(e,r):e&&"object"==typeof e?function(e){var n="",r="";for(var i in e)i&&e[i]&&t.call(e,i)&&(n=n+r+i,r=" ");return n}(e):e||""}function r(e){if(!e)return"";if("object"==typeof e){var n="";for(var r in e)t.call(e,r)&&(n=n+r+":"+e[r]+";");return n}return e+""}function i(e,t,n,r){return!1!==t&&null!=t&&(t||"class"!==e&&"style"!==e)?!0===t?" "+(r?e:e+'="'+e+'"'):("function"==typeof t.toJSON&&(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||-1===t.indexOf('"'))?(n&&(t=o(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"'")+"'"):""}e.merge=function e(t,n){if(1===arguments.length){for(var i=t[0],a=1;a<t.length;a++)i=e(i,t[a]);return i}for(var o in n)if("class"===o){var s=t[o]||[];t[o]=(Array.isArray(s)?s:[s]).concat(n[o]||[])}else if("style"===o){var s=r(t[o]);s=s&&";"!==s[s.length-1]?s+";":s;var l=r(n[o]);l=l&&";"!==l[l.length-1]?l+";":l,t[o]=s+l}else t[o]=n[o];return t},e.classes=n,e.style=r,e.attr=i,e.attrs=function(e,a){var o="";for(var s in e)if(t.call(e,s)){var l=e[s];if("class"===s){l=n(l),o=i(s,l,!1,a)+o;continue}"style"===s&&(l=r(l)),o+=i(s,l,!1,a)}return o};var a=/["&<>]/;function o(e){var t=""+e,n=a.exec(t);if(!n)return e;var r,i,o,s="";for(r=n.index,i=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;case 62:o=">";break;default:continue}i!==r&&(s+=t.substring(i,r)),i=r+1,s+=o}return i!==r?s+t.substring(i,r):s}return e.escape=o,e.rethrow=function e(t,n,r,i){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&n||i))throw t.message+=" on line "+r,t;try{i=i||require("fs").readFileSync(n,"utf8")}catch(n){e(t,null,r)}var a=3,o=i.split("\n"),s=Math.max(r-a,0),l=Math.min(o.length,r+a);var a=o.slice(s,l).map(function(e,t){var n=t+s+1;return(n==r?" > ":" ")+n+"| "+e}).join("\n");t.path=n;t.message=(n||"Pug")+":"+r+"\n"+a+"\n\n"+t.message;throw t},e}({});function n(e){var n,r="";try{var i={},a=e||{};(function(e,i,a){r=(r+='<div class="abtasty-widget-relative-wrapper">')+'<div class="abtasty-wiget__close"'+t.attr("style",t.style(e),!0,!0)+">",r+="×</div>",r=(r=(r+='<div class="abtasty-widget-relative-container">')+'<div class="abtasty-widget-text abtasty-wiget__prevent-transform"'+t.attr("style",t.style(a),!0,!0)+">")+(null==(n=i)?"":n)+"</div></div></div>"}).call(this,"closeStyle"in a?a.closeStyle:"undefined"!=typeof closeStyle?closeStyle:void 0,"content"in a?a.content:"undefined"!=typeof content?content:void 0,"paddingOveruse"in a?a.paddingOveruse:"undefined"!=typeof paddingOveruse?paddingOveruse:void 0)}catch(e){t.rethrow(e,void 0,void 0,i[void 0])}return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(".abtasty-widget-base{width:300px;position:fixed;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:3px;z-index:999999998}.abtasty-widget-top{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:0;margin-top:66px;left:50%}.abtasty-widget-text{padding:10% 0;position:relative;max-width:100%;color:#fff;font-size:14px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.abtasty-widget-bottom{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);bottom:0;left:50%}.abtasty-widget-left{left:0}.abtasty-widget-left,.abtasty-widget-right{-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%}.abtasty-widget-right{right:0;margin-right:80px}.abtasty-widget-relative-wrapper{position:relative;max-width:100%}.abtasty-widget-relative-container{max-width:100%;padding:20px;position:relative}.abtasty-widget-content{font-size:12px;width:300px;color:#fff;position:relative}.abtasty-wiget__prevent-transform>*{text-transform:none!important}.abtasty-wiget__close{position:absolute;top:0;right:0;width:14px;height:14px;color:#fff;line-height:14px;text-align:center;vertical-align:middle;z-index:99999999999999;cursor:pointer;font-size:14px;font-weight:300;border:0;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important}.abtasty-wiget__close:hover{color:#000}");var r=["fr","en","de","es"],i={1:{fr:"Ce produit a été acheté !purchaseQty! fois depuis ",en:"This item has been purchased !purchaseQty! times in the last ",de:"Dieses Produkt wurde in den letzten !purchaseQty! Stunden ",es:"Este producto se ha comprado !purchaseQty! veces en las últimas "},2:{fr:"Cette page a été vue !views! fois depuis ",en:"This page has been viewed !views! times in the last ",de:"Diese Seite wurde in den letzten !views! Stunden ",es:"Esta página se ha visto !views! veces en las últimas "}},a=DATA,o=a.stickTo,s=a.positionSelector,l=a.viewInterval,c=a.typeOfContent,d=a.manualInput,u=void 0!==window.ABTastyEditor,f=function(){try{return window.self!==window.top}catch(e){return!0}},p=function(){if(1!==c||window.ABTastyProductKey||u){var e={count_3hours:"3",count_12hours:"12",count_24hours:"24",count_72hours:"3",count_168hours:"7"},t={1:"i",2:"pv"},a=navigator.language.substr(0,2)||"en",p=function(e){return r.indexOf(e)>-1}(a)?a:"en",y=function(){return d||(DATA.siteTarget,""+i[c][p]+e[l])},v=document.createElement("div");v.className="abtasty-widget-base "+(o?"":DATA.layout),v.style.marginBottom=-50+DATA.marginBottom+"px",v.style.padding=(DATA.borderRadius?DATA.borderRadius/Math.PI:0)+"px",v.style.marginTop=DATA.marginTop+"px",v.style.marginLeft=DATA.marginLeft+"px",v.style.marginRight=DATA.marginRight+"px",v.style.textAlign=DATA.textAlign,v.style.borderColor=DATA.borderColor,v.style.borderStyle="solid",v.style.whiteSpace="initial",v.style.position=o?"absolute":"fixed",v.style.borderRadius=DATA.borderRadius+"px",v.style.borderWidth=DATA.borderWidth+"px",v.style.backgroundColor=DATA.backgroundColor,v.style.opacity=""+(1-.01*DATA.backgroundOpacity),v.style.boxShadow=DATA.dropShadow?"5px 3px rgba(0,0,0,"+(1-.01*DATA.shadowOpacity)+")":"none",v.dataset.testId=TEST_ID;var g={padding:DATA.contentPadding+"px"},h=function(){o?document.querySelector(""+o).insertAdjacentHTML(s,(new XMLSerializer).serializeToString(v)):document.body.appendChild(v);var e=function(){v.className="",v.style.display="none"};v.addEventListener("click",function(t){"abtasty-wiget__close"===t.target.className&&e()},!1),DATA.fadeOut&&!u&&setTimeout(e,DATA.fadeOut)},w={1:function(){return window.ABTastyProductKey},2:function(){return encodeURIComponent(""+window.location.pathname+window.location.search)}};if(f()){var m=y().replace("!purchaseQty!","0 (example)").replace("!views!","0 (example)").replace("!period!",e[l]+" ");v.innerHTML=n({content:m,paddingOveruse:g}),h()}else fetch("https://stress-widget-api-dot-prod-bq-unicollect-211188.appspot.com/clients/"+window.ABTasty.accountSettings.identifier+"/metrics/"+t[c]+"?key="+w[c]()).then(function(e){return e.ok?e.json():new Error("Network response was not ok.")}).then(function(t){var r,i=y().replace("!purchaseQty!",""+t[l]).replace("!views!",""+t[l]).replace("!period!",""+e[l]);v.style.display=(r=t[l],void 0===DATA.recurrence||null===DATA.recurrence||u?"visible":"ALWAYS"===DATA.recurrence.toString().toUpperCase()||DATA.recurrence<=r||0===parseInt(DATA.recurrence,10)?"visible":"none"),v.innerHTML=n({content:i,paddingOveruse:g}),h()}).catch(function(){console.log("Failed to fetch statistics from server.")})}else console.error("ABTasty_Log: Error during widget api execution, ABTastyProductKey is undefined")};!function(t,n,r){var i,a=0;try{document.querySelector(t)}catch(n){var o="Selector «"+t+"» not valid.";return e(o),"function"==typeof r&&r(o)}i=setTimeout(function(){clearInterval(a);var n="Can't find element «"+t+"».";return e(n),"function"==typeof r&&r(n)},1e4),a=setInterval(function(){var e=document.querySelector(t);if(null!==e)return clearTimeout(i),clearInterval(a),"function"==typeof n&&n(e)},200)}("body",function(){var e=null;null!==document.querySelector(".abtasty-widget-base")||f()&&!u||(e=setInterval(function(){(1!==c||window.ABTastyProductKey||u)&&(clearInterval(e),p())},600))})}(); | ||
!function(){"use strict";var e=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];e.unshift("[AB Tasty Widget] "+PACKAGE+":"),console.log.apply(console,e)},t=function(e){var t=Object.prototype.hasOwnProperty;function n(e,r){return Array.isArray(e)?function(e,t){for(var r,a="",i="",s=Array.isArray(t),c=0;c<e.length;c++)(r=n(e[c]))&&(s&&t[c]&&(r=o(r)),a=a+i+r,i=" ");return a}(e,r):e&&"object"==typeof e?function(e){var n="",r="";for(var a in e)a&&e[a]&&t.call(e,a)&&(n=n+r+a,r=" ");return n}(e):e||""}function r(e){if(!e)return"";if("object"==typeof e){var n="";for(var r in e)t.call(e,r)&&(n=n+r+":"+e[r]+";");return n}return e+""}function a(e,t,n,r){return!1!==t&&null!=t&&(t||"class"!==e&&"style"!==e)?!0===t?" "+(r?e:e+'="'+e+'"'):("function"==typeof t.toJSON&&(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||-1===t.indexOf('"'))?(n&&(t=o(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"'")+"'"):""}e.merge=function e(t,n){if(1===arguments.length){for(var a=t[0],i=1;i<t.length;i++)a=e(a,t[i]);return a}for(var o in n)if("class"===o){var s=t[o]||[];t[o]=(Array.isArray(s)?s:[s]).concat(n[o]||[])}else if("style"===o){var s=r(t[o]);s=s&&";"!==s[s.length-1]?s+";":s;var c=r(n[o]);c=c&&";"!==c[c.length-1]?c+";":c,t[o]=s+c}else t[o]=n[o];return t},e.classes=n,e.style=r,e.attr=a,e.attrs=function(e,i){var o="";for(var s in e)if(t.call(e,s)){var c=e[s];if("class"===s){c=n(c),o=a(s,c,!1,i)+o;continue}"style"===s&&(c=r(c)),o+=a(s,c,!1,i)}return o};var i=/["&<>]/;function o(e){var t=""+e,n=i.exec(t);if(!n)return e;var r,a,o,s="";for(r=n.index,a=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;case 62:o=">";break;default:continue}a!==r&&(s+=t.substring(a,r)),a=r+1,s+=o}return a!==r?s+t.substring(a,r):s}return e.escape=o,e.rethrow=function e(t,n,r,a){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&n||a))throw t.message+=" on line "+r,t;try{a=a||require("fs").readFileSync(n,"utf8")}catch(n){e(t,null,r)}var i=3,o=a.split("\n"),s=Math.max(r-i,0),c=Math.min(o.length,r+i);var i=o.slice(s,c).map(function(e,t){var n=t+s+1;return(n==r?" > ":" ")+n+"| "+e}).join("\n");t.path=n;t.message=(n||"Pug")+":"+r+"\n"+i+"\n\n"+t.message;throw t},e}({});function n(e){var n,r="";try{var a={},i=e||{};(function(e,a,i){r=(r+='<div class="abtasty-widget-relative-wrapper">')+'<div class="abtasty-wiget__close"'+t.attr("style",t.style(e),!0,!0)+">",r+="×</div>",r=(r=(r+='<div class="abtasty-widget-relative-container">')+'<div class="abtasty-widget-text abtasty-wiget__prevent-transform"'+t.attr("style",t.style(i),!0,!0)+">")+(null==(n=a)?"":n)+"</div></div></div>"}).call(this,"closeStyle"in i?i.closeStyle:"undefined"!=typeof closeStyle?closeStyle:void 0,"content"in i?i.content:"undefined"!=typeof content?content:void 0,"paddingOveruse"in i?i.paddingOveruse:"undefined"!=typeof paddingOveruse?paddingOveruse:void 0)}catch(e){t.rethrow(e,void 0,void 0,a[void 0])}return r}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===n&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}(".abtasty-widget-base{width:300px;position:fixed;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:3px;z-index:999999998}.abtasty-widget-top{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:0;margin-top:66px;left:50%}.abtasty-widget-text{padding:10% 0;position:relative;max-width:100%;color:#fff;font-size:14px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.abtasty-widget-bottom{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);bottom:0;left:50%}.abtasty-widget-left{left:0}.abtasty-widget-left,.abtasty-widget-right{-webkit-transform:translateY(-50%);transform:translateY(-50%);top:50%}.abtasty-widget-right{right:0;margin-right:80px}.abtasty-widget-relative-wrapper{position:relative;max-width:100%}.abtasty-widget-relative-container{max-width:100%;padding:20px;position:relative}.abtasty-widget-content{font-size:12px;width:300px;color:#fff;position:relative}.abtasty-wiget__prevent-transform>*{text-transform:none!important}.abtasty-wiget__close{position:absolute;top:0;right:0;width:14px;height:14px;color:#fff;line-height:14px;text-align:center;vertical-align:middle;z-index:99999999999999;cursor:pointer;font-size:14px;font-weight:300;border:0;font-family:Helvetica Neue,Helvetica,Arial,sans-serif!important}.abtasty-wiget__close:hover{color:#000}");var r=["fr","en","de","es"],a={1:{fr:"Ce produit a été acheté !purchaseQty! fois depuis ",en:"This item has been purchased !purchaseQty! times in the last ",de:"Dieses Produkt wurde in den letzten !purchaseQty! Stunden ",es:"Este producto se ha comprado !purchaseQty! veces en las últimas "},2:{fr:"Cette page a été vue !views! fois depuis ",en:"This page has been viewed !views! times in the last ",de:"Diese Seite wurde in den letzten !views! Stunden ",es:"Esta página se ha visto !views! veces en las últimas "}},i={fr:function(e){return"count_72hours"===e||"count_168hours"===e?" jours":" heures"},en:function(e){return"count_72hours"===e||"count_168hours"===e?" days":" hours"},de:function(e){return"count_72hours"===e||"count_168hours"===e?" Tagen":" Stunden"},es:function(e){return"count_72hours"===e||"count_168hours"===e?" días":" horas"}},o=DATA,s=o.stickTo,c=o.positionSelector,l=o.viewInterval,d=o.typeOfContent,u=o.manualInput,f=void 0!==window.ABTastyEditor,p=function(){try{return window.self!==window.top}catch(e){return!0}},y=function(){if(1!==d||window.ABTastyProductKey||f){var e={count_3hours:"3",count_12hours:"12",count_24hours:"24",count_72hours:"3",count_168hours:"7"},t={1:"i",2:"pv"},o=navigator.language.substr(0,2)||"en",y=function(e){return r.indexOf(e)>-1}(o)?o:"en",g=function(){return u||(DATA.siteTarget,""+a[d][y]+e[l]+i[y](l))},v=document.createElement("div");v.className="abtasty-widget-base "+(s?"":DATA.layout),v.id="abtasty-widget-base",v.style.display="block !important",v.style.marginBottom=-50+DATA.marginBottom+"px",v.style.padding=(DATA.borderRadius?DATA.borderRadius/Math.PI:0)+"px",v.style.marginTop=DATA.marginTop+"px",v.style.marginLeft=DATA.marginLeft+"px",v.style.marginRight=DATA.marginRight+"px",v.style.textAlign=DATA.textAlign,v.style.borderColor=DATA.borderColor,v.style.borderStyle="solid",v.style.whiteSpace="initial",v.style.position=s?"absolute":"fixed",v.style.borderRadius=DATA.borderRadius+"px",v.style.borderWidth=DATA.borderWidth+"px",v.style.backgroundColor=DATA.backgroundColor,v.style.opacity=""+(1-.01*DATA.backgroundOpacity),v.style.boxShadow=DATA.dropShadow?"5px 3px rgba(0,0,0,"+(1-.01*DATA.shadowOpacity)+")":"none",v.dataset.testId=TEST_ID;var h={padding:DATA.contentPadding+"px"};DATA.fadeOut&&!f&&setTimeout(function(){v.className="",v.style.display="none"},DATA.fadeOut);var w=function(){var e;s?document.querySelector(""+s).insertAdjacentHTML(c,(new XMLSerializer).serializeToString(v)):document.body.appendChild(v),(e=document.getElementById("abtasty-widget-base")).addEventListener("click",function(t){"abtasty-wiget__close"===t.target.className&&(e.className="",e.style.display="none")},!1)},m={1:function(){return window.ABTastyProductKey},2:function(){return encodeURIComponent(""+window.location.pathname+window.location.search)}};if(p()){var A=g().replace("!purchaseQty!","0 (example)").replace("!views!","0 (example)").replace("!period!",e[l]+" ");v.innerHTML=n({content:A,paddingOveruse:h}),w()}else fetch("https://stress-widget-api-dot-prod-bq-unicollect-211188.appspot.com/clients/"+window.ABTasty.accountSettings.identifier+"/metrics/"+t[d]+"?key="+m[d]()).then(function(e){return e.ok?e.json():new Error("Network response was not ok.")}).then(function(t){var r,a=g().replace("!purchaseQty!",""+t[l]).replace("!views!",""+t[l]).replace("!period!",""+e[l]);v.style.display=(r=t[l],void 0===DATA.recurrence||null===DATA.recurrence||f?"visible":"ALWAYS"===DATA.recurrence.toString().toUpperCase()||DATA.recurrence<=r||0===parseInt(DATA.recurrence,10)?"visible":"none"),v.innerHTML=n({content:a,paddingOveruse:h}),w()}).catch(function(){console.log("Failed to fetch statistics from server.")})}else console.error("ABTasty_Log: Error during widget api execution, ABTastyProductKey is undefined")};!function(t,n,r){var a,i=0;try{document.querySelector(t)}catch(n){var o="Selector «"+t+"» not valid.";return e(o),"function"==typeof r&&r(o)}a=setTimeout(function(){clearInterval(i);var n="Can't find element «"+t+"».";return e(n),"function"==typeof r&&r(n)},1e4),i=setInterval(function(){var e=document.querySelector(t);if(null!==e)return clearTimeout(a),clearInterval(i),"function"==typeof n&&n(e)},200)}("body",function(){var e=null;null!==document.querySelector(".abtasty-widget-base")||p()&&!f||(e=setInterval(function(){if(1!==d||window.ABTastyProductKey||f){clearInterval(e),y();var t=document.getElementById("abtasty-widget-base");console.log(t),t.addEventListener("click",function(e){console.log(e),"abtasty-wiget__close"===e.target.className&&(t.className="",t.style.display="none")},!1)}},600))})}(); |
{ | ||
"name": "@abtasty/social-proof", | ||
"description": "simple", | ||
"version": "0.1.17", | ||
"version": "0.1.18", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "form": "dist/form.js", |
20999
67