PageSourceSearch

https://www.klinikamopernplatz.de/wp-content/uploads/hummingbird-assets/6c761ad00b5e5643bbc442ebf2f4a74f.js

js klinikamopernplatz.de collected 2026-10-04 15:12:41 UTC 145,599 bytes, 69 lines download raw bytes

1/**handles:swv,contact-form-7,cf7apps-honeypot-refill,wpcf7cf-scripts,bellows,trustindex-loader-js**/
2(()=>{var s={d:(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},a={};function t(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;let s=()=>{let i=new Map;return i.largestIndex=0,i.set=function(t,e){""===t?t=i.largestIndex++:/^[0-9]+$/.test(t)&&(t=parseInt(t),i.largestIndex<=t)&&(i.largestIndex=t+1),Map.prototype.set.call(i,t,e)},i},e=(this.tree=s(),/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i);for(let[t,i]of this.formData){var a=t.match(e);if(a)if(""===a.groups.array)this.tree.set(a.groups.name,i);else{let t=[...a.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map(([t,e])=>e),e=(t.unshift(a.groups.name),t.pop());t.reduce((t,e)=>{var i;return/^[0-9]+$/.test(e)&&(e=parseInt(e)),t.get(e)instanceof Map?t.get(e):(i=s(),t.set(e,i),i)},this.tree).set(e,i)}}}s.r(a),s.d(a,{all:()=>D,any:()=>M,date:()=>f,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>$,maxitems:()=>w,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>j,minitems:()=>v,minlength:()=>g,minnumber:()=>b,number:()=>m,required:()=>e,requiredfile:()=>i,stepnumber:()=>I,tel:()=>p,time:()=>c,url:()=>l}),t.prototype.entries=function(){return this.tree.entries()},t.prototype.get=function(t){return this.tree.get(t)},t.prototype.getAll=function(t){if(!this.has(t))return[];let a=t=>{var e=[];if(t instanceof Map)for(var[i,s]of t)e.push(...a(s));else""!==t&&e.push(t);return e};return a(this.get(t))},t.prototype.has=function(t){return this.tree.has(t)},t.prototype.keys=function(){return this.tree.keys()},t.prototype.values=function(){return this.tree.values()};let o=t;function n({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}let e=function(t){if(0===t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).length)throw new n(this)},i=function(t){if(0===t.getAll(this.field).length)throw new n(this)},r=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;var[t,e]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(t))return!1;if(/\.{2,}/.test(e))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(e))return!1;var e=e.split(".");if(e.length<2)return!1;for(let t of e){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0}))throw new n(this)},l=function(t){var e;if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{try{return-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(new URL(t).protocol.replace(/:$/,""))}catch{return!1}}))throw new n(this)},p=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t="+"+t.replace(/^[+0]+/,"")),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16)))throw new n(this)},m=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))throw new n(this)},f=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{var t;return!!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&(t=new Date(t),!Number.isNaN(t.valueOf()))}))throw new n(this)},c=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{var t=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/),e,i,t;return!!t&&(e=parseInt(t[1]),i=parseInt(t[2]),t=t[3]?parseInt(t[3]):0,0<=e)&&e<=23&&0<=i&&i<=59&&0<=t&&t<=59}))throw new n(this)},d=function(t){if(!t.getAll(this.field).every(e=>e instanceof File&&this.accept?.some(t=>/^\.[a-z0-9]+$/i.test(t)?e.name.toLowerCase().endsWith(t.toLowerCase()):(t=>{var i=[],s=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i),a;if(s){let t=s.groups.toplevel.toLowerCase(),e=s.groups.sub.toLowerCase();for(var[r,o]of((a=new Map).set("jpg|jpeg|jpe","image/jpeg"),a.set("gif","image/gif"),a.set("png","image/png"),a.set("bmp","image/bmp"),a.set("tiff|tif","image/tiff"),a.set("webp","image/webp"),a.set("ico","image/x-icon"),a.set("heic","image/heic"),a.set("asf|asx","video/x-ms-asf"),a.set("wmv","video/x-ms-wmv"),a.set("wmx","video/x-ms-wmx"),a.set("wm","video/x-ms-wm"),a.set("avi","video/avi"),a.set("divx","video/divx"),a.set("flv","video/x-flv"),a.set("mov|qt","video/quicktime"),a.set("mpeg|mpg|mpe","video/mpeg"),a.set("mp4|m4v","video/mp4"),a.set("ogv","video/ogg"),a.set("webm","video/webm"),a.set("mkv","video/x-matroska"),a.set("3gp|3gpp","video/3gpp"),a.set("3g2|3gp2","video/3gpp2"),a.set("txt|asc|c|cc|h|srt","text/plain"),a.set("csv","text/csv"),a.set("tsv","text/tab-separated-values"),a.set("ics","text/calendar"),a.set("rtx","text/richtext"),a.set("css","text/css"),a.set("htm|html","text/html"),a.set("vtt","text/vtt"),a.set("dfxp","application/ttaf+xml"),a.set("mp3|m4a|m4b","audio/mpeg"),a.set("aac","audio/aac"),a.set("ra|ram","audio/x-realaudio"),a.set("wav","audio/wav"),a.set("ogg|oga","audio/ogg"),a.set("flac","audio/flac"),a.set("mid|midi","audio/midi"),a.set("wma","audio/x-ms-wma"),a.set("wax","audio/x-ms-wax"),a.set("mka","audio/x-matroska"),a.set("rtf","application/rtf"),a.set("js","application/javascript"),a.set("pdf","application/pdf"),a.set("swf","application/x-shockwave-flash"),a.set("class","application/java"),a.set("tar","application/x-tar"),a.set("zip","application/zip"),a.set("gz|gzip","application/x-gzip"),a.set("rar","application/rar"),a.set("7z","application/x-7z-compressed"),a.set("exe","application/x-msdownload"),a.set("psd","application/octet-stream"),a.set("xcf","application/octet-stream"),a.set("doc","application/msword"),a.set("pot|pps|ppt","application/vnd.ms-powerpoint"),a.set("wri","application/vnd.ms-write"),a.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),a.set("mdb","application/vnd.ms-access"),a.set("mpp","application/vnd.ms-project"),a.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),a.set("docm","application/vnd.ms-word.document.macroEnabled.12"),a.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),a.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),a.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),a.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),a.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),a.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),a.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),a.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),a.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),a.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),a.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),a.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),a.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),a.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),a.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),a.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),a.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),a.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),a.set("oxps","application/oxps"),a.set("xps","application/vnd.ms-xpsdocument"),a.set("odt","application/vnd.oasis.opendocument.text"),a.set("odp","application/vnd.oasis.opendocument.presentation"),a.set("ods","application/vnd.oasis.opendocument.spreadsheet"),a.set("odg","application/vnd.oasis.opendocument.graphics"),a.set("odc","application/vnd.oasis.opendocument.chart"),a.set("odb","application/vnd.oasis.opendocument.database"),a.set("odf","application/vnd.oasis.opendocument.formula"),a.set("wp|wpd","application/wordperfect"),a.set("key","application/vnd.apple.keynote"),a.set("numbers","application/vnd.apple.numbers"),a.set("pages","application/vnd.apple.pages"),a))("*"===e&&o.startsWith(t+"/")||o===s[0])&&i.push(...r.split("|"))}return i})(t).some(t=>(t="."+t.trim(),e.name.toLowerCase().endsWith(t.toLowerCase()))))))throw new n(this)},h=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(e=>this.accept?.some(t=>e===String(t))))throw new n(this)},u=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>{let e=0===(t=new Date(t).getDay())?7:t;var t;return this.accept?.some(t=>e===parseInt(t))}))throw new n(this)},v=function(t){if(t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).length<parseInt(this.threshold))throw new n(this)},w=function(t){var t=t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t);if(parseInt(this.threshold)<t.length)throw new n(this)},g=function(t){var t=t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t);let e=0;if(t.forEach(t=>{"string"==typeof t&&(e+=t.length)}),0!==e&&e<parseInt(this.threshold))throw new n(this)},x=function(t){var t=t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t);let e=0;if(t.forEach(t=>{"string"==typeof t&&(e+=t.length)}),parseInt(this.threshold)<e)throw new n(this)},b=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>!(parseFloat(t)<parseFloat(this.threshold))))throw new n(this)},y=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>!(parseFloat(this.threshold)<parseFloat(t))))throw new n(this)},A=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold)))throw new n(this)},z=function(t){if(!t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t).every(t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t)))throw new n(this)},j=function(t){var t=t.getAll(this.field);let e=0;if(t.forEach(t=>{t instanceof File&&(e+=t.size)}),e<parseInt(this.threshold))throw new n(this)},$=function(t){var t=t.getAll(this.field);let e=0;if(t.forEach(t=>{t instanceof File&&(e+=t.size)}),parseInt(this.threshold)<e)throw new n(this)},I=function(t){let e=t.getAll(this.field).map(t=>t.trim()).filter(t=>""!==t),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;
2if(!e.every(t=>{var t=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(t).toFixed(6)||"0.000000"===Math.abs(t-s).toFixed(6)}))throw new n(this)},O=({ruleObj:t,options:e})=>{let{rule:i,...s}=t;return"function"==typeof a[i]&&("function"!=typeof a[i].matches||a[i].matches(s,e))},E=({ruleObj:t,formDataTree:e,options:i})=>{var{rule:s}=t;a[s].call(t,e,i)},k=[],F=t=>[...k].reduce((e,i)=>t=>i(t,e),t),D=function(e,i={}){let t=(this.rules??[]).filter(t=>O({ruleObj:t,options:i})),s=F(E);if(!t.every(t=>{try{s({ruleObj:t,formDataTree:e,options:i})}catch(t){if(!(t instanceof n))throw t;if(void 0!==t.error)throw t;return!1}return!0}))throw new n(this)},M=function(e,i={}){let t=(this.rules??[]).filter(t=>O({ruleObj:t,options:i})),s=F(E);if(!t.some(t=>{try{s({ruleObj:t,formDataTree:e,options:i})}catch(t){if(t instanceof n)return!1;throw t}return!0}))throw new n(this)},L;window.swv={validators:a,validate:(t,e,i={})=>{var t=(t.rules??[]).filter(t=>O({ruleObj:t,options:i}));if(!t.length)return new Map;let s=F(E),a=new o(e),r=t.reduce((t,e)=>{try{s({ruleObj:e,formDataTree:a,options:i})}catch(e){if(!(e instanceof n))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t},new Map);for(let t of a.keys())r.has(t)||r.set(t,{validInputs:a.getAll(t)});return r},use:t=>{k.push(t)},...null!=(L=window.swv)?L:{}}})();
3(()=>{let n=window.wp.i18n,i=e=>Math.abs(parseInt(e,10)),c=(e,t,a)=>{var t=new CustomEvent("wpcf7"+t,{bubbles:!0,detail:a});(e="string"==typeof e?document.querySelector(e):e).dispatchEvent(t)},p=(t,e)=>{var a=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]),a=(a.has(e)&&(e=a.get(e)),Array.from(a.values()).includes(e)||(e="custom-"+(e=(e=e.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-"))),t.getAttribute("data-status"));if(t.wpcf7.status=e,t.setAttribute("data-status",e),t.classList.add(e),a&&a!==e){t.classList.remove(a);let e={contactFormId:t.wpcf7.id,pluginVersion:t.wpcf7.pluginVersion,contactFormLocale:t.wpcf7.locale,unitTag:t.wpcf7.unitTag,containerPostId:t.wpcf7.containerPost,status:t.wpcf7.status,prevStatus:a};c(t,"statuschanged",e)}return e},o=e=>{let{root:f,namespace:u="contact-form-7/v1"}=wpcf7.api;return t.reduceRight((t,a)=>e=>a(e,t),e=>{let t,a,{url:r,path:n,endpoint:c,headers:o,body:i,data:s,...l}=e,p=("string"==typeof c&&(t=u.replace(/^\/|\/$/g,""),a=c.replace(/^\//,""),n=a?t+"/"+a:t),"string"==typeof n&&(n=(n=-1!==f.indexOf("?")?n.replace("?","&"):n).replace(/^\//,""),r=f+n),delete(o={Accept:"application/json, */*;q=0.1",...o})["X-WP-Nonce"],s&&(i=JSON.stringify(s),o["Content-Type"]="application/json"),{code:"fetch_error",message:"You are probably offline."}),d={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(r||n||window.location.href,{...l,headers:o,body:i}).then(e=>Promise.resolve(e).then(e=>{if(200<=e.status&&e.status<300)return e;throw e}).then(e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch(()=>{throw d});throw d}),()=>{throw p})})(e)},t=[];function a(o,i={}){let{target:s,scope:l=o,...e}=i;if(void 0!==o.wpcf7?.schema){let t={...o.wpcf7.schema};if(void 0!==s){if(!o.contains(s))return;if(!s.closest(".wpcf7-form-control-wrap[data-name]"))return;if(s.closest(".novalidate"))return}let n=l.querySelectorAll(".wpcf7-form-control-wrap"),c=Array.from(n).reduce((r,e)=>(e.closest(".novalidate")||e.querySelectorAll(":where( input, textarea, select ):enabled").forEach(e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&r.append(e.name,e.value);break;case"select-multiple":for(var t of e.selectedOptions)r.append(e.name,t.value);break;case"file":for(var a of e.files)r.append(e.name,a);break;default:r.append(e.name,e.value)}}),r),new FormData),e=o.getAttribute("data-status");Promise.resolve(p(o,"validating")).then(e=>{if(void 0!==swv){let a=swv.validate(t,c,i);for(let e of n)if(void 0!==e.dataset.name){var r=e.dataset.name;if(a.has(r)){let{error:e,validInputs:t}=a.get(r);f(o,r),void 0!==e&&d(o,r,e,{scope:l}),u(o,r,null!=t?t:[])}if(e.contains(s))break}}}).finally(()=>{p(o,e)})}}o.use=e=>{t.unshift(e)};let d=(e,t,a,r)=>{let{scope:n=e,...c}=null!=r?r:{},o=(e.wpcf7?.unitTag+"-ve-"+t).replaceAll(/[^0-9a-z_-]+/gi,""),i=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);var r;
3(r=document.createElement("li")).setAttribute("id",o),i&&i.id?r.insertAdjacentHTML("beforeend",`<a href="#${i.id}">${a}</a>`):r.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(r),n.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach(e=>{let t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach(e=>{e.setAttribute("aria-invalid","true")}),e.querySelectorAll(".wpcf7-form-control").forEach(e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",e=>{t.setAttribute("style","display: none")}),t.addEventListener("click",e=>{t.setAttribute("style","display: none")}))})})},f=(e,t)=>{var a=(e.wpcf7?.unitTag+"-ve-"+t).replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(".screen-reader-response ul li#"+a)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach(e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach(e=>{e.setAttribute("aria-invalid","false")}),e.querySelectorAll(".wpcf7-form-control").forEach(e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")})})},u=(e,r,n)=>{e.querySelectorAll(`[data-reflection-of="${r}"]`).forEach(a=>{if("output"===a.tagName.toLowerCase()){let t=a;0===n.length&&n.push(t.dataset.default),n.slice(0,1).forEach(e=>{e instanceof File&&(e=e.name),t.textContent=e})}else a.querySelectorAll("output").forEach(e=>{e.hasAttribute("data-default")?0===n.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()}),n.forEach(e=>{e instanceof File&&(e=e.name);var t=document.createElement("output");t.setAttribute("name",r),t.textContent=e,a.appendChild(t)})})};function r(r,e={}){if(wpcf7.blocked)s(r),p(r,"submitting");else{var t=new FormData(r);e.submitter&&e.submitter.name&&t.append(e.submitter.name,e.submitter.value);let a={contactFormId:r.wpcf7.id,pluginVersion:r.wpcf7.pluginVersion,contactFormLocale:r.wpcf7.locale,unitTag:r.wpcf7.unitTag,containerPostId:r.wpcf7.containerPost,status:r.wpcf7.status,inputs:Array.from(t,e=>{var t=e[0],e=e[1];return!t.match(/^_/)&&{name:t,value:e}}).filter(e=>!1!==e),formData:t};o({endpoint:`contact-forms/${r.wpcf7.id}/feedback`,method:"POST",body:t,wpcf7:{endpoint:"feedback",form:r,detail:a}}).then(e=>{var t=p(r,e.status);return a.status=e.status,a.apiResponse=e,["invalid","unaccepted","spam","aborted"].includes(t)?c(r,t,a):["sent","failed"].includes(t)&&c(r,"mail"+t,a),c(r,"submit",a),e}).then(t=>{t.posted_data_hash&&(r.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(r.reset(),r.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach(e=>{d(r,e.field,e.message)}),r.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),r.querySelectorAll(".wpcf7-response-output").forEach(e=>{e.innerText=t.message})}).catch(e=>console.error(e))}}o.use((a,e)=>{if(a.wpcf7&&"feedback"===a.wpcf7.endpoint){let{form:e,detail:t}=a.wpcf7;s(e),c(e,"beforesubmit",t),p(e,"submitting")}return e(a)});let s=t=>{t.querySelectorAll(".wpcf7-form-control-wrap").forEach(e=>{e.dataset.name&&f(t,e.dataset.name)}),t.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",t.querySelectorAll(".wpcf7-response-output").forEach(e=>{e.innerText=""})};function l(t){let e=new FormData(t),a={contactFormId:t.wpcf7.id,pluginVersion:t.wpcf7.pluginVersion,contactFormLocale:t.wpcf7.locale,unitTag:t.wpcf7.unitTag,containerPostId:t.wpcf7.containerPost,status:t.wpcf7.status,inputs:Array.from(e,e=>{var t=e[0],e=e[1];return!t.match(/^_/)&&{name:t,value:e}}).filter(e=>!1!==e),formData:e};o({endpoint:`contact-forms/${t.wpcf7.id}
3/refill`,method:"GET",wpcf7:{endpoint:"refill",form:t,detail:a}}).then(e=>{t.wpcf7.resetOnMailSent?(delete t.wpcf7.resetOnMailSent,p(t,"mail_sent")):p(t,"init"),a.apiResponse=e,c(t,"reset",a)}).catch(e=>console.error(e))}o.use((a,e)=>{if(a.wpcf7&&"refill"===a.wpcf7.endpoint){let{form:e,detail:t}=a.wpcf7;s(e),p(e,"resetting")}return e(a)});let m=(e,r)=>{for(var n in r){let t=r[n],a=(e.querySelectorAll(`input[name="${n}"]`).forEach(e=>{e.value=""}),e.querySelectorAll("img.wpcf7-captcha-"+n.replaceAll(":","")).forEach(e=>{e.setAttribute("src",t)}),/([0-9]+)\.(png|gif|jpeg)$/.exec(t));a&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${n}"]`).forEach(e=>{e.value=a[1]})}},w=(e,n)=>{for(let r in n){let t=n[r][0],a=n[r][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${r}"]`).forEach(e=>{e.querySelector(`input[name="${r}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=t,e.querySelector(`input[name="_wpcf7_quiz_answer_${r}"]`).value=a})}};function h(a){var e=new FormData(a),t,r,n,c=(a.wpcf7={id:i(e.get("_wpcf7")),status:a.getAttribute("data-status"),pluginVersion:e.get("_wpcf7_version"),locale:e.get("_wpcf7_locale"),unitTag:e.get("_wpcf7_unit_tag"),containerPost:i(e.get("_wpcf7_container_post")),parent:a.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(a.wpcf7.id,void 0),a.querySelectorAll(".has-spinner").forEach(e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')}),(n=a).querySelectorAll(".wpcf7-exclusive-checkbox").forEach(e=>{e.addEventListener("change",t=>{var e=t.target.getAttribute("name");n.querySelectorAll(`input[type="checkbox"][name="${e}"]`).forEach(e=>{e!==t.target&&(e.checked=!1)})})}),(r=a).querySelectorAll(".has-free-text").forEach(e=>{let t=e.querySelector("input.wpcf7-free-text"),a=e.querySelector('input[type="checkbox"], input[type="radio"]');t.disabled=!a.checked,r.addEventListener("change",e=>{t.disabled=!a.checked,e.target===a&&a.checked&&t.focus()})}),a.querySelectorAll(".wpcf7-validates-as-url").forEach(a=>{a.addEventListener("change",e=>{let t=a.value.trim();t&&!t.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==t.indexOf(".")&&(t="http://"+(t=t.replace(/^\/+/,""))),a.value=t})}),a);if(c.querySelector(".wpcf7-acceptance")&&!c.classList.contains("wpcf7-acceptance-as-validation")){let t=()=>{let a=!0;c.querySelectorAll(".wpcf7-acceptance").forEach(e=>{var t;a&&!e.classList.contains("optional")&&(t=e.querySelector('input[type="checkbox"]'),e.classList.contains("invert")&&t.checked||!e.classList.contains("invert")&&!t.checked)&&(a=!1)}),c.querySelectorAll(".wpcf7-submit").forEach(e=>{e.disabled=!a})};t(),c.addEventListener("change",e=>{t()}),c.addEventListener("wpcf7reset",e=>{t()})}{var o=a;let n=(e,t)=>{var a=i(e.getAttribute("data-starting-value")),r=i(e.getAttribute("data-maximum-value")),n=i(e.getAttribute("data-minimum-value")),a=e.classList.contains("down")?a-t.value.trim().length:t.value.trim().length;e.setAttribute("data-current-value",a),e.innerText=a,r&&r<t.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),n&&t.value.length<n?e.classList.add("too-short"):e.classList.remove("too-short")},t=r=>{r={init:!1,...r},o.querySelectorAll(".wpcf7-character-count").forEach(t=>{let e=t.getAttribute("data-target-name"),a=o.querySelector(`[name="${e}"]`);a&&(a.value=a.defaultValue,n(t,a),r.init)&&a.addEventListener("keyup",e=>{n(t,a)})})};t({init:!0}),o.addEventListener("wpcf7reset",e=>{t()})}window.addEventListener("load",e=>{wpcf7.cached&&a.reset()}),a.addEventListener("reset",e=>{wpcf7.reset(a)}),a.addEventListener("submit",e=>{wpcf7.submit(a,{submitter:e.submitter}),e.preventDefault()}),a.addEventListener("wpcf7submit",e=>{e.detail.apiResponse.captcha&&m(a,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&w(a,e.detail.apiResponse.quiz)}),a.addEventListener("wpcf7reset",e=>{e.detail.apiResponse.captcha&&m(a,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&w(a,e.detail.apiResponse.quiz)}),a.addEventListener("change",e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(a,{target:e.target})}),a.addEventListener("wpcf7statuschanged",e=>{var e=e.detail.status;
3a.querySelectorAll(".active-on-any").forEach(e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")}),a.querySelectorAll(".inert-on-"+e).forEach(e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")})})}document.addEventListener("DOMContentLoaded",e=>{var t;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:h,submit:r,reset:l,validate:a,schemas:new Map,...null!=(t=wpcf7)?t:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach(e=>{var t=document.createElement("p"),a=(t.setAttribute("class","wpcf7-form-in-wrong-place"),document.createElement("strong")),r=(a.append((0,n.__)("Error:","contact-form-7")),(0,n.__)("This contact form is placed in the wrong place.","contact-form-7"));t.append(a," ",r),e.replaceWith(t)}),document.querySelectorAll(".wpcf7 > form").forEach(e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")});for(let t of wpcf7.schemas.keys())o({endpoint:`contact-forms/${t}/feedback/schema`,method:"GET"}).then(e=>{wpcf7.schemas.set(t,e)})}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")})})();
4(()=>{function o(n,p){n&&p&&"object"==typeof p&&Object.keys(p).forEach(function(e){var t=p[e],o,e,e;t&&t.random_hash&&t.field_name&&(o=n.querySelector('[data-cf7apps-honeypot="'+e+'"]')||n.querySelector(".wpcf7-form-control-wrap."+e+"-wrap"))&&((e=n.querySelector('input[name="'+e+'-random-hash"]'))&&(e.value=t.random_hash),e=o.querySelector('input.wpcf7-form-control[type="text"]'))&&(e.setAttribute("name",t.field_name),e.value="")}
4)}function n(e){e&&e.querySelectorAll("[data-cf7apps-honeypot]").forEach(function(e){var e=e.querySelector('input.wpcf7-form-control[type="text"]'),t;e&&(t=e.getAttribute("value"))&&!e.value&&(e.value=t)})}function p(t){t&&!t.dataset.cf7appsHoneypotBound&&t.querySelector("[data-cf7apps-honeypot]")&&(t.dataset.cf7appsHoneypotBound="1",t.addEventListener("submit",function(){n(t)},!0),t.addEventListener("wpcf7reset",function(e){e.detail&&e.detail.apiResponse&&e.detail.apiResponse.honeypot&&o(t,e.detail.apiResponse.honeypot)}),t.addEventListener("wpcf7submit",function(e){e.detail&&e.detail.apiResponse&&e.detail.apiResponse.honeypot&&o(t,e.detail.apiResponse.honeypot)}))}function e(){if("undefined"!=typeof wpcf7){if("function"==typeof wpcf7.submit&&!wpcf7.__cf7appsHoneypotSubmitWrapped){let o=wpcf7.submit;wpcf7.submit=function(e,t){return e instanceof HTMLFormElement&&n(e),o.call(this,e,t)},wpcf7.__cf7appsHoneypotSubmitWrapped=!0}var e;document.querySelectorAll(".wpcf7 > form").forEach(function(e){var t;p(e),e.querySelector("[data-cf7apps-honeypot]")&&("undefined"!=typeof wpcf7&&wpcf7.cached||"undefined"!=typeof cf7appsHoneypotRefill&&cf7appsHoneypotRefill.forceRefillOnInit)&&"function"==typeof wpcf7.reset&&wpcf7.reset(e)})}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()})();
5let cf7signature_resized=0,wpcf7cf_timeout,wpcf7cf_change_time_ms=100,wpcf7cf_show_animation=(window.wpcf7&&!wpcf7.setStatus&&(wpcf7.setStatus=(e,t)=>{e=e.length?e[0]:e;var i=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"]]),i=(i.has(t)&&(t=i.get(t)),Array.from(i.values()).includes(t)||(t="custom-"+(t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-"))),e.getAttribute("data-status"));return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),i&&i!==t&&e.classList.remove(i),t}),window.wpcf7cf_running_tests&&(document.querySelectorAll('input[name="_wpcf7cf_options"]').forEach(e=>{var t=JSON.parse(e.value);t.settings.animation_intime=0,t.settings.animation_outtime=0,e.value=JSON.stringify(t)}),wpcf7cf_change_time_ms=0),{height:"show",marginTop:"show",marginBottom:"show",paddingTop:"show",paddingBottom:"show"}),wpcf7cf_hide_animation={height:"hide",marginTop:"hide",marginBottom:"hide",paddingTop:"hide",paddingBottom:"hide"},wpcf7cf_show_step_animation={opacity:"show"},wpcf7cf_hide_step_animation={opacity:"hide"},wpcf7cf_change_events="input.wpcf7cf paste.wpcf7cf change.wpcf7cf click.wpcf7cf propertychange.wpcf7cf changedisabledprop.wpcf7cf",wpcf7cf_forms=[],Wpcf7cfForm=function(i){let a=jQuery(i);var e=a.find('input[name="_wpcf7cf_options"]').eq(0);if(!e.length||!e.val())return!1;let n=this,r=(i.addEventListener("submit",function(t){if(window.wpcf7cf_updatingGroups){t.preventDefault(),t.stopImmediatePropagation();let e=()=>{window.wpcf7cf_updatingGroups?requestAnimationFrame(e):(a.off(".wpcf7cf-autosubmit"),i.requestSubmit())};return a.on("submit.wpcf7cf-autosubmit",e=>e.preventDefault()),e(),!1}},!0),i.querySelectorAll("button[type=submit], input[type=submit]")),s=new WeakMap,o=i.classList.contains("submitting");var t,e=(new MutationObserver(()=>{let t=i.classList.contains("submitting");t!==o&&(o=t,r.forEach(e=>{t?(s.set(e,e.disabled),e.disabled=!0,e.classList.add("is-disabled")):(e.disabled=s.get(e)||!1,e.classList.remove("is-disabled"))}))}).observe(i,{attributes:!0,attributeFilter:["class"]}),JSON.parse(e.val()));n.$form=a,n.formElement=i,n.$input_hidden_group_fields=a.find('[name="_wpcf7cf_hidden_group_fields"]'),n.$input_hidden_groups=a.find('[name="_wpcf7cf_hidden_groups"]'),n.$input_visible_groups=a.find('[name="_wpcf7cf_visible_groups"]'),n.$input_repeaters=a.find('[name="_wpcf7cf_repeaters"]'),n.$input_steps=a.find('[name="_wpcf7cf_steps"]'),n.unit_tag=a.closest(".wpcf7").attr("id"),n.conditions=e.conditions,n.simpleDom=null,n.reloadSimpleDom=function(){n.simpleDom=wpcf7cf.get_simplified_dom_model(n.formElement)},n.updateSimpleDom=function(){n.simpleDom||n.reloadSimpleDom();var e=Object.values(n.simpleDom).filter(e=>"input"===e.type),t;let i=[...new FormData(n.formElement).entries()].map(e=>[e[0],e[1].name??e[1]]);var a=Array.from(n.formElement.querySelectorAll("button"),e=>[e.name,e.value]);
5i=i.concat(a),e.forEach(e=>{var t=n.getNewDomValueIfChanged(e,i);null!==t&&(n.simpleDom[e.name].val=t)})},n.isDomMatch=function(e,t){let i=e.name;var e=e.val,a;return t.filter(e=>e[0]===i).map(e=>e[1]).join("|")===e.join("|")},n.getNewDomValueIfChanged=function(e,t){let i=e.name;var e=e.val,t=t.filter(e=>e[0]===i).map(e=>e[1]);return t.join("|")===e.join("|")?null:t},n.get=function(e){return jQuery(e,n.$form)},n.getFieldByName=function(e){return n.simpleDom[e]||n.simpleDom[e+"[]"]};for(let e=0;e<n.conditions.length;e++){var p=n.conditions[e];"and_rules"in p||(p.and_rules=[{if_field:p.if_field,if_value:p.if_value,operator:p.operator}])}n.initial_conditions=n.conditions,n.settings=e.settings,n.$groups=jQuery(),n.repeaters=[],n.multistep=null,n.fields=[],n.settings.animation_intime=parseInt(n.settings.animation_intime),n.settings.animation_outtime=parseInt(n.settings.animation_outtime),"no"===n.settings.animation&&(n.settings.animation_intime=0,n.settings.animation_outtime=0),n.updateGroups(),n.updateEventListeners(),n.displayFields(),n.$form.on("reset.wpcf7cf",n,function(e){let t=e.data;setTimeout(function(){t.reloadSimpleDom(),t.displayFields(),t.resetRepeaters(),null!=t.multistep&&t.multistep.moveToStep(1,!1),setTimeout(function(){t.$form.hasClass("sent")&&jQuery(".wpcf7-response-output",t.$form)[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},400)},200)})};Wpcf7cfForm.prototype.resetRepeaters=function(){var e;this.repeaters.forEach(e=>{e.updateSubs(e.params.$repeater.initial_subs)})},Wpcf7cfForm.prototype.displayFields=function(){var t=this,i=this.conditions,e=this.settings,a,n;if(0===cf7signature_resized&&"undefined"!=typeof signatures&&signatures.constructor===Array&&0<signatures.length)for(let e=0;e<signatures.length;e++){0===signatures[e].canvas.width&&(a=jQuery(".wpcf7-form-control-signature-body>canvas"),n=jQuery(".wpcf7-form-control-signature-wrap"),a.eq(e).attr("width",n.width()),a.eq(e).attr("height",n.height()),cf7signature_resized=1)}t.$groups.addClass("wpcf7cf-hidden novalidate");for(let e=0;e<i.length;e++){var r=i[e],s;window.wpcf7cf.should_group_be_shown(r,t)&&t.get('[data-id="'+r.then_field+'"]').removeClass("wpcf7cf-hidden novalidate")}let o=e.animation_intime,p=e.animation_outtime;t.$groups.each(function(e){var t=jQuery(this),i;t.is(":animated")&&t.finish(),"none"!==t.css("display")||t.hasClass("wpcf7cf-hidden")?"none"!==t.css("display")&&t.hasClass("wpcf7cf-hidden")&&(void 0!==t.attr("data-clear_on_hide")&&((i=jQuery(":input",t).not(":button, :submit, :reset, :hidden")).each(function(){var e=jQuery(this);e.val(this.defaultValue),e.prop("checked",this.defaultChecked)}),jQuery("option",t).each(function(){this.selected=this.defaultSelected}),jQuery("select",t).each(function(){var e=jQuery(this);null===e.val()&&e.val(jQuery("option:first",e).val())}),i.each(function(){this.dispatchEvent(new Event("change",{bubbles:!0}))})),("SPAN"===t.prop("tagName")?t.hide():t.animate(wpcf7cf_hide_animation,p)).trigger("wpcf7cf_hide_group")):(("SPAN"===t.prop("tagName")?t.show():t.animate(wpcf7cf_show_animation,o)).trigger("wpcf7cf_show_group"),void 0!==t.attr("data-disable_on_hide")&&(t.find(":input").prop("disabled",!1).trigger("changedisabledprop.wpcf7cf"),t.find(".wpcf7-form-control-wrap").removeClass("wpcf7cf-disabled")))}),t.updateHiddenFields(),t.updateSummaryFields()},Wpcf7cfForm.prototype.updateSummaryFields=function(){var e=this;let t=e.get(".wpcf7cf-summary");if(0!=t.length&&t.is(":visible")){let a=new FormData;var i=e.$form.serializeArray();jQuery.each(i,function(e,t){a.append(t.name,t.value)}),jQuery.each(e.$form.find('input[type="file"]'),function(e,t){if(!t.files.length)return!0;var i=t.name;a.append(i,new Blob,Array.from(t.files).map(e=>e.name).join(", "))}),jQuery.ajax({url:wpcf7cf_global_settings.ajaxurl+"?action=wpcf7cf_get_summary",type:"POST",data:a,processData:!1,contentType:!1,dataType:"json",success:function(e){t.html(e.summaryHtml)}})}},Wpcf7cfForm.prototype.updateHiddenFields=function(){let t=this,i=[],a=[],n=[];return t.$groups.each(function(){var e=jQuery(this);e.hasClass("wpcf7cf-hidden")?(a.push(e.attr("data-id")),void 0!==e.attr("data-disable_on_hide")?(e.find("input,select,textarea").each(function(){var e=jQuery(this);e.prop("disabled")||e.prop("disabled",!0).trigger("changedisabledprop.wpcf7cf"),0===t.$form.find(`[data-class="wpcf7cf_group"]:not(.wpcf7cf-hidden) [name='${e.attr("name")}']`).length&&i.push(e.attr("name"))}),e.find(".wpcf7-form-control-wrap").addClass("wpcf7cf-disabled")):e.find("input,select,textarea").each(function(){i.push(jQuery(this).attr("name"))})):n.push(e.attr("data-id"))}),t.hidden_fields=i,t.hidden_groups=a,t.visible_groups=n,t.$input_hidden_group_fields.val(JSON.stringify(i)),t.$input_hidden_groups.val(JSON.stringify(a)),t.$input_visible_groups.val(JSON.stringify(n)),!0},Wpcf7cfForm.prototype.updateGroups=function(){var e=this;e.$groups=e.$form.find('[data-class="wpcf7cf_group"]'),e.$groups.height("auto"),e.conditions=window.wpcf7cf.get_nested_conditions(e)},Wpcf7cfForm.prototype.updateEventListeners=function(){var e=this;e.get("input, select, textarea, button").not(".wpcf7cf_add, .wpcf7cf_remove").off(wpcf7cf_change_events).on(wpcf7cf_change_events,e,function(e){window.wpcf7cf_updatingGroups=!0;let t=e.data;clearTimeout(wpcf7cf_timeout),wpcf7cf_timeout=setTimeout(function(){window.wpcf7cf.updateMultistepState(t.multistep),t.updateSimpleDom(),t.dis
5playFields(),window.wpcf7cf_updatingGroups=!1},wpcf7cf_change_time_ms)})},window.wpcf7cf={hideGroup:function(e,t){},showGroup:function(e,t){},updateRepeaterSubHTML:function(e,t,i,a){let n=t.split("__"),r=(n.shift(),i.split("__")),s=(r.shift(),e);if(n&&r&&n.length===a.length&&r.length===a.length){var o=a.map((e,t)=>({[e.split("__")[0]]:[n[t],r[t]]}));let i=o.length;var p=n.map((e,t)=>["__"+n.slice(0,i-t).join("__"),"__"+r.slice(0,i-t).join("__")]);for(let e=0;e<i;e++){var c=Object.keys(o[e])[0],f=o[e][c][0],u=o[e][c][1];p.push([`<span class="wpcf7cf-index wpcf7cf__${c}">${f}<\\/span>`,`<span class="wpcf7cf-index wpcf7cf__${c}">${u}</span>`])}p.forEach(([e,t])=>{s=s.replace(new RegExp(e,"g"),t)})}return s},initForm:function(e){e.each(function(){let t=this;t.classList.contains("wpcf7-form")&&!wpcf7cf_forms.some(e=>e.$form.get(0)===t)&&wpcf7cf_forms.push(new Wpcf7cfForm(t))})},getWpcf7cfForm:function(t){var e=wpcf7cf_forms.filter(e=>e.$form.get(0)===t.get(0));return!!e.length&&e[0]},get_nested_conditions:function(e){var a=e.initial_conditions,n=(e.reloadSimpleDom(),Object.values(e.simpleDom).filter(function(e,t){return"group"===e.type}));let r=[];for(let t=0;t<n.length;t++){let i=n[t],e=a.filter(function(e,t){return e.then_field===i.original_name});e=e.map(function(e,t){return{then_field:i.name,and_rules:e.and_rules.map(function(e,t){return{if_field:e.if_field+i.suffix,if_value:e.if_value,operator:e.operator}})}}),r=r.concat(e)}return r},get_simplified_dom_model:function(e,t={},i=[],a=[]){var n=e.classList&&e.classList.contains("wpcf7cf_repeater")?"repeater":"wpcf7cf_group"==e.dataset.class?"group":"wpcf7cf_step"==e.className?"step":!!e.hasAttribute("name")&&"input";let r=[...a],s=[...i];if(n){var o="input"===n?e.getAttribute("name"):e.dataset.id;if("repeater"===n&&r.push(o),"group"===n&&s.push(o),"_wpcf7"===o.substring(0,6))return{};var p="repeater"===n||"group"===n?e.dataset.orig_data_id:"input"===n&&e.getAttribute("data-orig_name")||o,c=o.replace("[]",""),f=p.replace("[]",""),u="step"===n?[e.dataset.id.substring(5)]:[],c=c.replace(f,"");if(t[o]||(t[o]={name:o,type:n,original_name:p,suffix:c,val:u,parentGroups:i,parentRepeaters:a}),"input"===n){if(("checkbox"===e.type||"radio"===e.type)&&!e.checked)return{};e.multiple&&e.options?t[o].val=Object.values(e.options).filter(e=>e.selected).map(e=>e.value):t[o].val.push(e.value)}}var l,f=Object.getOwnPropertyDescriptor(Element.prototype,"children").get.call(e);return Array.from(f).forEach(e=>{var e=wpcf7cf.get_simplified_dom_model(e,t,s,r);t={...e,...t}}),t},updateMultistepState:function(t){if(null!=t&&!t.form.$form.hasClass("submitting")){var e={currentStep:t.currentStep,numSteps:t.numSteps,fieldsInCurrentStep:t.getFieldsInStep(t.currentStep)},e=(t.form.$input_steps.val(JSON.stringify(e)),t.$btn_prev.removeClass("disabled").attr("disabled",!1),t.$btn_next.removeClass("disabled").attr("disabled",!1),t.currentStep==t.numSteps&&t.$btn_next.addClass("disabled").attr("disabled",!0),1==t.currentStep&&t.$btn_prev.addClass("disabled").attr("disabled",!0),t.$steps.eq(t.currentStep-1)),i=e.attr("data-prev-button-text"),e=e.attr("data-next-button-text"),i=(void 0!==i&&t.$btn_prev.text(i),void 0!==e&&t.$btn_next.text(e),t.form.$form.find('input[type="submit"]:last').eq(0)),e=t.form.$form.find(".wpcf7-spinner").eq(0),a=(i.detach().prependTo(t.$btn_next.parent()),e.detach().prependTo(t.$btn_next.parent()),(t.currentStep==t.numSteps?(t.$btn_next.hide(),i):(i.hide(),t.$btn_next)).show(),t.$dots.find(".dot"));a.removeClass("active").removeClass("completed");for(let e=1;e<=t.numSteps;e++)e<t.currentStep?a.eq(e-1).addClass("completed"):e==t.currentStep&&a.eq(e-1).addClass("active")}},should_group_be_shown:function(t,i){let a=!0,n=!1;for(let e=0;e<t.and_rules.length;e++){var r=!1,s=t.and_rules[e],o=i.getFieldByName(s.if_field),p,s,s,c,r;o&&(n=!0,p=s.if_value,c="function"===(s="<"===(s=">"===(s="≥"===(s="≤"===(s=s.operator)?"less than or equals":s)?"greater than or equals":s)?"greater than":s)?"less than":s)&&jQuery(`[name="${o.name}"]`).eq(0),r=this.isConditionTrue(o.val,s,p,c),a=a&&r)}return a&&n},isConditionTrue(t,i,a="",e=jQuery()){let n=!1;var r=0===(t=Array.isArray(t)?t:[t]).length||t.every(e=>!e&&0!==e);if("equals"===i&&""===a&&r)return!0;
5if("not equals"===i&&""===a&&r)return!1;r?"is empty"===i&&(n=!0):"not empty"===i&&(n=!0);var s=isFinite(parseFloat(a))?parseFloat(a):NaN;"not equals"!==i&&"not equals (regex)"!==i||(n=!0),"function"===i&&"function"==typeof window[a]&&window[a](e)&&(n=!0);let o=/.*/i;var p=!0;if("equals (regex)"===i||"not equals (regex)"===i)try{o=new RegExp(a,"i")}catch(e){}for(let e=0;e<t.length;e++){var c=t[e],f=isFinite(parseFloat(c))?parseFloat(c):NaN,u=!isNaN(f)&&!isNaN(s);if("equals"===i&&c===a||"equals (regex)"===i&&o.test(c)||"greater than"===i&&u&&s<f||"less than"===i&&u&&f<s||"greater than or equals"===i&&u&&s<=f||"less than or equals"===i&&u&&f<=s){n=!0;break}if("not equals"===i&&c===a||"not equals (regex)"===i&&o.test(c)){n=!1;break}}return n},getFormObj(e){return"string"==typeof e&&(e=jQuery(e).eq(0)),wpcf7cf.getWpcf7cfForm(e)},getRepeaterObj(e,t){var i,a;return wpcf7cf.getFormObj(e).repeaters.find(e=>e.params.$repeater.attr("data-id")===t)},getMultiStepObj(e){var t;return wpcf7cf.getFormObj(e).multistep},repeaterAddSub(e,t){var e=wpcf7cf.getRepeaterObj(e,t);e.updateSubs(e.params.$repeater.num_subs+1)},repeaterAddSubAtIndex(e,t,i){var a;wpcf7cf.getRepeaterObj(e,t).addSubs(1,i)},repeaterRemoveSubAtIndex(e,t,i){var a;wpcf7cf.getRepeaterObj(e,t).removeSubs(1,i)},repeaterRemoveSub(e,t){var e=wpcf7cf.getRepeaterObj(e,t);e.updateSubs(e.params.$repeater.num_subs-1)},repeaterSetNumberOfSubs(e,t,i){var a;wpcf7cf.getRepeaterObj(e,t).updateSubs(i)},multistepMoveToStep(e,t){var i;wpcf7cf.getMultiStepObj(e).moveToStep(t)},async multistepMoveToStepWithValidation(e,t){var e=wpcf7cf.getMultiStepObj(e),i;"success"===await e.validateStep(e.currentStep)&&e.moveToStep(t)}},document.querySelectorAll(".wpcf7-form").forEach(function(e){wpcf7cf_forms.push(new Wpcf7cfForm(e))}),document.addEventListener("DOMContentLoaded",function(){wpcf7cf_forms.forEach(function(e){e.displayFields()})});
6var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,e,c){a instanceof String&&(a=String(a));for(var g=a.length,f=0;f<g;f++){var k=a[f];if(e.call(c,k,f,a))return{i:f,v:k}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
7$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,c){if(a==Array.prototype||a==Object.prototype)return a;a[e]=c.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<a.length;++e){var c=a[e];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
8$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,e){var c=$jscomp.propertyToPolyfillSymbol[e];if(null==c)return a[e];c=a[c];return void 0!==c?c:a[e]};
9$jscomp.polyfill=function(a,e,c,g){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,e,c,g):$jscomp.polyfillUnisolated(a,e,c,g))};$jscomp.polyfillUnisolated=function(a,e,c,g){c=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var f=a[g];if(!(f in c))return;c=c[f]}a=a[a.length-1];g=c[a];e=e(g);e!=g&&null!=e&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:e})};
10$jscomp.polyfillIsolated=function(a,e,c,g){var f=a.split(".");a=1===f.length;g=f[0];g=!a&&g in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var k=0;k<f.length-1;k++){var b=f[k];if(!(b in g))return;g=g[b]}f=f[f.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?g[f]:null;e=e(c);null!=e&&(a?$jscomp.defineProperty($jscomp.polyfills,f,{configurable:!0,writable:!0,value:e}):e!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[f]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[f]=$jscomp.IS_SYMBOL_NATIVE?
11$jscomp.global.Symbol(f):$jscomp.POLYFILL_PREFIX+c+"$"+f),$jscomp.defineProperty(g,$jscomp.propertyToPolyfillSymbol[f],{configurable:!0,writable:!0,value:e})))};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(e,c){return $jscomp.findInternal(this,e,c).v}},"es6","es3");
12(function(a,e,c,g){function f(b,d){this.element=b;this.settings=a.extend({},k,d);this._defaults=k;this._name="bellows";this.init()}var k={folding:"multiple",current:"off",slide_speed:400};a.extend(f.prototype,{init:function(){this.initialize_subtoggles(this);this.force_current_tree(this);"on"==this.settings.current&&this.initialize_current_submenus(this);this.initialize_show_more(this);this.initialize_menu_toggle(this)},initialize_subtoggles:function(b){var d=a(b.element);d.removeClass("bellows-nojs");
13d.find(".bellows-subtoggle, .bellows-menu-item-has-children > span.bellows-target").on("click",function(h){h=a(this).closest(".bellows-menu-item");b.toggle_submenu(h,b);return!1})},toggle_submenu:function(b,d){b.hasClass("bellows-active")?d.close_submenu(b,d):(d.open_submenu(b,d),"single"==d.settings.folding&&d.close_sibling_submenus(b,d))},open_submenu:function(b,d,h){h=void 0===h?d.settings.slide_speed:h;d=b.find("> .bellows-submenu");d.length&&d.slideDown(parseInt(h),function(){b.trigger("bellowsopen");
14b.addClass("bellows-active")})},close_submenu:function(b,d){b.find("> .bellows-submenu").slideUp(parseInt(d.settings.slide_speed),function(){b.removeClass("bellows-active");b.trigger("bellowsclose")})},close_sibling_submenus:function(b,d){b.siblings().each(function(){d.close_submenu(a(this),d)})},initialize_current_submenus:function(b){var d=null;d=a(b.element).find(".bellows-current-menu-item.bellows-current-item-priority");d=d.length?d:a(b.element).find(".bellows-current-menu-item, .bellows-current-menu-ancestor, .bellows-current-menu-parent");
15d.each(function(){b.open_submenu(a(this),b,0);a(this).parentsUntil(".bellows-nav",".bellows-menu-item:not(.bellows-active)").each(function(){b.open_submenu(a(this),b,0)})})},force_current_tree:function(b){a(b.element).find(".bellows-current-menu-item").parents(".bellows-menu-item:not(.bellows-current-menu-item,.bellows-current-menu-parent,.bellows-current-menu-ancestor)").addClass("bellows-current-menu-ancestor")},initialize_show_more:function(b){a(b.element).find(".bellows-show-more-toggle").each(function(){var d=
16a(this).clone().attr("id","").addClass("bellows-show-less-toggle").removeClass("bellows-show-more-toggle");d.find(".bellows-target-title").html('<i class="bellows-icon fa fa-angle-up"></i> '+a(this).data("show-less"));a(this).closest(".bellows-submenu,.bellows-nav").append(d);a(this).find("> .bellows-target").on("click",function(h){h.preventDefault();a(this).parent().toggleClass("bellows-show-less")});d.find("> .bellows-target").on("click",function(h){h.preventDefault();a(this).parent().siblings(".bellows-show-more-toggle").toggleClass("bellows-show-less")})})},
17initialize_menu_toggle:function(b){var d=a(b.element),h=a('.bellows-menu-toggle[aria-controls="'+b.element.i
17d+'"]');h.on("click",function(){d.toggleClass("bellows-mobile-open");h.toggleClass("bellows-mobile-open")})}});a.fn.bellows=function(b){var d=arguments;if(b===g||"object"===typeof b)return this.each(function(){a.data(this,"plugin_bellows")||a.data(this,"plugin_bellows",new f(this,b))});if("string"===typeof b&&"_"!==b[0]&&"init"!==b){var h;this.each(function(){var l=a.data(this,"plugin_bellows");
18l instanceof f&&"function"===typeof l[b]&&(h=l[b].apply(l,Array.prototype.slice.call(d,1)));"destroy"===b&&a.data(this,"plugin_bellows",null)});return h!==g?h:this}}})(jQuery,window,document);
19(function(a){function e(g){if(!c&&(c=!0,a(".bellows").each(function(){var f=a(this).find("> .bellows-nav").data("bellows-config");a(this).bellows(bellows_data.config[f])}),g=function(){if(a(this).find("#wpgmza_map").length)InitMap();else if(a(this).find(".wpgmza_map").length)for(var f in wpgmaps_localize){var k=wpgmaps_localize[f],b=MYMAP[k.id].map;google.maps.event.trigger(b,"resize");k=new google.maps.LatLng(k.map_start_lat,k.map_start_lng);b.setCenter(k)}a(this).off("bellowsopen")},"function"==
20typeof InitMap))a(".bellows-menu-item").on("bellowsopen",g)}var c=!1;jQuery(function(g){e("document.ready")});a(window).on("load",function(){e("window.load")})})(jQuery);
21
22(()=>{class t{static setCommonConstants(){this.script=document.currentScript,this.loadedCss=[],this.loadedJs=[]}static addCSS(t,e,i=!1,r=null){var s;return void 0===this.loadedCss&&(this.loadedCss=[]),t&&-1===this.loadedCss.indexOf(t)?((s=document.createElement("link")).type="text/css",s.rel="stylesheet",s.href=t,(i&&window!==window.parent&&this.isCrossDomainIframe()?window.parent.document:document).head.appendChild(s),document.head.appendChild(s),"function"==typeof e&&s.addEventListener("load",e),"function"==typeof r&&s.addEventListener("error",r),this.loadedCss.push(t)):e?e():null}static addJS(t,e,i=!1){var r;return void 0===this.loadedJs&&(this.loadedJs=[]),t&&-1===this.loadedJs.indexOf(t)?((r=document.createElement("script")).type="text/javascript",r.src=t,(i&&window!==window.parent&&this.isCrossDomainIframe()?window.parent.document:document).head.appendChild(r),e&&r.addEventListener("load",e),this.loadedJs.push(t)):e?e():null}static openWindow(t){var e=document.createElement("a");return e.href=t,e.target="_blank",e.rel="noopener noreferrer nofollow",e.click()}static getScriptSelector(t){return'[src*=".trustindex."][src*="'+t+'.js"],[data-src*=".trustindex."][data-src*="'+t+'.js"]'}static getScriptKey(t){var t=t.getAttribute("data-src")||t.getAttribute("src"),e=t.replace(/.+\?([^&]+)/,"$1");return e&&e!==t&&-1===e.indexOf("=")?e:null}static getCDNUrl(){if(void 0!==window.TrustindexCdnUrl&&window.TrustindexCdnUrl)return window.TrustindexCdnUrl;if(void 0!==this.cdnUrl&&this.cdnUrl)return this.cdnUrl;let t="https://cdn.trustindex.io/",e=null;try{"undefined"!=typeof sessionStorage&&(e=sessionStorage.getItem("ti-cdn-url"))}catch(t){e=null}if(e)return e;let i=t;var r;this.script&&this.script.src&&((r=this.script.src.split("/")).pop(),i=r.join("/")+"/"),-1===i.indexOf("trustindex.")&&(i=t),this.cdnUrl=i;try{this.isAdminUrl()||i===t||"undefined"==typeof sessionStorage||sessionStorage.setItem("ti-cdn-url",i)}catch(t){}return i}
22static getWidgetUrl(t){return void 0===t?null:this.getCDNUrl()+"widgets/"+t.substring(0,2)+"/"+t+"/"}static getDecodedHtml(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value}static getRelativeTime(t,e){var r=e.split("|"),s=r.shift(),e=r.shift(),o=[86400,604800,2419200,31536e3],a=(new Date).getTime()/1e3-t;for(let i=o.length-1;0<=i;i--)if(a>=o[i]){let t=Math.floor(a/o[i]),e=2*i;return 1<t&&e++,s.replace("%d",t).replace("%s",r[e])}return e}static getDevicePixelRatio(){let t=1;return void 0!==window.screen.systemXDPI&&void 0!==window.screen.logicalXDPI&&window.screen.systemXDPI>window.screen.logicalXDPI?t=window.screen.systemXDPI/window.screen.logicalXDPI:void 0!==window.devicePixelRatio&&(t=window.devicePixelRatio),Math.min(t,2)}static getDefaultAvatarUrl(){var t=Math.floor(10*Math.random())+1;return this.getCDNUrl()+"assets/default-avatar/noprofile-"+(t<10?"0":"")+t+".svg"}static getDefaultCompanyAvatarUrl(){return this.getCDNUrl()+"companies/default_avatar.jpg"}static getPageLanguage(){return this.getWidgetLanguage(document.documentElement.lang)}static getUserLanguage(){return this.getWidgetLanguage(navigator.language||navigator.userLanguage||document.documentElement.lang)}
22static getWidgetLanguage(t){var t=(t||"en").toLowerCase();return t.startsWith("zh")?/-(hant|tw|hk|mo)\b/.test(t)?"zh_TW":"zh":t.substr(0,2)}static getLocaleTag(t){return(t||"en").replace("_","-")}static isAdminUrl(t){var t=t?new URL(t):location;return/(admin|stage[0-9kw])\.trustindex/.test(t.hostname)&&-1===t.href.indexOf("test/widget.html")}static isWordpressAdminUrl(t){return-1!==(t?new URL(t):location).href.indexOf("settings.php&tab=free-widget-configurator")}static isAdminEditUrl(t){return-1!==(t=void 0===t?location.href:t).indexOf("widget/edit")}static isTestWidgetUrl(t){return-1!==(t=void 0===t?location.href:t).indexOf("test/widget.html")}static isInIframe(){return window.top!==window.self}static isAttributeEnabled(t,e){var t=t.getAttribute(e);return null!==t&&-1===["0","false"].indexOf(t.toLowerCase())}static isCrossDomainIframe(){if(window.parent===window)return!1;try{var t=new URL(window.parent.location);return t.protocol!==location.protocol||t.hostname!==location.hostname||t.port!==location.port}catch(t){return null}}static isMobileDevice(){return this.isAdminUrl()&&!this.isAdminEditUrl()?!!document.querySelector(".widget-editor.mobile"):/mobi/i.test(navigator.userAgent||navigator.vendor||window.opera)}static show(t,e){t.style.display=e||""}static hide(t){t.style.display="none"}static isEditorPreview(){return!!(this.isAdminUrl()||this.isTestWidgetUrl()||this.isWordpressAdminUrl())||-1!==location.href.indexOf("elementor-preview=")}static onFirstActivity(t){if(this.hadFirstActivity)return t();if(void 0===this.firstActivityCallbacks){this.firstActivityCallbacks=[];let t=["keydown","mousemove","wheel","touchmove","touchstart"],e=()=>{t.forEach(t=>window.removeEventListener(t,e)),this.hadFirstActivity=!0,this.firstActivityCallbacks.forEach(t=>t()),this.firstActivityCallbacks=[]};t.forEach(t=>window.addEventListener(t,e,{passive:!0}))}return this.firstActivityCallbacks.push(t)}static onApproachingViewport(t,e,i=300){if("undefined"==typeof IntersectionObserver||this.isInLoadTriggerZone(t,i))return e();let r=new IntersectionObserver(t=>{t[0].isIntersecting&&(r.disconnect(),e())},{rootMargin:i+"px"});return r.observe(t)}static convertToDialog(t){if(!t||"DIALOG"===t.tagName)return t;let e=document.createElement("dialog");return Array.from(t.attributes).forEach(t=>e.setAttribute(t.name,t.value)),e.append(...t.childNodes),Object.assign(e.style,{border:"0",padding:"0",margin:"0",maxHeight:"none",overflow:"visible"}),t.parentNode&&t.replaceWith(e),e}static isCrawler(){return void 0===this.cacheIsCrawler&&(this.cacheIsCrawler=new RegExp(["googlebot","googleother","google-inspectiontool","storebot-google","bingbot","bingpreview","applebot","duckduckbot","yandexbot","baiduspider","petalbot","seznambot","slurp","gptbot","oai-searchbot","chatgpt-user","claudebot","claude-web","claude-user","claude-searchbot","anthropic-ai","perplexity","duckassistbot","meta-externalagent","meta-externalfetcher","bytespider","amazonbot","ccbot","cohere-ai","youbot","diffbot","mistralai-user","imagesiftbot","timpibot","omgilibot","webzio-extended","ahrefsbot","semrushbot","screaming frog","dataforseo","chrome-lighthouse","prerender","facebookexternalhit","twitterbot","linkedinbot","slackbot","discordbot","telegrambot","embedly"].join("|"),"i").test(navigator.userAgent||"")),this.cacheIsCrawler}static isWebpSupported(e){if(void 0!==this.cacheWebpSupported)return e(this.cacheWebpSupported);let t=t=>(this.cacheWebpSupported=t,e(t)),i=new Image;i.onload=()=>t(0<i.width&&0<i.height),i.onerror=()=>t(!1),i.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"}static isDarkMode(){var t,t;return!(null==(t=null==(t=null==window?void 0:window.matchMedia)?void 0:t.call(window,"(prefers-color-scheme:dark)"))||!t.matches)}static waitForVisibility(t,e,i=0){if(0<t.offsetWidth)return i?setTimeout(e,i):e();new ResizeObserver(function(t){0<t[0].target.offsetWidth&&(e(),this.disconnect())}).observe(t)}static isInLoadTriggerZone(t,e=1200){var i=t.closest(".x-slide.slider-section"),i;return!(!i||!i.classList.contains("is-current-slide"))||(i=t.getBoundingClientRect()).right<=(window.innerWidth||document.documentElement.clientWidth)+e&&i.bottom<=(window.innerHeight||document.documentElement.clientHeight)+e}static getProxyUrl(t="eu"){return{eu:{url:"https://de-proxy.trustindex.io/",key:"base64:3j5bZXQ07QEkVq0lFnTw5g=="}}[t=t||{Europe:"eu"}[Intl.DateTimeFormat().resolvedOptions().timeZone.split("/")[0]]||"eu"]?{eu:{url:"https://de-proxy.trustindex.io/",key:"base64:3j5bZXQ07QEkVq0lFnTw5g=="}}[t].url+"trustindex-1stp/cdn-loader.php":""}static disableBodyScroll(){void 0===this.oldBodyScrollAttributes&&this.isBodyScrollApplicable()&&(this.oldBodyScrollAttributes={documentElement:{overflow:document.documentElement.style.overflow,position:document.documentElement.style.position,height:document.documentElement.style.height},body:{overflowX:document.body.style.overflowX,height:document.body.style.height}},document.documentElement.style.overflow="hidden",document.documentElement.style.position="relative",document.documentElement.style.height="unset",document.body.style.overflowX="unset",document.body.style.height="unset")}static enableBodyScroll(){if(void 0!==this.oldBodyScrollAttributes){for(var t in this.oldBodyScrollAttributes)for(var e in this.oldBodyScrollAttributes[t])document[t].style[e]=this.oldBodyScrollAttributes[t][e];delete this.oldBodyScrollAttributes}}static isBodyScrollApplicable(){if("hidden"===document.documentElement.style.overflow||"hidden"===document.documentElement.style.overflowX||"hidden"===document.body.style.overflow||"hidden"===document.body.style.overflowX)return!1;let t=window.getComputedStyle(document.documentElement);
22return"hidden"!==(t.overflow||"").split(" ")[0]&&"hidden"!==(t.overflowX||"")&&"hidden"!==((t=window.getComputedStyle(document.body)).overflow||"").split(" ")[0]&&"hidden"!==(t.overflowX||"")}static getFetchApi(){var t;return void 0!==this.fetchApi&&this.fetchApi||(t=document.createElement("iframe"),document.body.appendChild(t),this.fetchApi=t.contentWindow.fetch.bind(window),t.remove()),this.fetchApi}static request(r,s="GET"){return new Promise((t,e)=>{let i=new XMLHttpRequest;i.open(s,r,!0),i.onload=function(){200<=i.status&&i.status<300?t(i.responseText):t(!1)},i.onerror=function(){t(!1)},i.send()})}}var o=(t,a,n)=>new Promise((e,i)=>{var r=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,a)).next())});class i extends t{static resize_widgets(){}static init(){}static init_pager(){-1!==decodeURIComponent(location.href).indexOf("page=testimonial-widgets/tabs/create-widget.php")&&(this.destroyWidgets(),this.initWidgetsFromDom(!0))}static setConstants(){this.setCommonConstants(),this.svgs={good:'<svg style="display: inline-block; vertical-align: sub;fill: #0ab21b;position:relative;top:-2px" viewBox="0 0 128 128"><path d="M64 8a56 56 0 1 0 56 56A56 56 0 0 0 64 8zm0 104a48 48 0 1 1 48-48 48 48 0 0 1-48 48zM44 64a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm48-8a8 8 0 1 1-8-8 8 8 0 0 1 8 8zm-4.8 21.6a4 4 0 0 1 .6 3.6A24.3 24.3 0 0 1 64 97c-9.7 0-15.7-4.2-19-7.8a22.7 22.7 0 0 1-4.8-8A4 4 0 0 1 44 76h40a4 4 0 0 1 3.2 1.6z"></path></svg>',bad:'<svg style="display: inline-block; vertical-align: sub;fill: #383838;margin-top: -1px;position:relative;top:-2px" viewBox="0 0 128 128"><path d="M64 8a56 56 0 1 0 56 56A56 56 0 0 0 64 8zm0 104a48 48 0 1 1 48-48 48 48 0 0 1-48 48zM44 64a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm48-8a8 8 0 1 1-8-8 8 8 0 0 1 8 8zm-5.2 30.2a4 4 0 1 1-5.6 5.6c-10.5-10.4-24-10.4-34.4 0a4 4 0 0 1-5.6-5.6c13.6-13.7 32-13.7 45.6 0z"></path></svg>'},this.additionalLogoStyles={"header-logo":{Google:"height: 25px; top: -2px",Facebook:"height: 17px",Trustindex:"height: 19px",Tripadvisor:"height: 24px; top: -2px",Airbnb:"height: 26px; top: -3px",Yelp:"height: 32px; top: -8px",Amazon:"height: 13px; top: 1px",Arukereso:"height: 17px; top: 5px",Vrbo:"height: 20px; top: -2px",BBB:"height: 25px; top: -2px",Expedia:"height: 25px; top: -3px",Ebay:"height: 25px; top: -2px",Sitejabber:"height: 20px; top: 1px",Thumbtack:"height: 25px; top: -3px",Provenexpert:"height: 25px; top: 1px",Hotels:"height: 22px; top: -1px",Zillow:"height: 17px",Yell:"height: 18px",Checkatrade:"height: 15px; top: 2px",Capterra:"height: 15px; top: 2px",Etsy:"height: 20px; top: 1px",WordpressPlugin:"height: 13px; top: 1px",AngiesList:"height: 24px; top: -1px",OnlinePenztarca:"height: 30px; top: -3px",ConsumerAffairs:"height: 30px; top: -3px",Reviewsio:"height: 20px; top: 0px",Foursquare:"height: 15px; top: 3px",Justdial:"height: 15px; top: 3px",Houzz:"height: 20px; top: -3px",Indeed:"height: 17px; top: 0px"},"large-logo":{Facebook:"width: 145px; height: 28px",Google:"width: 110px; height: 35px",Yelp:"width: 95px; height: 46px; top: -5px",Airbnb:"width: 120px; height: 38px",Tripadvisor:"width: 155px; height: 33px",Trustpilot:"width: 140px; height: 34px",Hotels:"width: 152px; height: 30px",Amazon:"width: 120px; height: 25px",Bookatable:"height: 27px; left: 7px",Foursquare:"height: 20px; top: 3px",Trustindex:"width: 152px; height: 26px; top: 3px",Booking:"height: 25px",Opentable:"height: 35px",Capterra:"height: 34px",Thumbtack:"height: 34px",Fresha:"height: 21px",Expedia:"height: 44px",Mobilede:"height: 35px",Checkatrade:"height: 22px",Pricerunner:"height: 21px",Easyweddings:"height: 50px; top: 3px",Whichtrustedtraders:"width: 80px; height: 55px; top: -15px; left: 10px",Abia:"width: 100px; height: 41px",WordpressPlugin:"height: 35px",Zoover:"height: 22px",Arukereso:"height: 25px","Arukereso-ro":"height: 29px",Pricespy:"height: 39px","Pricespy-dk":"height: 42px","Pricespy-fi":"height: 35px","Pricespy-fr":"height: 31px","Pricespy-no":"height: 43px",Szallashu:"height: 26px","Szallashu-com":"height: 29px","Szallashu-cz":"height: 47px","Szallashu-pl":"height: 34px","Szallashu-ro":"height: 29px"},"small-logo":{Facebook:"width: 78px; height: 15px; top: 1px",Google:"width: 62px; height: 20px; top: 1px",Yelp:"width: 45px; height: 22px; top: -3px",Airbnb:"width: 64px; height: 20px",Tripadvisor:"width: 97px; height: 21px; top: 1px",Trustpilot:"width: 65px; top: 2px",Hotels:"width: 100px; height: 20px",Amazon:"width: 68px; height: 20px; top: 1px",Bookatable:"width: 83px; height: 15px; top: 1px",Foursquare:"width: 98px; height: 13px; top: 3px",Trustindex:"width: 95px; height: 16px; top: 2px",Booking:"width: 90px; height: 15px; top: 3px",Opentable:"width: 100px; height: 23px; top: -1px",Capterra:"width: 79px; height: 18px; top: 1px",Thumbtack:"width: 79px; height: 18px; top: 2px",Fresha:"width: 93px; height: 13px; top: 2px; left: 1px",Expedia:"width: 65px; height: 19px; top: 2px",Zillow:"width: 67px; height: 14px; top: 2px",Reco:"width: 76px; height: 16px",Mobilede:"width: 68px; height: 16px; top: 2px",Checkatrade:"width: 90px; height: 13px; top: 1.5px",Pricerunner:"width: 102px; height: 14px; top: 1px",Easyweddings:"width: 60px; height: 20px",Whichtrustedtraders:"width: 34px; height: 23px; top: -1px",Abia:"width: 40px; height: 16px",Ebay:"width: 45px; height: 18px; top: 1px",BBB:"width: 42px; height: 16px; top: 2px",WordpressPlugin:"width: 85px; height: 11px; top: 2px",Arukereso:"width: 92px; height: 15px; top: 1px","Arukereso-bg":"width: 89px; height: 15px; top: 3px","Arukereso-ro":"width: 77px; height: 15px; top: 3px",Pricespy:"width: 69px; height: 18px","Pricespy-dk":"width: 64px; height: 18px","Pricespy-fi":"width: 77px; height: 18px","Pricespy-fr":"width: 88px; height: 18px","Pricespy-no":"width: 63px; height: 18px","Pricespy-nu":"width: 63px; height: 18px",Szallashu:"width: 76px; height: 13px; top: 2px","Szallashu-com":"width: 95px; height: 18px","Szallashu-cz":"width: 61px; height: 19px; top: 3px","Szallashu-pl":"width: 74px; height: 17px; top: 3px","Szallashu-ro":"width: 100px; height: 19px",Provenexpert:"width: 98px; height: 21px; top: 3px",Vrbo:"width: 45px; height: 15px; top: 1px",Yell:"width: 38px; height: 14px; top: 2.5px",AngiesList:"width: 27px; height: 16px; top: 3px",Sitejabber:"width: 85px; height: 16px; top: 4px",Aliexpress:"width: 67px; height: 16px; top: 3.5px"}},this.richSnippetLoaded=0<document.querySelectorAll('script[src*=".trustindex.io/assets/js/richsnippet.js"], script[type="application/ld+json"][data-trustindex="1"]').length}static loadRichSnippet(t){!this.richSnippetLoaded&&t&&(this.richSnippetLoaded=!0,this.addJS(this.getCDNUrl()+"assets/js/richsnippet.js?"+t))}static loadWidgetsFromDom(){return o(this,null,function*(){document.querySelectorAll(this.getScriptSelector("loader")).forEac
22h(e=>{if(!e.getAttribute("data-ti-widget-inited")){e.setAttribute("data-ti-widget-inited",!0);var t=this.getScriptKey(e),i,s;if(t){let r=!this.isInIframe()&&this.isAttributeEnabled(e,"data-enable-delay-load");"SCRIPT"===e.tagName&&((i=document.createElement("div")).key=e.key,this.addScriptEmbedNoticeForWordpress(e,t),e.replaceWith(i),e=i),e.key=t,e.isTriggerLoad=t=>this.isInLoadTriggerZone(e,t),s=e,o(this,null,function*(){var t=yield this.getWidgetHtml(s),e,i,t;return!1===t?s.innerHTML='\n\t\t\t\t\t\tWidget not found! Probably it is already deleted or there is typo in its ID.\n\t\t\t\t\t\tWe suggest that you log in to the <a href="https://admin.trustindex.io/" target="_blank">Trustindex system</a> and follow the widget configuration instructions.\n\t\t\t\t\t\tOr, if you don\'t have an account, create one for free at <a href="https://www.trustindex.io?a=sys&c=widget-not-found" target="_blank">www.trustindex.io</a>\n\t\t\t\t\t':t?/style="[^"]*border: 4px dashed red[^"]*"/.test(t)?s.innerHTML=t:(e=-1!==t.indexOf('data-lazy-load-disabled="1"'),r||this.isInIframe()||(r=-1!==t.indexOf('data-delay-load="1" class="ti-widget')),i=/(?:data-layout-category="[^"]*floating[^"]*"|data-layout-id="(?:17|21|52|53)")/.test(t),void(s.closest("head")&&!i||(s.contentHtml=t,t=/data-rich-snippet="([^"]+)"/.exec(t),this.loadRichSnippet(t?t[1]:null),e||i||this.isCrawler()?new TrustindexWidget(null,s):s.isTriggerLoad(100)?r?window.tiElementToWaitForActivity.push(s):new TrustindexWidget(null,s):this.isInIframe()?this.onApproachingViewport(s,()=>new TrustindexWidget(null,s)):(s.isWaitForVisibility=!0,window.tiElementToWaitForActivity.push(s))))):s.replaceWith(document.createComment("Trustindex widget ("+s.key+") is empty here."))})}}})})}static addScriptEmbedNoticeForWordpress(r,s){var o=document.querySelector('meta[name="ti-notice-script-tag"]');if(o){let t="["+(o.getAttribute("content")||"trustindex")+' data-widget-id="'+s+'"]',e=document.createElement("div"),i=(e.setAttribute("style","margin: 20px 0px; padding: 15px; color: #31708f; background-color: #d9edf7; border-color: #bcdff1; border-radius: 5px"),e.innerHTML=`<strong>Do you want AI tools to understand your reviews?</strong>
23			<br />Replace the JavaScript embed code with the shortcode below. Copy and paste it where you want the widget to appear. This makes your review content easier for search engines and AI tools to discover and understand.
24			<div style="display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0px">
25				<code style="padding: 6px 10px; background: rgba(0, 0, 0, 0.06); border-radius: 4px">${t}</code>
26				<button type="button" style="cursor: pointer; padding: 6px 12px; border: 0; outline: 0; border-radius: 4px; background: rgba(0, 0, 0, 0.12); color: inherit; font: inherit">Copy shortcode</button>
27			</div>
28			<i style="opacity: 0.65">(This message is not visible to visitors in public mode.)</i>`,e.querySelector("button"));i.addEventListener("click",()=>{navigator.clipboard.writeText(t).then(()=>{let t=i.textContent;i.textContent="✓",setTimeout(()=>i.textContent=t,1500)})});var o=document.querySelector('meta[name="ti-notice-dismiss-url"]');o&&this.addNoticeDismissLink(e,o.getAttribute("content")),r.before(e)}}static initNoticesForWordpress(){document.querySelectorAll(".ti-wp-notice:not([data-ti-notice-inited])").forEach(t=>{t.setAttribute("data-ti-notice-inited","1");var e=t.getAttribute("data-ti-notice-dismiss-url");e&&this.addNoticeDismissLink(t,e,t.getAttribute("data-ti-notice-dismiss-text"))})}static addNoticeDismissLink(e,i,t=null){var r=document.createElement("div"),s=(r.setAttribute("style","margin-top: 10px; text-align: right"),document.createElement("a"));s.setAttribute("href","#"),s.setAttribute("style","color: inherit; text-decoration: underline; cursor: pointer"),s.textContent=t||"Dismiss",s.addEventListener("click",t=>{t.preventDefault(),e.remove(),this.request(i,"POST").then(t=>{})}),r.appendChild(s),e.appendChild(r)}static initWidgetsFromDom(t=!1,e,i){var r=this.widgetsForInit||document.querySelectorAll(".ti-widget:not(.ti-certificate):not(.ti-feed-widget)"+(t?"":":not([data-trustindex-widget])"));r.forEach(t=>this.loadRichSnippet(t.getAttribute("data-rich-snippet"))),void 0!==e&&r.length?(void 0===this.widgetsForInit&&(this.widgetsForInit=r),new TrustindexWidget(r[e]),++e<r.length?setTimeout(()=>this.initWidgetsFromDom(t,e,i),20):(delete this.widgetsForInit,i&&i())):(r.forEach(t=>new TrustindexWidget(t)),i&&i())}
28static getWidgetHtml(r){return o(this,null,function*(){let t=this.getWidgetUrl(r.key)+"content.html";if("wp-widget"===r.key){var e=r.getAttribute("data-template-id");if(e){var e=document.getElementById(e);if(e)return r.removeAttribute("data-template-id"),e.innerHTML.replace(/decoding="async"/g,"").replace(/ (?:src|srcset|data-src|data-srcset|data-ti-src|data-ti-srcset|consent-original-src-_|consent-original-srcset-_|consent-original-data-src-_|consent-original-data-srcset-_)="(?!http)[^"]*"/g,"").replace(/data-ti-src="[^"]+lazy\.(png|jpg|jpeg|gif|svg)"/g,"").replace(/consent-original-class-_="/g,'class="').replace(/consent-original-src-_="/g,'src="').replace(/consent-original-srcset-_="/g,'srcset="').replace(/consent-original-data-src-_="/g,'data-src="').replace(/consent-original-data-srcset="/g,'data-srcset="').replace(/<noscript>[^<]+<\/noscript>/g,"").replace(/data-(?:lazy-|ti-)?src="/g,'src="').replace(/data-(?:lazy-|ti-)?srcset="/g,'srcset="').replace(/<trustindex-image/g,"<img").replace(/><\/trustindex-image>/g,"/>
28").replace(/data-imgurl(set)?="/g,'src$1="')}t=r.getAttribute("data-html-url")}let i=yield this.request(t);return i=i&&-1!==location.href.indexOf(this.getCDNUrl()+"amp-widget")?i.replace(/<img/g,'<img crossorigin="anonymus"'):i})}static destroyWidgets(){window.tiWidgetInstances.forEach(t=>t.destroy()),window.tiWidgetInstances=[]}static profileImageFallback(t,i=null){null===i&&(i=this.getDefaultAvatarUrl()),t.querySelectorAll(".ti-profile-img img").forEach(t=>{if(!t.complete||void 0!==t.naturalWidth&&0!==t.naturalWidth){let e=t=>{(t=t.target||t).setAttribute("src",i),t.removeAttribute("srcset"),t.removeEventListener("error",e)};t.removeEventListener("error",e),t.addEventListener("error",e)}else t.setAttribute("src",i),t.removeAttribute("srcset")})}static getJsonDataElement(t,e=null){var e=e?"."+e:"";return t.querySelector("script"+e+'[type="application/ld+json"], '+e+"[data-ti-json]")}static parseJsonData(t){return JSON.parse(void 0!==t.dataset.tiJson?decodeURIComponent(t.dataset.tiJson):t.innerHTML)}static restoreRewrittenImages(t){let r={src:["data-src","data-lazy-src","data-ti-src","data-imgurl","data-orig-src","consent-original-src-_"],srcset:["data-srcset","data-lazy-srcset","data-ti-srcset","data-imgurlset","consent-original-srcset-_"]};t.querySelectorAll("img").forEach(i=>{Object.keys(r).forEach(t=>{var e=r[t].map(t=>i.getAttribute(t)).find(t=>t&&/^(https?:)?\/\//.test(t));e&&e!==i.getAttribute(t)&&i.setAttribute(t,e)})})}}var e=(t,a,n)=>new Promise((e,i)=>{var r=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,a)).next())});class a{constructor(e,t=null){if(this.classes=[],e){var i=a.getComparableContent(e);if(this.getWidget(e),!e.container)return;this.contentCheck=Promise.race([this.sendViewStat(i).catch(t=>{}),new Promise(t=>setTimeout(t,3e3))]),this.scheduleInit();let t=e.getAttribute("data-css-url");t||"wp-widget"===e.pid||(t=this.getWidgetStylesheetUrl()),this.loadWidgetStylesheet(t,()=>{})}t&&this.load(t),window.tiWidgetInstances.push(this)}getWidget(t){t.setAttribute("data-trustindex-widget",!0),t.layoutId=t.getAttribute("data-layout-id"),t.layoutCategory=(t.getAttribute("data-layout-category")||"").split(", "),t.setId=t.getAttribute("data-set-id"),t.pid=t.getAttribute("data-pid")||"wp-widget",t.cssVersion=t.getAttribute("data-css-version")||null,t.language=t.getAttribute("data-language")||"en",t.locales={close:t.getAttribute("data-close-locale")||"Close"},t.footerLinkDomain=t.getAttribute("data-footer-link-domain")||null,t.size=parseFloat(t.getAttribute("data-size")||1),t.isLazyLoadDisabled=t.hasAttribute("data-lazy-load-disabled"),t.isDelayLoadEnabled=Trustindex.isAttributeEnabled(t,"data-delay-load"),t.layoutId&&(t.layoutId=parseInt(t.layoutId)),t.container=t.querySelector(".ti-widget-container"),t.setAttribute("data-no-translation",!0),(this.widget=t).container&&this.getSubclasses()}getSubclasses(){(this.widget.TrustindexWidget=this).classes=[],this.widget.querySelector(".ti-reviews-container")&&(this.widget.TrustindexReviewWidget=new TrustindexReviewWidget(this.widget),this.classes.push(this.widget.TrustindexReviewWidget),this.widget.getAttribute("data-column-vertical-separate")&&(this.widget.TrustindexMasonryWidget=new TrustindexMasonryWidget(this.widget),this.classes.push(this.widget.TrustindexMasonryWidget)),Trustindex.getJsonDataElement(this.widget,"ti-ai-summary")&&(this.widget.TrustindexAiSummaryModule=new TrustindexAiSummaryModule(this.widget),this.classes.push(this.widget.TrustindexAiSummaryModule)),!Trustindex.getJsonDataElement(this.widget,"ti-lightbox-data")&&"popup"!==this.widget.reviewTextMode||(this.widget.TrustindexReviewImageModule=new TrustindexReviewImageModule(this.widget),this.widget.TrustindexLightboxModule=new TrustindexLightboxModule(this.widget),this.classes.push(this.widget.TrustindexReviewImageModule),this.classes.push(this.widget.TrustindexLightboxModule)),"readmore"!==this.widget.reviewTextMode&&"popup"!==this.widget.reviewTextMode||!this.widget.querySelector(".ti-review-item .ti-read-more")||(this.widget.TrustindexReadMoreModule=new TrustindexReadMoreModule(this.widget),this.classes.push(this.widget.TrustindexReadMoreModule)),this.widget.getAttribute("data-pager-autoplay-timeout")&&(this.widget.TrustindexSliderWidget=new TrustindexSliderWidget(this.widget),this.classes.push(this.widget.TrustindexSliderWidget)),this.widget.querySelector(".ti-load-more-reviews-button")&&(this.widget.TrustindexLoadMoreModule=new TrustindexLoadMoreModule(this.widget),this.classes.push(this.widget.TrustindexLoadMoreModule)),this.widget.querySelector(".ti-widget-header"))&&(this.widget.TrustindexHeaderModule=new TrustindexHeaderModule(this.widget),this.classes.push(this.widget.TrustindexHeaderModule)),this.widget.querySelector('a[href="#popup"], a[href="#dropdown"]')&&(this.widget.TrustindexPopupWidget=new TrustindexPopupWidget(this.widget),this.classes.push(this.widget.TrustindexPopupWidget)),this.widget.querySelector(".ti-top-rated-title")&&(this.widget.TrustindexTopRatedWidget=new TrustindexTopRatedWidget(this.widget),this.classes.push(this.widget.TrustindexTopRatedWidget)),-1!==this.widget.layoutCategory.indexOf("fomo")&&(this.widget.TrustindexFomoWidget=new TrustindexFomoWidget(this.widget),this.classes.push(this.widget.TrustindexFomoWidget)),this.widget.TrustindexDarkModeModule=new TrustindexDarkModeModule(this.widget),this.classes.push(this.widget.TrustindexDarkModeModule),(-1!==this.widget.layoutCategory.indexOf("floating")||-1!==this.widget.layoutCategory.indexOf("fomo")||this.widget.querySelector(".disable-widget"))&&(this.widget.TrustindexCloseModule=new TrustindexCloseModule(this.widget),this.widget)&&this.classes.push(this.widget.TrustindexCloseModule)}callSubclassesMethods(){let e=arguments[0];
28this.classes.forEach(t=>{"function"==typeof t[e]&&t[e](...Array.from(arguments).slice(1))})}getWidgetStylesheetUrl(){if(!this.widget.setId)return null;let t=Trustindex.getCDNUrl()+"assets/widget-presetted-css/"+this.widget.layoutId+"-"+this.widget.setId+".css";return t=this.widget.cssVersion?t.replace("widget-presetted-css/","widget-presetted-css/v"+this.widget.cssVersion+"/"):t}loadWidgetStylesheet(e,r){if(!e)return r(!0);var s=this.getWidgetStylesheet(e);if(this.isWidgetStylesheetLoaded(e))return r(!0);let o=this.getComparableStylesheetUrl(e);void 0===a.pendingStylesheetCallbacks&&(a.pendingStylesheetCallbacks=new Map);var t=a.pendingStylesheetCallbacks.get(o);if(t)t.push(r);else{a.pendingStylesheetCallbacks.set(o,[r]);let i=!1,t=e=>{var t;i||(i=!0,t=a.pendingStylesheetCallbacks.get(o)||[],a.pendingStylesheetCallbacks.delete(o),t.forEach(t=>t(e)))};s?(s.addEventListener("load",()=>t(!0),{once:!0}),s.addEventListener("error",()=>t(!1),{once:!0}),this.isWidgetStylesheetLoaded(e)&&t(!0)):Trustindex.addCSS(e,()=>t(!0),!1,()=>t(!1))}}isWidgetStylesheetLoaded(t){let e=this.getComparableStylesheetUrl(t);return Array.from(document.styleSheets).some(t=>t.href&&this.getComparableStylesheetUrl(t.href)===e)}getWidgetStylesheet(t){let e=this.getComparableStylesheetUrl(t);return Array.from(document.querySelectorAll('link[rel~="stylesheet"][href]')).find(t=>t.href&&this.getComparableStylesheetUrl(t.href)===e)||null}getComparableStylesheetUrl(e){try{var t=new URL(e,document.baseURI);return t.origin+t.pathname}catch(t){return e.replace(/[?#].*$/,"")}}load(t){let e=(new DOMParser).parseFromString(t.contentHtml,"text/html"),i=e.querySelector(".ti-widget");if(t.replaceWith(i),this.getWidget(i),Trustindex.isCrawler()||Trustindex.hide(i),!i.layoutId||!i.container)return i.innerHTML="Layout id or container not found!";i.insertedElements=[],e.body.querySelectorAll("*").forEach(t=>{i.after(t),i.insertedElements.push(t)});let r=t.getAttribute("data-css-url"),s=(r||"wp-widget"===t.key||(r=this.getWidgetStylesheetUrl()),!1);this.loadWidgetStylesheet(r,()=>{s||(s=!0,Trustindex.show(i),this.scheduleInit())})}static getComparableContent(t){var t=t.cloneNode(!0);return t.querySelectorAll("script, noscript, [data-ti-json]").forEach(t=>t.remove()),t.querySelectorAll("*").forEach(e=>{Array.from(e.attributes).forEach(t=>{"IMG"!==e.tagName&&0===t.name.indexOf("data-")||e.removeAttribute(t.name)})}),t.innerHTML.replace(/<!--[\s\S]*?-->/g,"").replace(/\s+/g,"")}sendViewStat(o){return e(this,null,function*(){if(this.widget.pid&&"wp-widget"!==this.widget.pid&&!this.widget.isContentChecked){this.widget.isContentChecked=!0;var t=yield Trustindex.request(Trustindex.getWidgetUrl(this.widget.pid)+"content.html");if(t){var e=(new DOMParser).parseFromString(t,"text/html").querySelector(".ti-widget");if(!e||o!==a.getComparableContent(e)){var i=document.createElement("div"),r=(i.key=this.widget.pid,i.contentHtml=t,this.widget),s=(window.tiWidgetInstances=window.tiWidgetInstances.filter(t=>t!==this),this.destroy(),r.nextElementSibling);if(s&&s.matches("pre.ti-hidden-markup")&&s.querySelector("style")&&s.remove(),r.replaceWith(i),!e)return i.innerHTML=t;new a(null,i).widget.isContentChecked=!0}}}})}scheduleInit(){var t;return this.widget.isLazyLoadDisabled||this.isFloatingWidget()||Trustindex.isEditorPreview()?this.initWidget():(t=()=>Trustindex.onApproachingViewport(this.widget,()=>this.initWidget()),this.widget.isDelayLoadEnabled&&!Trustindex.isInIframe()?Trustindex.onFirstActivity(t):t())}revealWidget(){["display","opacity","height","overflow"].forEach(t=>this.widget.style.removeProperty(t)),""===this.widget.getAttribute("style")&&this.widget.removeAttribute("style")}initWidget(){Trustindex.restoreRewrittenImages(this.widget),this.moveFloatingWidgetToBody(),this.updateFooterLink(),Trustindex.waitForVisibility(this.widget.container,()=>e(this,null,function*(){var t;yield this.contentCheck,this.widget&&(this.revealWidget(),this.format(),this.resize(!0),this.registerEvents(),t=new CustomEvent("widget-ready",{detail:{widget:this}}),window.dispatchEvent(t))}))}isFloatingWidget(){return-1!==this.widget.layoutCategory.indexOf("floating")||-1!==this.widget.layoutCategory.indexOf("fomo")||-1!==[17,21,52,53].indexOf(this.widget.layoutId)}moveFloatingWidgetToBody(){if(this.isFloatingWidget()&&!Trustindex.isAdminUrl()&&!Trustindex.isWordpressAdminUrl()){if(!document.body)return setTimeout(()=>this.moveFloatingWidgetToBody(),40);let t=this.widget,e=(document.body.appendChild(t),0);t.floatBodyCheckInterval=setInterval(()=>{t.parentNode!==document.body&&(document.body.appendChild(t),clearInterval(t.floatBodyCheckInterval)),20<++e&&clearInterval(t.floatBodyCheckInterval)},100)}}updateFooterLink(){var t;this.widget.footerLinkDomain&&-1!==window.location.href.indexOf(this.widget.footerLinkDomain)&&!Trustindex.isTestWidgetUrl()&&(t=this.widget.querySelector('a[href][target="_blank"]'))&&t.removeAttribute("target")}format(){this.updateLogoImages(),this.widget.querySelectorAll(".ti-profile-img-sprite").forEach(t=>this.widget.TrustindexWidget.loadSpriteImage(t)),this.widget.querySelectorAll(".ti-company-sprite-profile-image").forEach(t=>this.loadSpriteImage(t));let i=this.widget.querySelectorAll(".ti-fade-container");
28if(1<i.length){i.forEach(t=>t.removeAttribute("style")),this.widget.fadeContainerInterval&&clearInterval(this.widget.fadeContainerInterval);let e=0;this.widget.fadeContainerInterval=setInterval(()=>{let t=e;++e>i.length-1&&(e=0),i[e].style.display="flex",i[t].style.opacity=0,setTimeout(()=>{i[e].style.opacity=1,i[t].style.display="none"},10)},3e3)}var t=this.widget.querySelector(".ti-verified-by-row .ti-disclaimer");t&&(t.innerHTML=t.innerHTML.replace(/^(.+?)[.!?]\s/,"<strong>$1.</strong> ")),this.callSubclassesMethods("format"),this.formatInternationalNumbers(),this.widget.querySelectorAll(".ti-footer, .ti-header").forEach(t=>{let e=Trustindex.getDefaultCompanyAvatarUrl();return-1===this.widget.layoutCategory.indexOf("button")&&-1===this.widget.layoutCategory.indexOf("fomo")||(e=null),Trustindex.profileImageFallback(t,e)})}resize(s=!1){if(void 0!==this.widget.TrustindexReviewWidget){this.widget.style.width="";var o=this.widget.offsetWidth,a;Trustindex.hide(this.widget);let t=window.getComputedStyle(this.widget,null).getPropertyValue("width"),e=this.widget,i=0,r=0;do{if(!(e=e.parentNode)||"HTML"===e.nodeName)break;e.clientWidth&&(a=window.getComputedStyle(e,null),r=parseFloat(a.paddingLeft)+parseFloat(a.paddingRight),i=e.clientWidth-r)}while(i<100);"100%"===t&&i&&o>i?(this.widget.style.width=i+"px",Trustindex.show(this.widget),i<e.offsetWidth-r&&(this.widget.style.width=e.offsetWidth-r+"px")):Trustindex.show(this.widget),this.widget.originalColCount<=1?this.classes.forEach(t=>{"function"==typeof t.resize&&t.callOneOriginalColumnResize&&t.resize()}):(this.callSubclassesMethods("resize",s),this.resizeAfter())}}resizeAfter(){this.callSubclassesMethods("resizeAfter")}getPublicId(){return this.widget.pid}getReviews(){return void 0!==this.widget.TrustindexReviewWidget?this.widget.TrustindexReviewWidget.getReviews():null}destroy(){this.callSubclassesMethods("destroy"),this.widget.floatBodyCheckInterval&&clearInterval(this.widget.floatBodyCheckInterval),delete this.widget.layoutId,delete this.widget.container,delete this.widget}registerEvents(){this.widget.addEventListener("click",t=>{t.target.matches('a[href="#popup"], a[href="#dropdown"]')&&(t.stopPropagation(),this.callSubclassesMethods("click",t))},!0),this.widget.addEventListener("click",e=>{if(e.target.matches(".ti-header-write-btn-container > .ti-header-write-btn:not([href])")){e.preventDefault();let t=e.target.closest(".ti-header-write-btn-container").querySelector(".ti-write-btn-dropdown");t.classList.contains("ti-active")||(t.classList.add("ti-active"),setTimeout(()=>{document.addEventListener("click",()=>t.classList.remove("ti-active"),{once:!0})},1))}this.callSubclassesMethods("click",e)}),this.widget.addEventListener("keydown",t=>{"Enter"===t.key&&this.callSubclassesMethods("enter",t)})}documentClick(){this.callSubclassesMethods("documentClick",event)}documentKeyup(){this.callSubclassesMethods("documentKeyup",event)}isOnViewport(){var t=this.widget.container.getBoundingClientRect(),e=this.widget.container.offsetWidth-40,i=this.widget.container.offsetHeight-40;return t.top>=-1*i&&t.left>=-1*e&&t.right<=(window.innerWidth||document.documentElement.clientWidth)+i&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)+i}loadSpriteImage(i){let e=Trustindex.getWidgetUrl(this.widget.pid)+"sprite.jpg",r=0,s=0,o=0;if(!i.classList.contains("ti-company-sprite-profile-image")){let t=i.closest(".ti-review-item"),e=getComputedStyle(i);if(t=t||i.closest(".ti-profile-img"),"auto"===e.height||"0px"===e.height)return setTimeout(()=>this.loadSpriteImage(i),100);r=t.getAttribute("data-index")?parseInt(t.getAttribute("data-index")):[].indexOf.call(t.parentNode.children,t)-t.parentNode.querySelectorAll(".ti-ai-summary-item").length,(s=parseInt(e.height||"0"))&&!isNaN(s)||(s=40);var a=this.widget.querySelector(".ti-company-sprite-profile-image");a&&(e=getComputedStyle(a),(o=parseInt(e.height||"0"))&&!isNaN(o)||(o=65))}let n=function(){i.style.background='url("'+e+'") 0 '+(r*s*-1-o)+"px"};i.getAttribute("data-webp")?Trustindex.isWebpSupported(t=>{t&&(e=e.replace(".jpg",".webp")),n()}):n()}updateLogoImages(){void 0!==this.widget.TrustindexTopRatedWidget&&void 0===this.widget.TrustindexSliderWidget||this.widget.querySelectorAll("\n\t\t\t\t.ti-header-logo .ti-header-logo-img:not([data-logo-styles-added]):not
28([data-no-logo-styles]),\n\t\t\t\t.ti-large-logo img:not([data-logo-styles-added]):not([data-no-logo-styles]),\n\t\t\t\t.ti-small-logo img:not([data-logo-styles-added]):not([data-no-logo-styles])\n\t\t\t").forEach(e=>{let i="small-logo",t=(e.matches(".ti-header-logo .ti-header-logo-img")?i="header-logo":e.matches(".ti-large-logo img")&&(i="large-logo"),e.getAttribute("alt")),r=Trustindex.additionalLogoStyles[i][t]||null,s=/\/logo-([^-\.]+)/.exec(e.src);if(r=s?Trustindex.additionalLogoStyles[i][t+"-"+s[1]]||r:r){let t=r.replace(/((?:height|width): \d+px)/g,"$1 !important");"small-logo"!==i&&"large-logo"!==i||(t=t.replace(/([\d.]+)px/g,(t,e)=>{var e=parseFloat(e)*this.widget.size;return Math.round(10*e)/10+"px"})),e.setAttribute("style",t),e.setAttribute("data-size",this.widget.size)}e.setAttribute("data-logo-styles-added",1)})}formatInternationalNumbers(){var t=[".ti-header-rating-reviews",".ti-footer .ti-rating-text",".ti-footer strong",".ti-header .ti-rating-text",".ti-header .ti-text span",".ti-ai-summary-item .ti-date",".ti-header .nowrap strong",".ti-header .ti-profile-details .ti-text",".ti-popup-header .ti-rating-text"];-1!==[118,119,120].indexOf(this.widget.layoutId)&&(t.push(".ti-header .ti-title-text"),t.push(".ti-header .ti-subtitle-text")),this.widget.querySelectorAll(t.join(", ")).forEac
28h(t=>{if(!t.hasAttribute("data-number-formatted")){let s=t=>{var e,i,r,r;t.nodeType!==Node.TEXT_NODE?t.nodeType!==Node.ELEMENT_NODE||t.hasAttribute("data-number-formatted")||t.childNodes.forEach(t=>s(t)):(i=(e=t.textContent).match(/\b\d{4,}\b/))&&(r=parseInt(i[0],10))&&(r=Intl.NumberFormat(Trustindex.getLocaleTag(this.widget.language)).format(r),t.textContent=e.replace(i[0],r))};s(t),t.setAttribute("data-number-formatted",1)}})}}class r{constructor(t){t.reviewTextMode=t.getAttribute("data-review-text-mode")||"readmore",t.reviewsContainer=t.querySelector(".ti-reviews-container"),t.reviewsContainerWrapper=t.querySelector(".ti-reviews-container-wrapper"),t.locales.time=t.getAttribute("data-time-locale"),t.locales.replyBy=t.getAttribute("data-reply-by-locale"),t.locales.onlyRating=t.getAttribute("data-only-rating-locale"),t.locales.onlyRating||"en"!==t.language||(t.locales.onlyRating="This user only left a rating."),t.isCompanyBadge=t.container.offsetWidth>t.reviewsContainer.offsetWidth,t.reviewTargetWidth=parseInt(t.getAttribute("data-review-target-width")||(t.isCompanyBadge?275:300)),this.widget=t,this.widget.originalColCount=this.getColCount(),this.initHeaderClick()}getReviews(){let a=[];return this.widget.reviewsContainer.querySelectorAll(".ti-review-item:not(.ti-cloned)").forEach(t=>{let e="",i="-",r=t.querySelectorAll(".ti-stars .ti-star.f").length+t.querySelectorAll(".ti-stars .ti-star.h").length/2,s=new Date(1e3*parseInt(t.getAttribute("data-time"))).toISOString().replace("Z","+00:00"),o=t.querySelector(".ti-review-text-container");o&&!o.classList.contains("ti-empty-text")&&(e=this.getReviewText(o),i=t.getAttribute("data-language")||null),a.push({id:t.getAttribute("data-id")||null,url:t.getAttribute("data-platform-page-url")||null,language:i,createdAt:s,reviewerName:t.querySelector(".ti-name").textContent.trim(),reviewBody:e,rating:t.getAttribute("data-rating")||r,maxRating:parseInt(t.getAttribute("data-max-rating")||0)})}),a}getReviewText(e){let i=e.querySelector(".ti-reply-by-owner-title"),r="";var t;if(e.querySelector(".ti-show-original-text"))return(t=Trustindex.parseJsonData(Trustindex.getJsonDataElement(e))).text||t;if(i){let t=e.firstChild;for(;t&&t!==i;)t.nodeType===Node.TEXT_NODE&&(r+=t.textContent),t.nodeType===Node.ELEMENT_NODE&&"SCRIPT"!==t.tagName&&(r+=t.textContent),t=t.nextSibling}else r=e.textContent;return r.trim()}format(){this.widget.isCompanyBadge=this.widget.container.offsetWidth>this.widget.reviewsContainer.offsetWidth,this.widget.reviewsContainer.querySelectorAll(".ti-review-item").forEach(t=>this.formatReview(t))}formatReview(t){var e=t.querySelector(".ti-review-text-container"),e;e&&(this.formatReviewText(e),e.classList.contains("ti-empty-text")||e.querySelectorAll(".ti-review-image").forEach(t=>{var e=document.createElement("span");e.textContent="​",t.after(e),20<e.offsetTop-t.offsetTop&&this.widget.classList.add("ti-ios-fallback"),e.remove()}));let i=t.getAttribute("data-platform-page-url");i&&-1!==i.indexOf("trustpilot.com")&&(e=t.querySelector(".ti-name"))&&(e.style.cursor="pointer",e.addEventListener("click",t=>Trustindex.openWindow(i)));var e=t.getAttribute("data-time"),r,s,s;e&&this.widget.locales.time&&(r=t.querySelector(".ti-date:not(.ti-date-comment)"))&&(s=new Date(1e3*e).toLocaleString(Trustindex.getLocaleTag(this.widget.language),{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"}),r.innerHTML=`
29					<span class="ti-with-tooltip">
30						<span class="ti-tooltip" style="display:none">${s}</span>
31						${Trustindex.getRelativeTime(parseInt(e),this.widget.locales.time)}
32					</span>
33				`,(s=r.querySelector(".ti-tooltip")).style.width=s.firstChild.offsetWidth+"px"),Trustindex.profileImageFallback(t)}formatReviewText(i){let r=i.querySelectorAll("svg");if(0===r.length){i.querySelectorAll(".ti-review-image").forEach(t=>{[t.previousSibling,...t.childNodes].filter(t=>t&&Node.TEXT_NODE===t.nodeType&&""===t.textContent.trim()).forEach(t=>t.remove())});let t=i.innerHTML;t=t.replace(/<img[^>]+class="emoji" alt="\u263a" src="[^'"]+">/gm,Trustindex.svgs.good+"&nbsp;&middot;&nbsp;").replace(/<img[^>]+class="emoji" alt="\u2639" src="[^'"]+">/gm,Trustindex.svgs.bad+"&nbsp;&middot;&nbsp;");
33var e=i.closest(".ti-review-item").classList,e;(e.contains("source-Booking")||e.contains("source-Arukereso"))&&(e=-1!==t.indexOf("☺"),t=t.replace(/\s+\u263a/g,"<br /><br />"+Trustindex.svgs.good+"&nbsp;&middot;&nbsp;").replace(/\s+\u2639/g,(e?"<br />":"<br /><br />")+Trustindex.svgs.bad+"&nbsp;&middot;&nbsp;")),t=t.replace(/\n/g,"<br />"),i.innerHTML=Trustindex.getDecodedHtml(t),r=i.querySelectorAll("svg")}if(r.length){let e=.95*parseInt(i.style.fontSize||14);r.forEach(t=>{t.style.width=e+"px",t.style.height=e+"px"})}var e;i.innerHTML.trim().replace(/<!-- R-CONTENT -->/g,"").replace(/<br\s?\/?>/g,"").replace(new RegExp('<span class="ti-reply-by-owner-title">.*',"s"),"").replace(/<div class="ti-more-image-count">[\d+]+<\/div>/g,"").replace(/<div class="ti-review-image[^"]*"[^>]*><img[^>]*><\/div>/g,"")||(e=i.innerHTML.includes('<div class="ti-review-image'),i.innerHTML=e?i.innerHTML+this.widget.locales.onlyRating:this.widget.locales.onlyRating+i.innerHTML)}resize(){let t=this.widget.reviewsContainer.offsetWidth;var e;this.widget.isCompanyBadge&&void 0!==this.widget.TrustindexSliderWidget&&this.widget.TrustindexSliderWidget.footer&&(void 0===this.companyBadgeWidth&&(this.companyBadgeWidth=this.widget.TrustindexSliderWidget.footer.offsetWidth,e=window.getComputedStyle(this.widget.TrustindexSliderWidget.footer,null),this.companyBadgeWidth+=parseInt(e.getPropertyValue("margin-left")),this.companyBadgeWidth+=parseInt(e.getPropertyValue("margin-right"))),t=this.widget.container.offsetWidth-this.companyBadgeWidth);let i=Math.floor(t/this.widget.reviewTargetWidth);1<i&&44===this.widget.layoutId&&i--,i=Math.min(i,this.getReviewCount()),this.widget.isCompanyBadge?(t<350&&(i=0),this.widget.container.setAttribute("class","ti-widget-container ti-col-"+(i+1))):(i<1&&(i=1),this.widget.container.setAttribute("class","ti-widget-container ti-col-"+i))}resizeAfter(){let r=0;this.widget.reviewsContainer.querySelectorAll(".ti-verified-review.ti-verified-platform").forEach(t=>{var e=t.querySelector(".ti-verified-tooltip"),i;r||(i=getComputedStyle(e),r=t.parentNode.offsetWidth-t.offsetLeft-5,parseInt(i.left)<0&&(r=t.offsetLeft-t.parentNode.offsetLeft-5)),e.style.width=r+"px"})}click(t){var t;t.target.matches(".ti-show-original-text")&&(this.showOriginalText(t),void 0!==this.widget.TrustindexReadMoreModule)&&(t=t.target.closest(".ti-review-text-container"),this.widget.TrustindexReadMoreModule.resetReview(t))}showOriginalText(t){t.preventDefault(),t.stopPropagation();let e=t.target.closest(".ti-review-text-container"),i=Trustindex.parseJsonData(Trustindex.getJsonDataElement(e)),r=void 0!==i.text?i.text:i,s=e.querySelector(".ti-review-image");s&&(r=s.outerHTML+r),void 0!==i.reply&&i.reply&&(r+='<br /><br /><span class="ti-reply-by-owner-title">'+this.widget.locales.replyBy+"</span><br />"+i.reply),e.innerHTML=r,this.formatReviewText(e)}initHeaderClick(){var t=this.widget.querySelector("a[href]:not(.ti-write-btn-dropdown-item):not(.ti-header-write-btn)"),t;if(t){let e=t.getAttribute("href");e&&"#"!==t.getAttribute("href")&&(t=t.closest(".ti-header:not(a), .ti-footer:not(a), .ti-popup-header:not(a)"))&&t.querySelector(".ti-large-logo, .ti-profile-img, .ti-profile-details, .ti-logo-stars-flex")&&!t.querySelector(".ti-disclaimer")&&(t.classList.add("ti-clickable-link"),t.addEventListener("click",t=>{if("A"===t.target.nodeName)return!1;t.preventDefault(),Trustindex.openWindow(e)}))}}getColCount(){var t=this.widget.container.classList.toString();return-1===t.indexOf("ti-col-")?1:parseInt(t.replace(/^.*ti-col-(\d+).*$/,"$1"))}getReviewCount(){return this.widget.reviewsContainer.querySelectorAll(".ti-review-item:not(.ti-cloned)").length}}class s{constructor(t){this.widget=t,this.callOneOriginalColumnResize=!0,this.controls=this.widget.querySelector(".ti-controls"),this.footer=this.widget.container.querySelector(".ti-footer"),this.rotateTo=this.widget.getAttribute("data-rotate-to")||"right",this.autoPlayDirection="right"===this.rotateTo?"next":"prev",this.autoPlayTimeout=parseInt(this.widget.getAttribute("data-pager-autoplay-timeout")),this.state=0,this.position="0px",this.prevButton=this.widget.querySelector(".ti-prev"),this.nextButton=this.widget.querySelector(".ti-next"),this.isMoving=!1,this.isLoop=this.widget.getAttribute("data-sli
33der-loop"),this.isMouseOver=!1,this.stateLine=0,this.lineContainer=this.widget.querySelector(".ti-controls-line"),this.lineDot=this.widget.querySelector(".ti-controls-line .dot"),this.addEvents()}format(){this.reviewNum=this.getReviewNum(),this.visibleReviewNum=null,this.widget.reviewsContainerWrapper.querySelectorAll(".ti-review-item").forEach(t=>t.style.position="relative"),"left"===this.rotateTo&&Array.from(this.widget.reviewsContainerWrapper.querySelectorAll(".ti-review-item")).reverse().forEach(t=>this.widget.reviewsContainerWrapper.appendChild(t)),this.setAutoplay()}resize(t=!1){var e=this.getVisibleReviewNum();!t&&e===this.visibleReviewNum||(null===this.visibleReviewNum&&this.reset(!1),this.reviewNum=this.getReviewNum(),this.visibleReviewNum=e,this.renderLine(),this.toggleNavigation(),setTimeout(()=>this.verticalPositionElements(),4)),this.move(this.state,"resize",0)}click(t){(t.target.matches(".ti-controls .ti-next")||t.target.matches(".ti-controls .ti-prev"))&&(t.preventDefault(),this.move(t.target.classList.contains("ti-next")?"next":"prev","manual",500))}enter(t){(t.target.matches(".ti-controls .ti-next")||t.target.matches(".ti-controls .ti-prev"))&&(t.preventDefault(),this.move(t.target.classList.contains("ti-next")?"next":"prev","manual",500))}documentKeyup(t){"ArrowLeft"===t.key&&this.widget.TrustindexWidget.isOnViewport()?this.move("prev","keypress",500):"ArrowRight"===t.key&&this.widget.TrustindexWidget.isOnViewport()&&this.move("next","keypress",500)}destroy(){void 0!==this.autoPlayInterval&&clearInterval(this.autoPlayInterval)}renderLine(){if(this.lineContainer){let e=1+this.reviewNum-this.visibleReviewNum;if(this.isLoop&&this.reviewNum!==this.visibleReviewNum&&(e=this.reviewNum),this.lineDot){let t=parseInt(this.lineContainer.offsetWidth/e);t<1&&(t=1),this.lineDot.style.width=t+"px",this.lineDot.style.left=Math.ceil(this.stateLine/e*100)+"%"}}}setAutoplay(){this.autoPlayTimeout&&(this.autoPlayInterval=setInterval(()=>{this.move(this.autoPlayDirection,"auto",1e3)},1e3*this.autoPlayTimeout))}addEvents(){let r,s,o,a,n;this.widget.container.addEventListener("mouseenter",t=>this.isMouseOver=!0),this.widget.container.addEventListener("mouseleave",t=>this.isMouseOver=!1),this.widget.reviewsContainer.addEventListener("keydown",t=>{"Tab"===t.key&&this.isMoving&&t.preventDefault()});let d,l=null,h=!1,g=!1;this.widget.reviewsContainer.addEventListener("touchstart",t=>{r=t.touches[0].pageX,o=t.touches[0].pageY,s=null,a=null,n=null,l=this.getReviewWidth(),g=!1,h=!1,d&&clearTimeout(d),Trustindex.disableBodyScroll(),this.isMouseOver=!0},{passive:!0}),this.widget.reviewsContainer.addEventListener("touchmove",t=>{s=t.touches[0].pageX,a=t.touches[0].pageY;var t=s-r,e=a-o,i=Math.abs(Math.atan2(e,t)*(180/Math.PI)),e,i;if(h=(h||15<Math.abs(e)&&60<i&&i<120)&&!g,g=(g||10<Math.abs(t)&&(i<=60||120<=i))&&!h,h)Trustindex.enableBodyScroll();else if(g){if(this.isMoving)return!1;n=parseFloat(this.position)+t,this.animate(this.position,n+"px",0),this.isLoop&&(i=("prev"==(e=r>s?"next":"prev")?-1:1)*Math.ceil(Math.abs(s-r)/l),this.addClonedReviews(this.state+i,e)),g=!0}},{passive:!0}),this.widget.reviewsContainer.addEventListener("touchend",t=>{if(g&&!h)if(r&&s&&25<Math.abs(r-s)&&n){let t=r>s?"next":"prev";var e,i,i,i;this.widget.reviewsContainer.querySelectorAll(".ti-review-text-container").forEach(t=>t.scrollTop=0),"next"==t&&this.isNext||"prev"==t&&this.isPrev?(this.position=n+"px",e=Math.ceil(Math.abs(s-r)/l),i=-1*(this.state+e*("next"==t?1:-1))*l,i=parseInt(Math.abs(i-n)),i=parseInt(i/l*300),this.move(t,"manual",i,e)):(this.animate(n+"px",parseFloat(this.position)+"px",120),setTimeout(()=>this.move(t,"manual",400,Math.ceil(Math.abs(s-r)/l)),120))}else n&&n!==parseFloat(this.position)&&this.animate(n+"px",parseFloat(this.position)+"px",120);r=null,s=null,n=null,g=!1,h=!1,d=setTimeout(()=>Trustindex.enableBodyScroll(),400),this.isMouseOver=!1},{passive:!0}),this.widget.reviewsContainer.addEventListener("touchcancel",t=>{Trustindex.enableBodyScroll(),this.isMouseOver=!1})}move(r,t,s=1e3,i=1){if(-1!==["manual","keypress"].indexOf(t)&&("next"===r&&!this.isNext||"prev"===r&&!this.isPrev))return this.animateThereIsNoReviews(r);if(!(!this.widget.clientWidth||this.reviewNum<=this.visibleReviewNum||this.isMoving||this.isMouseOver&&"auto"===t||!0===this.widget.isLightboxShowing)){"manual"===t&&void 0!==this.autoPlayInterval&&(clearInterval(this.autoPlayInterval),delete this.autoPlayInterval),"resize"!==t&&(t=r),"next"!==r&&"prev"!==r||(r=this.state+i*("next"===r?1:-1));let e=this.getMaximumState();
33if(this.isLoop){if(this.addClonedReviews(r,t),r<this.state&&setTimeout(()=>{let t=".ti-review-item.ti-cloned.ti-cloned--end";r>e&&(t+=":last-child"),this.widget.reviewsContainer.querySelectorAll(t).forEach(t=>t.remove())},s),r<0&&"prev"===t&&setTimeout(()=>{this.widget.reviewsContainer.querySelectorAll(".ti-review-item.ti-cloned--dragging").forEach(t=>t.classList.remove("ti-cloned--dragging")),this.widget.reviewsContainerWrapper.scrollLeft=0,this.reset()},s),"next"===t){let i=r-this.state;setTimeout(()=>{for(let t=0;t<i;t++){var e=this.widget.reviewsContainer.querySelector(".ti-review-item.ti-cloned.ti-cloned--start:first-child");e&&(e.remove(),this.reset())}},s)}"next"===t?(this.stateLine++,this.stateLine>this.reviewNum-1&&(this.stateLine=0)):"prev"===t?(this.stateLine--,this.stateLine<0&&(this.stateLine=this.reviewNum-1)):this.stateLine=r}else r=Math.min(e,Math.max(0,r)),this.stateLine=r;var i=-1*r*this.getReviewWidth()+"px";this.animate(this.position,i,s,this.state!==r),this.position=i,this.state!==r&&(this.state=r,this.isMoving=!0,this.renderLine(),this.toggleNavigation(),setTimeout(()=>this.isMoving=!1,s),void 0!==this.widget.TrustindexReviewImageModule)&&this.widget.TrustindexReviewImageModule.toggleGalleryVisiblity()}}animate(t,i,r,s=!1){this.widget.reviewsContainer.querySelectorAll(".ti-review-item").forEach(e=>{e.animate({left:[t,i]},{duration:r,fill:"both",easing:"ease-in-out"}),setTimeout(()=>{var t;this.toggleReadmoreTab(e,!0),s&&!this.isReviewVisible(e)&&(t=e.querySelector(".ti-read-more .ti-read-more-collapse"))&&t.click()},r)})}animateThereIsNoReviews(t){this.isMoving=!0;let i=parseFloat(this.position),r="next"===t?-1:1,s=0,o=0,a=(t,e,i,r)=>setTimeout(()=>this.animate(t+"px",e+"px",i),r);return[{position:30,speed:100},{position:-30,speed:80},{position:15,speed:60},{position:-15,speed:50}].forEach((t,e)=>{0===e?s=i+t.position*r:(i=s,s+=t.position*r),a(i,s,t.speed,o),o+=t.speed}),setTimeout(()=>this.isMoving=!1,o),!0}addClonedReviews(r,t){var s=this.getMaximumState();if(s<r&&(this.state<r||"resize"===t)){let t=this.widget.reviewsContainer.querySelectorAll(".ti-review-item.ti-cloned.ti-cloned--end").length,e=r-s-t,i=t;i>=this.reviewNum&&(i-=parseInt(i/this.reviewNum)*this.reviewNum);for(let t=0;t<e;t++){var o=this.widget.reviewsContainer.querySelectorAll('.ti-review-item:not(.ti-cloned):not([style*="display: none"])')[i+t].cloneNode(!0);o.classList.add("ti-cloned","ti-cloned--end"),this.widget.reviewsContainerWrapper.appendChild(o)}}if(r<0&&"prev"===t){var s=this.widget.reviewsContainer.querySelectorAll(".ti-review-item.ti-cloned.ti-cloned--start.ti-cloned--dragging").length,t=this.widget.reviewsContainer.querySelectorAll(".ti-review-item.ti-cloned.ti-cloned--start").length,e=Math.abs(r-this.state)-s,i=this.reviewNum-1-t%this.reviewNum,a=this.getReviewWidth(),n=parseInt(this.widget.reviewsContainerWrapper.scrollLeft/a);for(let t=0;t<e;t++){var d=this.widget.reviewsContainer.querySelectorAll('.ti-review-item:not(.ti-cloned):not([style*="display: none"])')[i-t].cloneNode(!0);d.classList.add("ti-cloned","ti-cloned--start","ti-cloned--dragging"),this.widget.reviewsContainerWrapper.insertBefore(d,this.widget.reviewsContainerWrapper.firstChild),this.widget.reviewsContainerWrapper.scrollLeft=parseInt((t+1+n)*a)}}}toggleNavigation(){this.prevButton&&this.nextButton&&(this.isPrev=!0,Trustindex.show(this.prevButton),this.isNext=!0,Trustindex.show(this.nextButton),this.isLoop?this.reviewNum===this.visibleReviewNum&&(this.isPrev=!1,Trustindex.hide(this.prevButton),this.isNext=!1,Trustindex.hide(this.nextButton)):(0===this.state&&(this.isPrev=!1,Trustindex.hide(this.prevButton),this.autoPlayDirection="next"),this.state>=this.getMaximumState()&&(this.isNext=!1,Trustindex.hide(this.nextButton),this.autoPlayDirection="prev")))}verticalPositionElements(){var e=this.widget.querySelector('.ti-review-item:not(.ti-hidden-review):not([style*="display: none"]) .ti-review-image-container');if(void 0===this.widget.reviewsContainerWrapper.paddingTop&&(this.widget.reviewsContainerWrapper.paddingTop=parseInt(window.getComputedStyle(this.widget.reviewsContainerWrapper,null).getPropertyValue("padding-top"))),this.controls&&-1!==[4,5,13,14,34,36,44,95,105,108].indexOf(this.widget.layoutId)){let t=this.widget.reviewsContainerWrapper.offsetHeight/2+this.widget.reviewsContainerWrapper.paddingTop/2-3;e&&(t-=e.offsetHeight/2),this.controls.style.top=t+"px"}if(this.footer&&this.widget.container.offsetWidth>this.widget.reviewsContainer.offsetWidth){let t=(this.widget.reviewsContainerWrapper.offsetHeight-this.footer.offsetHeight)/2+this.widget.reviewsContainerWrapper.paddingTop/2;e&&(t-=e.offsetHeight/2),this.widget.container.style.alignItems="flex-start",this.footer.style.marginTop=t+"px"}}getReviewNum(){return this.widget.reviewsContainer.querySelectorAll('.ti-review-item:not(.ti-cloned):not([style*="display: none"])').length}getVisibleReviewNum(){if(void 0!==this.widget.TrustindexCloseModule)return 1;let t=this.widget.TrustindexReviewWidget.getColCount(),e=(this.widget.container.offsetWidth>this.widget.reviewsContainer.offsetWidth&&--t,t);var i;return this.widget.reviewsContainer.querySelector(".ti-review-item")&&(i=this.widget.reviewsContainer.querySelector('.ti-review-item:not([style*="display: none"])'))&&(e=Math.floor(this.widget.reviewsContainer.offsetWidth/i.offsetWidth)),Math.max(t,e,1)}getMaximumState(){return Math.max(this.reviewNum-this.visibleReviewNum,0)}getReviewWidth(){var t=this.widget.reviewsContainer.querySelectorAll('.ti-review-item:not([style*="display: none"])'),e=this.getTransformScale(),i;for(i of t){var r=i.getBoundingClientRect().width;if(r)return r/e}return this.widget.reviewsContainerWrapper.getBoundingClientRect().width/(this.visibleReviewNum||1)/e}getTransformScale(){var t=this.widget.reviewsContainer.querySelectorAll(".ti-review-item"),t,e,i,e;return!(t.length<2)&&(i=(e=t[t.length-1]).offsetLeft-(t=t[0]).offsetLeft)&&0<(e=(e.getBoundingClientRect().left-t.getBoundingClientRect().left)/i)?e:1}isReviewVisible(t){var e=t.offsetLeft-this.widget.reviewsContainerWrapper.offsetLeft,i;return e>=this.widget.reviewsContainerWrapper.scrollLeft&&e+t.offsetWidth<=this.widget.reviewsContainerWrapper.scrollLeft+this.widget.reviewsContainerWrapper.offsetWidth}toggleReadmoreTab(t){var e=t.querySelector(".ti-read-more");null!=e&&e.setAttribute("tabindex",this.isReviewVisible(t)?0:"")}
33reset(t=!0){this.position="0px",this.state="left"===this.rotateTo?this.getMaximumState():0,t&&this.widget.reviewsContainer.querySelectorAll(".ti-review-item").forEach(t=>t.animate({left:0},{fill:"both"}))}}class n{constructor(t){t.originalColCount=3,this.widget=t}resize(){let i=this.widget.TrustindexReviewWidget.getColCount(),t=this.widget.container.querySelectorAll('.ti-review-item:not([style*="display: none"])'),e=this.widget.container.querySelectorAll('.ti-review-item[style*="display: none"]');this.widget.reviewsContainerWrapper.innerHTML="";for(var r=0,s=[];r<i;r++)s[r]=document.createElement("div"),s[r].setAttribute("class","ti-column"),this.widget.reviewsContainerWrapper.appendChild(s[r]);Array.from(t).sort(function(t,e){return(parseInt(t.getAttribute("data-index"))||0)-(parseInt(e.getAttribute("data-index"))||0)}).forEach((t,e)=>s[e%i].appendChild(t)),e.forEach(t=>s[0].appendChild(t))}}class d{constructor(t){this.widget=t,Trustindex.convertToDialog(this.widget.querySelector(".ti-popup-widget"))}click(t){if(t.target.matches("a[data-subcontent]")){t.preventDefault();var e=t.target;if(e.subcontentTarget=this.widget.querySelector(e.getAttribute("data-subcontent-target")),!e.subcontentTarget||e.classList.contains("ti-loading"))return;if(""!==e.subcontentTarget.innerHTML.trim())e.removeAttribute("data-subcontent"),e.removeAttribute("data-subcontent-target");else if(this.widget.pid)return this.load(e)}(t.target.matches('a[href="#popup"]')||t.target.matches('a[href="#dropdown"]'))&&(t.preventDefault(),this.togglePopup(t.target)),t.target.matches(".ti-popup-header .ti-close-lg")&&(t.preventDefault(),this.closePopup())}
33documentClick(t){void 0===this.widget.popup||t.target.closest(".ti-widget-container, .ti-widget-lightbox")||(t.preventDefault(),this.closePopup())}load(e){return t=this,a=null,n=function*(){e.classList.add("ti-loading");var t=Trustindex.getWidgetUrl(this.widget.pid)+"_subcontent-"+e.getAttribute("data-subcontent")+".html",t=yield Trustindex.request(t);if(!t)return!1;e.removeAttribute("data-subcontent"),e.removeAttribute("data-subcontent-target"),e.subcontentTarget.innerHTML=t,e.classList.remove("ti-loading"),this.widget.TrustindexWidget.getSubclasses(),this.widget.TrustindexWidget.formatInternationalNumbers(),this.togglePopup(e)},new Promise((e,i)=>{var r=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,a)).next())});var t,a,n}getPopup(){return this.widget.querySelector(".ti-dropdown-widget, .ti-popup-widget")}isOpen(){var t=this.getPopup();return!!t&&t.classList.contains("active")}registerDialogEvents(t){t.tiDialogEventsRegistered||(t.tiDialogEventsRegistered=!0,t.addEventListener("close",()=>{t.open||this.closePopup()}))}togglePopup(t){return this.isOpen()?this.closePopup():this.openPopup(t)}openPopup(t){if(this.widget.button=t,this.widget.popup=this.getPopup(),!this.widget.popup)return delete this.widget.button;this.widget.button.classList.add("active"),this.widget.popup.classList.add("active"),"DIALOG"===this.widget.popup.tagName&&!this.widget.popup.open&&this.widget.popup.isConnected&&(this.registerDialogEvents(this.widget.popup),this.widget.popup.showModal()),this.widget.popupFormatted||(this.widget.popupFormatted=!0,this.widget.TrustindexWidget.format(),this.widget.TrustindexWidget.callSubclassesMethods("resize"))}closePopup(){var t=this.widget.button,e=this.widget.popup;delete this.widget.button,delete this.widget.popup,t&&t.classList.remove("active"),e&&(e.classList.remove("active"),"DIALOG"===e.tagName&&e.open&&e.close(),t)&&t.focus({preventScroll:!0})}destroy(){var t=this.getPopup();t&&"DIALOG"===t.tagName&&t.open&&t.close()}}class l{constructor(t){this.disclaimer=t.querySelector(".ti-disclaimer"),this.widget=t,this.addEvents()}addEvents(){var t=this.widget.querySelector(".ti-verified-by");t&&t.addEventListener("mouseenter",()=>{this.disclaimer.classList.remove("ti-bottom"),this.disclaimer.getBoundingClientRect().y<0&&this.disclaimer.classList.add("ti-bottom")})}}class h{constructor(t){var t,t=(this.widget=t,this.fomoDay=parseInt(this.widget.getAttribute("data-fomo-day")||"0"),this.hideCount=parseInt(this.widget.getAttribute("data-hide-count")||"0"),this.siteData={},this.isOnlineVisitors=!1,document.querySelector('meta[name="ti-site-data"]'));t&&(this.siteData=JSON.parse(atob(t.getAttribute("content").trim())),this.siteData.r=Object.fromEntries((null!=(t=this.siteData.r)?t:"").split("!").map(t=>t.split(":").map(Number))))}format(){var t,t,t,e=this.widget.querySelector(".ti-title-text"),t,t;e&&-1!==e.innerText.indexOf("%registrations%")&&(t=null!=(t=null==(t=null==(t=this.siteData)?void 0:t.r)?void 0:t[this.fomoDay])?t:0,e.innerHTML=e.innerText.replace("%registrations%",'<span class="ti-fomo-count">'+t+"</span>")),e&&-1!==e.innerText.indexOf("%online-visitors%")&&(this.isOnlineVisitors=!0,e.innerHTML=e.innerText.replace("%online-visitors%",'<span class="ti-fomo-count">0</span>'),this.refreshOnlineUsers()),!this.hideCount||Trustindex.isAdminUrl()||Trustindex.isWordpressAdminUrl()||Trustindex.isTestWidgetUrl()||(t=this.widget.querySelector(".ti-fomo-count"))&&!(parseInt(t.innerText)<this.hideCount)||(this.isOnlineVisitors?Trustindex.hide(this.widget):this.widget.remove())}refreshOnlineUsers(){let t,e=Trustindex.getDecodedHtml(null!=(t=this.siteData.o)?t:"");if(e){let t=this.widget.querySelector(".ti-fomo-count");t&&(this.refreshOnlineUsersInterval&&clearInterval(this.refreshOnlineUsersInterval),this.getOnlineUsers(t,e),this.refreshOnlineUsersInterval=setInterval(()=>this.getOnlineUsers(t,e),6e4))}}getOnlineUsers(i,r){var t,a,n;t=this,a=null,n=function*(){let t=0,e=yield Trustindex.request(r);e&&(t=parseInt(e)),i.innerText=t,!this.hideCount||Trustindex.isAdminUrl()||Trustindex.isWordpressAdminUrl()||Trustindex.isTestWidgetUrl()||(t<this.hideCount?Trustindex.hide(this.widget):Trustindex.show(this.widget))},new Promise((e,i)=>{var r=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,a)).next())})}click(t){t.target.matches(".ti-header-closed .ti-header")&&Trustindex.isMobileDevice()&&(t.preventDefault(),t.target.closest(".ti-header-closed").classList.remove("ti-header-closed"))}}class g{constructor(t){this.widget=t,sessionStorage.getItem("ti-widget-closed-"+this.widget.pid)&&(this.widget.remove(),this.widget.TrustindexWidget.destroy())}click(t){t.target.matches(".disable-widget, .ti-close-button")&&(t.preventDefault(),Trustindex.isAdminUrl()||Trustindex.isWordpressAdminUrl()||(sessionStorage.setItem("ti-widget-closed-"+this.widget.pid,!0),this.widget.remove(),this.widget.TrustindexWidget.destroy()))}}class c{constructor(t){this.widget=t,this.callOneOriginalColumnResize=!0}resize(t,e=!0){var i;void 0===this.isReadmore&&(this.isReadmore=["readmore","popup"].includes(this.widget.reviewTextMode)||"undefined"!==window.getComputedStyle(this.widget.reviewsContainer.querySelector(".ti-read-more"),null).getPropertyValue("display")),this.isReadmore&&(i=this.widget.reviewsContainer.querySelectorAll(".ti-review-item:not(.ti-hide) .ti-read-more"),e&&i.forEac
33h(t=>this.setReview(t.closest(".ti-review-item").querySelector(".ti-review-text-container"))),setTimeout(()=>{var t=this.widget.reviewsContainer.querySelectorAll(".ti-review-item:not(.ti-hide) .ti-read-more");Trustindex.isAdminEditUrl()||t.length!==this.widget.reviewsContainer.querySelectorAll('.ti-read-more[style*="opacity: 0"]').length||t.forEach(t=>t.remove())},70))}setReview(t,e=!1){var i=t.closest(".ti-review-item"),i;i&&(null!=(i=i.querySelector(".ti-read-more"))&&i.setAttribute("style",""),t.setAttribute("style","transition: none"),void 0===this.widget.TrustindexSliderWidget&&null!=i&&i.setAttribute("tabindex",0),t.scrollHeight>t.offsetHeight?(t.setAttribute("style",""),t.style.setProperty("height",t.offsetHeight+"px","important"),t.setAttribute("data-initial-height",t.offsetHeight),t.setAttribute("data-expanded-height",this.getExpandedHeight(t)),t.parentNode.classList.contains("ti-review-content")&&(t.parentNode.style.display="block",t.parentNode.style.setProperty("-webkit-line-clamp","unset","important")),!t.getAttribute("data-max-height")&&0<parseInt(window.getComputedStyle(t,null).getPropertyValue("max-height"))&&t.style.setProperty("max-height","unset","important"),i&&(i.getAttribute("data-open-text")&&(i.innerHTML='<span class="ti-read-more-active" aria-label="'+i.getAttribute("data-open-text")+'" role="button">'+i.getAttribute("data-open-text")+"</span>"),i.setAttribute("style",""))):i&&(i.innerHTML="<span>&nbsp;</span>",i.style.opacity=0,i.style.pointerEvents="none",i.removeAttribute("tabindex",0)),e||setTimeout(()=>this.setReview(t,!0),100))}resetReview(t){t.getAttribute("data-is-opened")?(t.style.setProperty("height",""),t.style.setProperty("transition","none"),t.style.setProperty("height",t.scrollHeight+"px","important"),t.setAttribute("data-expanded-height",this.getExpandedHeight(t)),t.style.setProperty("transition","")):(this.setReview(t),this.resize(!0,!1))}click(i){if("popup"!==this.widget.reviewTextMode&&i.target.matches(".ti-read-more-active")){i.preventDefault();let t=i.target,e=t.closest(".ti-review-item").querySelector(".ti-review-text-container");if(e.classList.contains("ti-is-transitioning"))return!1;t.classList.contains("ti-read-more-collapse")?(e.style.setProperty("display",""),e.style.setProperty("-webkit-line-clamp",""),e.style.setProperty("height",e.getAttribute("data-initial-height")+"px","important"),e.removeAttribute("data-is-opened"),e.classList.add("ti-is-transitioning"),setTimeout(()=>e.classList.remove("ti-is-transitioning"),500),t.innerHTML=t.parentNode.getAttribute("data-open-text"),t.setAttribute("aria-label",t.parentNode.getAttribute("data-open-text")),t.classList.remove("ti-read-more-collapse")):(e.style.setProperty("display","block","important"),e.style.setProperty("-webkit-line-clamp","unset","important"),e.style.setProperty("height",e.getAttribute("data-expanded-height")+"px","important"),e.setAttribute("data-is-opened",1),e.classList.add("ti-is-transitioning"),setTimeout(()=>e.classList.remove("ti-is-transitioning"),500),t.innerHTML=t.parentNode.getAttribute("data-collapse-text"),t.setAttribute("aria-label",t.parentNode.getAttribute("data-collapse-text")),t.classList.add("ti-read-more-collapse"))}}enter(t){var e;t.target.matches(".ti-read-more")&&(t.preventDefault(),null!=(e=t.target.querySelector("span"))&&e.click(),"popup"===this.widget.reviewTextMode)&&t.target.blur()}getExpandedHeight(t){let e=t.scrollHeight;return t.getAttribute("data-max-height")&&(e=parseInt(window.getComputedStyle(t,null).getPropertyValue("max-height"))),Math.min(t.scrollHeight,e)}}class u{constructor(t){this.widget=t,this.callOneOriginalColumnResize=!0,this.rows=parseInt(this.widget.getAttribute("data-load-more-rows")||(this.isGrid()?3:5))}resize(){var t=this.widget.querySelector(".ti-load-more-reviews-button");if(t){let e=this.getLimit(),i=(Trustindex.show(t),t.setAttribute("tabindex","0"),this.widget.reviewsContainer.querySelectorAll(".ti-review-item").forEach(t=>t.classList.remove("ti-hide")),this.widget.reviewsContainer.querySelectorAll('.ti-review-item:not([style*="display: none"])'));if(i.length>e)if(void 0!==this.widget.TrustindexMasonryWidget){var r=this.widget.reviewsContainerWrapper.querySelectorAll(".ti-column");e/=this.widget.TrustindexReviewWidget.getColCount();for(let t=0;t<r.length;t++)i=r[t].querySelectorAll('.ti-review-item:not([style*="display: none"])'),this.hideReviews(i,e)}else this.hideReviews(i,e);else Trustindex.hide(t),t.removeAttribute("tabindex")}}click(i){if(i.target.matches(".ti-load-more-reviews-button")){i.preventDefault();let t=i.target,e=this.getLimit();if(void 0!==this.widget.TrustindexMasonryWidget){var r=this.widget.reviewsContainerWrapper.querySelectorAll(".ti-column");e/=this.widget.TrustindexReviewWidget.getColCount();for(let t=0;t<r.length;t++)this.showReviews(r[t].querySelectorAll(".ti-review-item.ti-hide"),e)}else this.showReviews(this.widget.querySelectorAll(".ti-review-item.ti-hide"),e);0===this.widget.querySelectorAll(".ti-review-item.ti-hide").length&&t.remove()}}enter(t){t.target.matches(".ti-load-more-reviews-button")&&(t.preventDefault(),t.target.click())}
33isGrid(){return-1!==this.widget.container.classList.toString().indexOf("ti-col-")&&81!==this.widget.layoutId}getLimit(){return this.isGrid()?this.widget.TrustindexReviewWidget.getColCount()*this.rows:this.rows}hideReviews(t,i){t.forEach((t,e)=>{i-1<e&&t.classList.add("ti-hide")})}showReviews(e,i){for(let t=0;t<e.length&&!(t>=i);t++)e[t].classList.remove("ti-hide"),void 0!==this.widget.TrustindexReadMoreModule&&this.widget.TrustindexReadMoreModule.setReview(e[t].querySelector(".ti-review-text-container"))}}class p{constructor(t){this.widget=t,this.callOneOriginalColumnResize=!0}resize(){var t=this.widget.querySelector(".ti-widget-header .ti-platform-tabs"),e;t&&(t.querySelector(".ti-platform-tab-items").scrollWidth>t.offsetWidth?((e=t.querySelector(".ti-tab-active")).previousElementSibling?t.querySelector(".ti-arrow-prev").style.display="inline-block":t.querySelector(".ti-arrow-prev").style.display="",t.querySelector(".ti-arrow-next").style.display=e.nextElementSibling?"inline-block":""):(t.querySelector(".ti-arrow-prev").style.display="",t.querySelector(".ti-arrow-next").style.display="")),-1!==this.widget.layoutCategory.indexOf("list")&&setTimeout(()=>{var t=this.widget.querySelector(".ti-widget-header .ti-header-content.ti-active"),e;t&&(e=t.querySelector(".ti-header-write-btn-container"))&&(e.style.marginLeft="",e.style.marginTop="",t.offsetHeight-parseInt(window.getComputedStyle(t,null).getPropertyValue("padding-bottom"))>t.firstElementChild.offsetHeight?(e.style.marginLeft=0,e.style.marginTop="15px"):(e.style.marginLeft="",e.style.marginTop=""))},12)}click(t){var e,i,r,s,s,s,r;t.target.matches(".ti-widget-header .ti-platform-tab-items .ti-tab-item")&&(t.preventDefault(),i=(e=t.target).closest(".ti-platform-tab-items"),r=e.getAttribute("data-source"),i.querySelectorAll(".ti-tab-item").forEach(t=>t.classList.remove("ti-tab-active")),e.classList.add("ti-tab-active"),(s=this.widget.querySelector(".ti-widget-header .ti-header-content.ti-active"))&&s.classList.remove("ti-active"),(s=this.widget.querySelector(".ti-widget-header .ti-header-content.source-"+r))&&s.classList.add("ti-active"),this.widget.querySelectorAll(".ti-review-item.ti-cloned").forEach(t=>t.remove()),"all"===r?this.widget.querySelectorAll(".ti-review-item").forEach(t=>Trustindex.show(t)):(this.widget.querySelectorAll(".ti-review-item").forEach(t=>Trustindex.hide(t)),this.widget.querySelectorAll(".ti-review-item.source-"+r).forEach(t=>Trustindex.show(t))),i.scroll({left:e.offsetLeft-28,behavior:"smooth"}),void 0!==this.widget.TrustindexSliderWidget&&this.widget.TrustindexSliderWidget.reset(!1),this.widget.TrustindexWidget.callSubclassesMethods("resize",!0)),t.target.matches(".ti-widget-header .ti-platform-tab-nav .ti-arrow-prev")&&(s=t.target.closest(".ti-platform-tabs").querySelector(".ti-tab-active"))&&s.previousElementSibling&&s.previousElementSibling.click(),t.target.matches(".ti-widget-header .ti-platform-tab-nav .ti-arrow-next")&&(r=t.target.closest(".ti-platform-tabs").querySelector(".ti-tab-active"))&&r.nextElementSibling&&r.nextElementSibling.click()}}class w{constructor(t){this.data=[];var e=Trustindex.getJsonDataElement(t,"ti-lightbox-data");e&&(this.data=Trustindex.parseJsonData(e).data,e.remove()),this.widget=t,this.callOneOriginalColumnResize=!0}format(){this.data&&this.registerImageErrorEvent()}resize(){let o;this.widget.reviewsContainer.querySelectorAll(".ti-review-item .ti-review-image-container").forEach(t=>{let e=t.closest(".ti-review-item").getAttribute("data-id"),r=this.data.filter(t=>t.r===e);if((o=o||Math.floor(t.offsetWidth/70))&&r.length&&parseInt(t.getAttribute("data-image-listed"))!==o){t.setAttribute("data-image-listed",o);let i="";for(let t=0,e=Math.min(r.length,o)-1;t<=e;t++){var s=t===e&&t<r.length-1;i+='<div class="ti-review-image'+(s?" ti-has-more-image":"")+'" data-image-index="'+t+'" style="width: '+(100/o).toFixed(2)+'%"><div class="ti-review-image-inner"><img src="'+r[t].thumbnail+'" loading="lazy" alt="" />'+(s?'<div class="ti-more-image-count">
33+'+(r.length-t-1)+"</div>":"")+"</div></div>"}t.innerHTML=i,this.registerImageErrorEvent()}})}toggleGalleryVisiblity(){let r=Boolean(this.widget.reviewsContainer.querySelector(".ti-review-item:not(.ti-hidden-review) .ti-review-image-container"));this.widget.reviewsContainer.querySelectorAll(".ti-review-item").forEach((t,e)=>{var i=t.querySelector(".ti-review-image-container");i&&(i.style.transition=""),t.classList.add("ti-hidden-review"),e>=this.widget.TrustindexSliderWidget.state&&e<this.widget.TrustindexSliderWidget.state+this.widget.TrustindexSliderWidget.visibleReviewNum+(this.widget.TrustindexSliderWidget.state<0?1:0)&&(t.classList.remove("ti-hidden-review"),i)&&r&&(i.style.transition="none")})}registerImageErrorEvent(){this.widget.reviewsContainer.querySelectorAll(".ti-review-image img").forEach(t=>{t.addEventListener("error",t=>{var r=t.target,t=r.closest(".ti-review-item");if(t){let i=t.getAttribute("data-id");for(let t=0,e=this.data.length;t<e;t++)if(this.data[t].r===i&&this.data[t].thumbnail===r.src){this.data.splice(t,1);break}var t=r.closest(".ti-review-image-container");if(t)return t.removeAttribute("data-image-listed"),this.resize();var t=r.closest(".ti-review-image"),e=this.data.filter(t=>t.r===i);0<e.length?(r.src=e[0].thumbnail,t.querySelector(".ti-more-image-count").innerHTML="+"+e.length-1,1===e.length&&t.classList.remove("ti-has-more-image")):t.remove()}})})}}class m{constructor(t){this.data=t.TrustindexReviewImageModule.data,this.widget=t,this.isLongScroll="popup"===this.widget.reviewTextMode,this.reviewMediaContainer=null}init(){if(this.isLongScroll)return this.initLongScroll();var t=`<div class="ti-widget-lightbox" data-layout-id="${this.widget.layoutId}" data-set-id="${this.widget.setId}" data-pid="${this.widget.pid}">
34			<div class="ti-widget-lightbox-close"></div>
35			<div class="ti-widget-lightbox-inner">
36				<div class="ti-widget-card">
37					<div class="ti-card-body">
38						<div class="ti-card-media">
39							<img alt="" />
40							<div class="ti-nav-arrow">
41								<div class="ti-arrow-prev"></div>
42								<div class="ti-arrow-next"></div>
43							</div>
44						</div>
45						<div class="ti-review-content"></div>
46					</div>
47				</div>
48			</div>
49		</div>`;this.lightbox=this.createLightbox(t),this.image=this.lightbox.querySelector(".ti-card-media img"),this.reviewContent=this.lightbox.querySelector(".ti-review-content"),this.prevArrow=this.lightbox.querySelector(".ti-arrow-prev"),this.nextArrow=this.lightbox.querySelector(".ti-arrow-next"),this.currentIndex=0,this.currentReview=null,this.addWidgetStyles(),this.addEvents()}initLongScroll(){var t=`<div class="ti-widget-lightbox ti-long-scroll" data-layout-id="${this.widget.layoutId}" data-set-id="${this.widget.setId}" data-pid="${this.widget.pid}">
50			<div class="ti-widget-lightbox-inner">
51				<div class="ti-widget-lightbox-review-container">
52					<div class="ti-widget-lightbox-review-container-inner"></div>
53				</div>
54			</div>
55			<div class="ti-widget-lightbox-close" tabindex="0"></div>
56			<div class="ti-widget-lightbox-mobile-close-bottom">${this.widget.locales.close}<span></span></div>
57			<div class="ti-widget-lightbox-mobile-close-bottom-swipe"><span></span></div>
58		</div>`;this.isMoving=!1,this.lightbox=this.createLightbox(t),this.lightbox.reviewsContainer=this.lightbox.querySelector(".ti-widget-lightbox-review-container"),this.lightbox.reviewsContainerInner=this.lightbox.querySelector(".ti-widget-lightbox-review-container-inner"),this.lightbox.mobileCloseBottom=this.lightbox.querySelector(".ti-widget-lightbox-mobile-close-bottom"),this.lightbox.mobileCloseBottomSwipe=this.lightbox.querySelector(".ti-widget-lightbox-mobile-close-bottom-swipe"),this.widget.classList.contains("ti-custom-stars")&&this.lightbox.classList.add("ti-custom-stars"),this.widget.querySelectorAll(".ti-review-item").forEach(e=>{var t=document.createElement("div"),s=(t.classList.add("ti-review-item"),e.querySelector(".ti-review-header").cloneNode(!0)),i=(s.classList.add("ti-lightbox-review-header"),e.querySelector(".ti-review-text-container").cloneNode(!0)),s=(i.setAttribute("class","ti-review-text ti-review-text-container"),i.setAttribute("style",""),i.querySelectorAll(".ti-review-image").forEach(t=>t.remove()),t.appendChild(s),e.querySelector(".ti-stars"));s&&t.appendChild(s.cloneNode(!0));let o=[];if(this.data.forEach(t=>{t.r===e.getAttribute("data-id")&&o.push(t)}),0<o.length){let i="",r="";o.forEach((t,e)=>
58{i+=`<div class="ti-card-media-thumbnail" data-state="${e}"><img src="${t.thumbnail}" alt="" /></div>`,r+=`<div class="ti-card-media-image"><img src="${this.getImgSrc(t)}" alt="" /></div>`});var s=(new DOMParser).parseFromString(`
59					<div class="ti-card-media">
60						<div class="ti-card-media-images">${r}</div>
61						<div class="ti-nav-arrow">
62							<div class="ti-arrow-prev ti-hidden" data-state="prev"></div>
63							<div class="ti-arrow-next" data-state="next"></div>
64						</div>
65						<div class="ti-card-media-thumbnails">
66							<div class="ti-card-media-thumbnails-inner">${i}</div>
67						</div>
68					</div>
69				`,"text/html").querySelector(".ti-card-media");s.querySelector(".ti-card-media-thumbnail:first-child").classList.add("ti-active"),1===o.length&&(s.querySelector(".ti-arrow-prev").remove(),s.querySelector(".ti-arrow-next").remove(),s.querySelector(".ti-card-media-thumbnails").remove()),t.appendChild(s)}t.appendChild(i),e.classList.contains("ti-ai-summary-item")?(t.classList.add("ti-ai-summary-item"),t.classList.add("ti-lightbox-review-item"),i.classList.add("ti-review-content")):t.setAttribute("data-id",e.getAttribute("data-id")),this.lightbox.reviewsContainerInner.appendChild(t)}),this.addWidgetStyles(),this.addLongScrollEvents()}createLightbox(t){var t=(new DOMParser).parseFromString(t,"text/html").querySelector(".ti-widget-lightbox");return Trustindex.convertToDialog(t)}showLightbox(){this.closeTimeout&&(clearTimeout(this.closeTimeout),delete this.closeTimeout),document.body.appendChild(this.lightbox),"DIALOG"===this.lightbox.tagName&&(this.lightbox.open&&this.lightbox.close(),this.registerDialogEvents(),this.lightbox.showModal())}registerDialogEvents(){this.lightbox.tiDialogEventsRegistered||(this.lightbox.tiDialogEventsRegistered=!0,this.lightbox.addEventListener("cancel",t=>{t.preventDefault(),this.close()}))}addWidgetStyles(){this.widget.classList.contains("ti-custom-stars")&&this.lightbox.classList.add("ti-custom-stars"),this.lightbox.style.fontFamily=window.getComputedStyle(this.widget.container,null).getPropertyValue("font-family")}addEvents(){let i,r,s,o,a=!(this.image.onload=()=>this.image.parentNode.classList.remove("ti-image-loading")),n=!1;this.image.addEventListener("touchstart",t=>{i=t.touches[0].pageX,s=t.touches[0].pageY,r=null,o=null,a=!1,n=!1},{passive:!0}),this.image.addEventListener("touchmove",t=>{r=t.touches[0].pageX,o=t.touches[0].pageY;var t=r-i,e=o-s;!(n=10<Math.abs(e)&&!a?!0:n)&&(10<Math.abs(t)||a)&&(a=!0)},{passive:!0}),this.image.addEventListener("touchend",t=>{if(a&&!n&&i&&r&&25<Math.abs(i-r)){let t=this.currentIndex-1;i>r&&(t=this.currentIndex+1),this.change(t)}return i=null,r=null,a=!1,n=!1},{passive:!0}),this.lightbox.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),t.target.matches(".ti-arrow-prev")?this.change(this.currentIndex-1):t.target.matches(".ti-arrow-next")?this.change(this.currentIndex+1):!t.target.matches(".ti-widget-lightbox")&&!t.target.matches(".ti-widget-lightbox-close")||t.target.closest(".ti-widget-lightbox-inner")||this.close()})}addLongScrollEvents(){this.lightbox.addEventListener("click",t=>{t.preventDefault(),t.stopPropagation(),t.target.matches(".ti-arrow-prev")||t.target.matches(".ti-arrow-next")||t.target.matches(".ti-card-media-thumbn
69ail")?this.navigateReviewImage(t.target):(t.target.matches(".ti-widget-lightbox-review-container")||t.target.matches(".ti-widget-lightbox-close"))&&!t.target.closest(".ti-review-item")||t.target.matches(".ti-widget-lightbox-mobile-close-bottom")?this.close():t.target.matches(".ti-show-original-text")&&this.widget.TrustindexReviewWidget.showOriginalText(t)}),this.lightbox.addEventListener("keydown",t=>{("Escape"===t.key||"Enter"===t.key&&t.target.matches(".ti-widget-lightbox-close"))&&this.close()});let s,o,a,n,d,l,h=0,g=null,c=!1,u=!1,p=!1,w=!1,m=!1;this.reviewMediaContainer=null,this.lightbox.reviewsContainer.addEventListener("touchstart",t=>{h=0,g=null,s=t.touches[0].pageX,a=t.touches[0].pageY,o=null,n=null,d=null,l=null,u=!1,c=!1,m=!1,this.reviewMediaContainer=t.target.closest(".ti-card-media"),Trustindex.hide(this.lightbox.mobileCloseBottomSwipe),w=this.getNavigationArrowState("next"),p=this.getNavigationArrowState("prev")},{passive:!0}),this.lightbox.reviewsContainer.addEventListener("touchmove",t=>{o=t.touches[0].pageX,n=t.touches[0].pageY;var e=o-s,i=n-a,r=Math.abs(Math.atan2(i,e)*(180/Math.PI)),r,t,r;if(c=(c||4<Math.abs(i)&&60<r&&r<120)&&!u,u=(u||4<Math.abs(e)&&(r<=60||120<=r))&&!c){if(this.isMoving)return!1;t.preventDefault(),this.reviewMediaContainer&&("next"==(r=s>o?"next":"prev")&&w||"prev"==r&&p)&&(t=this.reviewMediaContainer.getAttribute("data-position")||"0px",l=parseInt(t)+e,this.animateReviewImages(t,l+"px",0))}if(d=n,m?(0<i||u)&&(this.lightbox.reviewsContainer.style.overflow="",m=!1):(r=Math.abs(this.lightbox.reviewsContainer.scrollHeight-this.lightbox.reviewsContainer.scrollTop-this.lightbox.reviewsContainer.clientHeight),m=r<50&&i<0),c&&m){g=i+"px",this.lightbox.reviewsContainer.style.overflow="hidden",this.lightbox.reviewsContainer.animate({top:[h,g]},{duration:Math.abs((parseInt(h)-parseInt(g))/2),fill:"both",easing:"ease-in-out"}),h=g;let t=-Math.abs(i)/2.3;0<i&&(t=0),Trustindex.hide(this.lightbox.mobileCloseBottom),Trustindex.show(this.lightbox.mobileCloseBottomSwipe,"inline-block"),this.lightbox.mobileCloseBottomSwipe.style.setProperty("--scale",t+"px")}},{passive:!1}),this.lightbox.reviewsContainer.addEventListener("touchend",t=>{if(u&&!c){let t=l;var e,e;this.reviewMediaContainer&&(t=this.reviewMediaContainer.getAttribute("data-position")||"0px",w=this.getNavigationArrowState("next"),p=this.getNavigationArrowState("prev")),s&&o&&25<Math.abs(s-o)&&l?"next"==(e=s>o?"next":"prev")&&w||"prev"==e&&p?(e=parseInt(this.reviewMediaContainer.getAttribute("data-state")||"0")+("next"==e?1:-1),this.reviewMediaContainer.setAttribute("data-old-position",t),this.reviewMediaContainer.setAttribute("data-position",l+"px"),this.navigateReviewImage(null,e),this.reviewMediaContainer.removeAttribute("data-old-position")):this.animateReviewImages(l+"px",t,120):l&&l!==parseInt(t)&&this.animateReviewImages(l+"px",t,120)}if(Trustindex.show(this.lightbox.mobileCloseBottom),c&&g){this.lightbox.reviewsContainer.style.overflow="";let t=Math.abs(parseInt(g)),e=0;150<t&&parseInt(g)<0&&(t=500,e="-1000px",this.close(),Trustindex.hide(this.lightbox.mobileCloseBottom)),this.lightbox.reviewsContainer.scrollTop=this.lightbox.reviewsContainer.scrollHeight,this.lightbox.reviewsContainer.animate({top:[g,e]},{duration:t/2,fill:"both",easing:"ease-in-out"})}this.reviewMediaContainer=null,Trustindex.hide(this.lightbox.mobileCloseBottomSwipe),h=0,g=null,s=null,o=null,d=null,l=null,u=!1,c=!1,m=!1},{passive:!0})}show(e){void 0===this.lightbox&&this.init(),this.widget.isLightboxShowing=!0,document.querySelectorAll(".ti-widget-lightbox").forEach(t=>{"DIALOG"===t.tagName&&t.open&&t.close(),t.remove()});let i=e.closest(".ti-review-item").getAttribute("data-id"),r=0,s=parseInt(e.getAttribute("data-image-index"));for(let t=0,e=this.data.length;t<e;t++)if(this.data[t].r===i&&this.data[t].index===s){r=t;break}if(this.showLightbox(),this.isLongScroll){this.lightbox.reviewsContainer.animate({top:[0,0]},{duration:0,fill:"both",easing:"ease-in-out"});let t=this.lightbox.querySelector('.ti-review-item[data-id="'+i+'"]');var e;t&&((e=t.querySelector(".ti-card-media .ti-card-media-image img"))&&!e.complete?e.onload=()=>t.scrollIntoView():t.scrollIntoView()),Trustindex.show(this.lightbox.mobileCloseBottom),this.lightbox.reviewsContainer.focus(),Trustindex.profileImageFallback(this.lightbox.reviewsContainer)}else this.change(r);setTimeout(()=>this.lightbox.classList.add("ti-widget-lightbox-appeared"),10)}close(){this.closeTimeout||(this.lightbox.classList.remove("ti-widget-lightbox-appeared"),this.closeTimeout=setTimeout(()=>{delete this.closeTimeout,"DIALOG"===this.lightbox.tagName&&this.lightbox.open&&this.lightbox.close(),this.lightbox.remove()},300),this.isLongScroll&&Trustindex.hide(this.lightbox.mobileCloseBottomSwipe),delete this.widget.isLightboxShowing)}change(t){if(this.currentIndex=t,this.image.parentNode.classList.add("ti-image-loading"),this.image.src=this.getImgSrc(this.data[this.currentIndex],this.image.parentNode.offsetHeight),this.currentReview!==this.data[this.currentIndex].r){this.currentReview=this.data[this.currentIndex].r,this.reviewContent.innerHTML="";var e=this.widget.querySelector('.ti-review-item[data-id="'+this.data[this.currentIndex].r+'"]');if(!e)return;var i=e.querySelector(".ti-review-header").cloneNode(!0),r=(i.classList.add("ti-lightbox-review-header"),e.querySelector(".ti-review-text-container").cloneNode(!0));r.setAttribute("class","ti-review-text"),r.setAttribute("style",""),r.querySelectorAll(".ti-review-image").forEach(t=>t.remove()),this.reviewContent.appendChild(i),this.reviewContent.appendChild(e.querySelector(".ti-stars").cloneNode(!0)),this.reviewContent.appendChild(r),this.lightbox.querySelector(".ti-widget-card").setAttribute("class",e.getAttribute("class").replace("ti-review-item","ti-widget-card"))}Trustindex.hide(this.prevArrow),Trustindex.hide(this.nextArrow),0<t&&Trustindex.show(this.prevArrow),t<this.data.length-1&&Trustindex.show(this.nextArrow)}getImgSrc(t,e=600){let i=t.src;var t;return-1===i.indexOf("google")?i:(t=Math.round(e*Trustindex.getDevicePixelRatio()),(i=i.replace(/=.+$/,""))+"=s"+t)}navigateReviewImage(t,e){if(t&&(this.reviewMediaContainer=t.closest(".ti-card-media"),e=t.getAttribute("data-state")),this.isMoving||!this.reviewMediaContainer)return!1;let i=this.reviewMediaContainer.getAttribute("data-position")||"0px",r=parseInt(this.reviewMediaContainer.getAttribute("data-state")||"0"),s=this.reviewMediaContainer.querySelectorAll(".ti-card-media-images .ti-card-media-image"),o=-1*(e="next"===e||"prev"===e?r+("next"===e?1:-1):parseInt(e))*this.reviewMediaContainer.offsetWidth+"px",a=500;this.reviewMediaContainer.getAttribute("data-old-position")&&(a=(parseInt(o)-parseInt(this.reviewMediaContainer.getAttribute("data-old-position")))/a*(parseInt(o)-parseInt(i))),this.isMoving=!0,this.animateReviewImages(i,o,a);var t=this.reviewMediaContainer.querySelector(".ti-arrow-prev"),n=this.reviewMediaContainer.querySelector(".ti-arrow-next");t.classList.add("ti-hidden"),n.classList.add("ti-hidden"),0<e&&t.classList.remove("ti-hidden"),e<s.length-1&&n.classList.remove("ti-hidden"),this.reviewMediaContainer.setAttribute("data-state",e),this.reviewMediaContainer.setAttribute("data-position",o),this.reviewMediaContainer.querySelectorAll(".ti-card-media-thumbn
69ail").forEach(t=>{t.classList.remove("ti-active"),parseInt(t.getAttribute("data-state"))===e&&t.classList.add("ti-active")}),setTimeout(()=>{this.isMoving=!1},a)}animateReviewImages(e,i,r){if(!this.reviewMediaContainer)return!1;this.reviewMediaContainer.querySelectorAll(".ti-card-media-images .ti-card-media-image").forEach(t=>{t.animate({left:[e,i]},{duration:r,fill:"both",easing:"ease-in-out"})})}click(t){(t.target.matches(".ti-review-image")||"popup"===this.widget.reviewTextMode&&t.target.matches(".ti-read-more-active:not(.ti-read-more-collapse"))&&(t.preventDefault(),this.show(t.target))}getNavigationArrowState(t){var t;return!!this.reviewMediaContainer&&!!(t=this.reviewMediaContainer.querySelector(".ti-arrow-"+t))&&!t.classList.contains("ti-hidden")}}class v{constructor(t){var e=Trustindex.getJsonDataElement(t,"ti-ai-summary");this.summary=Trustindex.parseJsonData(e).summary,e.remove(),this.widget=t}format(){var t=this.widget.reviewsContainer.querySelector(".ti-review-item");if(t&&void 0===this.element){var e=t.cloneNode(!0),i=(e.setAttribute("class",this.getClassName(e)),e.removeAttribute("data-id"),e.querySelectorAll(".ti-stars, .ti-platform-icon, .ti-review-image-container").forEach(t=>t.remove()),e.querySelector(".ti-profile-details .ti-name")),r=(i&&(i.innerHTML=this.summary.title),e.querySelector(".ti-profile-img"));if(r){let e=r.querySelector("img");if(t.querySelector(".ti-profile-img").offsetWidth,e||(e=document.createElement("img"),r.innerHTML="",r.appendChild(e)),0<this.summary.images.length){for(let t=0;t<this.summary.images.length;t++){var s=e.cloneNode(!0);s.src=this.summary.images[t],s.removeAttribute("srcset"),r.appendChild(s)}var i=e.cloneNode(!0);i.src=Trustindex.getCDNUrl()+"assets/img/ai-profile-image.svg",i.removeAttribute("srcset"),r.appendChild(i),e.remove()}else e.src=Trustindex.getCDNUrl()+"assets/img/ai-profile-image.svg",e.removeAttribute("srcset"),e.setAttribute("alt",""),e.classList.add("ti-ai-profile-img")}var t=e.querySelector(".ti-profile-details .ti-date"),i=(t&&(t.innerHTML=this.summary.comment),e.querySelector(".ti-review-text-container"));i&&(i.innerHTML=this.summary.text),void 0!==this.widget.TrustindexSliderWidget&&"left"===this.widget.TrustindexSliderWidget.rotateTo?this.widget.reviewsContainerWrapper.append(e):this.widget.reviewsContainerWrapper.insertBefore(e,this.widget.reviewsContainerWrapper.firstChild),Trustindex.profileImageFallback(e),this.element=e}}getClassName(t){return"ti-ai-summary-item "+t.getAttribute("class").replace(/source-[^\s]+/,"").trim()+(-1!==this.summary.text.indexOf("<li>")?" ti-with-checklist":"")}}var x=(t,a,n)=>new Promise((e,i)=>{var r=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);o((n=n.apply(t,a)).next())});class y{constructor(t){this.widget=t,this.isAutoDarkMode=!!this.widget.getAttribute("data-auto-dark-mode")}format(){if(this.isAutoDarkMode&&Trustindex.isDarkMode()&&!Trustindex.isAdminUrl()){let e=Trustindex.getCDNUrl()+`assets/widget-presetted-css/${this.widget.layoutId}-dark-background.css`;this.widget.cssVersion&&(e=e.replace("widget-presetted-css/",`widget-presetted-css/v${this.widget.cssVersion}/`)),x(this,null,function*(){var t=document.createElement("style");t.innerHTML=yield this.getCssContent(e),document.body.appendChild(t),this.changeLogosToDark(!0)})}this.changeLogosToDark()}getCssContent(e){return x(this,null,function*(){var t=yield Trustindex.request(e);return t?this.extractColorsFromCss(t):null})}extractColorsFromCss(t){t=t.replace('@charset "UTF-8";',"").replace(/@font-face{[^}]+}/g,"").replace(new RegExp("@(?:media|key-frames) [^{]*{(.*?})}","gs"),"").trim();let e=`[data-set-id="${this.widget.setId}"]`,i=("wp-widget"!==this.widget.pid&&(e+=`[data-pid="${this.widget.pid}"]`),this.parseCss(t)),r="";for(var s in i){for(var o in r+=s.replace(/\[data-set-id='dark-background'\]/g,e)+"{",i[s]){let t=i[s][o];-1===t.indexOf("!important")&&(t+="!important"),r+=`${o}:${t};`}r+="}"}return r}parseCss(t){let e={},r=/^(#(?:[0-9a-fA-F]{3}){1,2}|rgba?\(\d{1,3}\s*,\s*\d{1,3}\s*,\s*\d{1,3}(\s*,\s*(0|1|0?\.\d+))?\))$/;return t.matchAll(new RegExp("([^{]+){(.*?)}
69","gs")).forEach(t=>{let i=e[t[1]]||{};t[2].split(";").forEach(t=>{var t=t.split(":"),e=t.shift(),t=t.join(":");-1===e.indexOf("color")&&-1===["box-shadow","text-shadow"].indexOf(e)&&!r.test(t)||void 0!==i[e]&&-1===t.indexOf("!important")&&-1!==i[e].indexOf("!important")||(i[e]=t)}),Object.keys(i).length&&(e[t[1]]=i)}),e}changeLogosToDark(i=!1){this.widget.querySelectorAll('img[src*="/logo"][src$=".svg"]').forEach(t=>{var e=t.getAttribute("src").replace("-dark.svg",".svg");i||this.isLogoDark(t)?t.setAttribute("src",e.replace(".svg","-dark.svg")):t.setAttribute("src",e)})}isLogoDark(t){if("dark-"===this.widget.setId.substr(0,5))return!0;let e=t.parentNode,i=!0;for(;e!==this.widget;){var r=window.getComputedStyle(e,null);if(!/rgba\(\d+, \d+, \d+, 0\)/.test(r.backgroundColor)){i=!1;break}e=e.parentNode}return!i&&-1!==["light-contrast","light-contrast-large","light-contrast-large-blue"].indexOf(this.widget.setId)}}if(void 0===window.TrustindexWidget){window.tiWidgetInstances=[],window.Trustindex=i,window.TrustindexWidget=a,window.TrustindexReviewWidget=r,window.TrustindexSliderWidget=s,window.TrustindexMasonryWidget=n,window.TrustindexPopupWidget=d,window.TrustindexTopRatedWidget=l,window.TrustindexFomoWidget=h,window.TrustindexCloseModule=g,window.TrustindexReadMoreModule=c,window.TrustindexLoadMoreModule=u,window.TrustindexHeaderModule=p,window.TrustindexReviewImageModule=w,window.TrustindexLightboxModule=m,window.TrustindexAiSummaryModule=v,window.TrustindexDarkModeModule=y,i.setConstants();let t=document.body?document.body.offsetWidth:0,e=null;window.addEventListener("resize",()=>{document.body.offsetWidth!==t&&(t=document.body.offsetWidth,e&&clearTimeout(e),e=setTimeout(()=>{e=null,window.tiWidgetInstances.forEach(t=>t.resize())},100))}),document.addEventListener("click",e=>{window.tiWidgetInstances.forEach(t=>t.documentClick(e));let t=e.target.closest("a");if(t&&t.getAttribute("href")){var r=document.getElementById(t.getAttribute("href").split("#")[1]);if(r&&!t.getAttribute("data-ti-enable-scroll")){e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation();let i=r.getBoundingClientRect();window.tiElementToWaitForVisibility.forEach((t,e)=>{t.getBoundingClientRect().top<i.top&&(new a(null,t),window.tiElementToWaitForVisibility.splice(e,1))}),t.setAttribute("data-ti-enable-scroll","1"),setTimeout(()=>t.click(),150)}}},{capture:!0}),document.addEventListener("keyup",e=>{window.tiWidgetInstances.forEach(t=>t.documentKeyup(e))}),window.tiElementToWaitForVisibility=[],window.tiElementToWaitForActivity=[];var b=function(t){window.tiElementToWaitForVisibility.forEach((t,e)=>{t.isTriggerLoad()&&(new a(null,t),window.tiElementToWaitForVisibility.splice(e,1))})},f=function(t){window.tiElementToWaitForActivity.forEach((t,e)=>{if(window.tiElementToWaitForActivity.splice(e,1),!0===t.isWaitForVisibility&&!t.isTriggerLoad())return window.tiElementToWaitForVisibility.push(t);new a(null,t)})};window.addEventListener("keydown",f,!1),window.addEventListener("mousemove",f,!1),window.addEventListener("wheel",f,!1),window.addEventListener("touchmove",f,!1),window.addEventListener("touchstart",f,!1),window.addEventListener("scroll",b,!1),window.addEventListener("wheel",b,!1),window.addEventListener("touchmove",b,!1),i.isMobileDevice()&&"hidden"===window.getComputedStyle(document.documentElement,null).getPropertyValue("overflow")&&(document.documentElement.style.overflow="unset")}if(void 0===window.renderTrustindexWidgets&&(window.renderTrustindexWidgets=function(){document.querySelectorAll("pre.ti-widget").forEach(t=>{0<t.children.length?t.replaceWith(t.children[0]):t.remove()});var t=()=>{i.initNoticesForWordpress(),i.initWidgetsFromDom(),i.loadWidgetsFromDom()};i.isWordpressAdminUrl()?t():setTimeout(t,4)},!i.isAdminUrl())){let e=function(){new MutationObserver(window.renderTrustindexWidgets).observe(document.body,{childList:!0,subtree:!0})};if(document.body)e();else{let t=setInterval(()=>{document.body&&(e(),clearInterval(t))},100)}}document.currentScript&&document.currentScript.getAttribute("data-skip-init")||window.renderTrustindexWidgets()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.