(function(){"use strict";if(!window.grp_script_initialized&&(window.grp_script_initialized=!0,void 0===window.globalSelectedImages)){function t(t){const[e,s]=document.querySelectorAll(".grp-entangle-write-div");if(e&&s&&e.firstElementChild&&s.firstElementChild){const t=e.firstElementChild,i=s.firstElementChild;e.replaceChild(i,t),s.appendChild(t)}}function e(t,e="small_preview"){return t?t.includes("shopify-entangle-commerce.s3.ca-central-1.amazonaws.com")?t.replace("shopify-entangle-commerce.s3.ca-central-1.amazonaws.com","assets.entanglecommerce.com"):"large_preview"===e&&t.includes("=")?t.substring(0,t.lastIndexOf("="))+"=s2048":t:""}window.globalSelectedImages=[];let s=0;function i(){const t=document.querySelectorAll(".grp-multiple-card-container");let e=t[0]?.offsetWidth;t[1]&&(e="sliderTopProfile"==globalLayoutType?t[0]?.offsetWidth:t[1]?.offsetWidth),t.forEach(t=>{const s="74";let i=4;i=e<250?2:e<400?3:4;const a=n(t.dataset.images.split(","),i,s,t.dataset.shape,t.dataset.position);t.innerHTML=a})}function a(t,e){if(!t)return"";const s=t.trim().split(/\s+/),i=s[0]||"",a=s.length>1?s[s.length-1]:"";s.length>2&&s[1];switch(e){case"first":return i;case"last":return a;case"first_last":return a?`${i} ${a}`:i;case"first_last_initial":return a?`${i} ${a.charAt(0)}.`:i;case"last_first":return a?`${a} ${i}`:i;case"initials":return[i,a].filter(Boolean).map(t=>t.charAt(0)+".").join("");case"anonymous":return"Anonymous";default:return t}}function n(t,s,i,a,n){t=t.map(t=>e(t,"small_preview"));const r=`position: ${"below"==n?"relative":"absolute"};border-radius: ${"round"==a?"50%":"10px"};border: 2px solid white; object-fit: cover; width: ${"below"==n?i:74}px; height: ${"below"==n?i:74}px; min-width: 74px; min-height: 74px; max-width: 170px; max-height: 170px; border-radius: ${"round"==a?"50%":"10px"};`,l=t.length-s;return"beside"==n?`\n
\n ${t[0]?`\n \n Image 1\n \n `:""}\n ${t[1]?`\n \n Image 1\n \n `:""}\n ${t[2]?`\n \n Image 1\n \n `:""}\n ${t.length-3>0?`\n
\n
\n +${t.length-3}\n
\n
`:""}\n
\n `:`\n ${t[0]?`\n \n Image 1\n \n `:""}\n \n \n
\n ${t[1]&&s>=2?`\n \n Image 1\n \n `:""}\n ${l>0&&2==s?`\n
\n

+${l}

\n
\n `:""}\n
\n \n \n \n
\n ${t[2]&&s>=3?`\n \n Image 2\n \n `:""}\n ${l>0&&3==s?`\n
\n

+${l}

\n
\n `:""}\n
\n \n \n
\n ${t[3]&&s>=4?`\n \n Image 3\n \n `:""}\n ${l>0&&4==s?`\n
\n

+${l}

\n
\n `:""}\n
\n `}function r(t,e,s,i){t=t?"string"==typeof t?JSON.parse(t):t:[];const a=Array.isArray(t)?t.filter(t=>t):[],r=(a.length,document.getElementById("grp-img-container")?.offsetWidth),l="74";let o=4;return o=r<250?2:r<400?3:4,`\n
\n ${n(a,o,l,s,i)}\n
\n `}function l(t){const e=document.getElementById("image-modal");if(null===e){const e='\n
\n
\n
X
\n
Close
\n
\n
\n
\n
\n
\n
\n ';t&&document.body.insertAdjacentHTML("beforeend",e)}}function o(t,e){globalSelectedImages=[...e],s=t,y()}function d(){const t=document.getElementById("image-modal");t&&(t.style.display="none"),globalSelectedImages=[];const e=document.getElementById("myRgrSilder");e&&(e.innerHTML="")}let g=1;function h(t){c(g+=t)}function c(t){let e=document.getElementsByClassName("entangle-grp-slide");t>e.length&&(g=e.length),t<1&&(g=1);for(let t=0;t${n}`:`${n}`:"name"===e?`${n}`:""}function y(){const t=document.getElementById("image-modal");t&&(t.style.display="flex");const i=document.getElementById("myRgrSilder");i&&(i.innerHTML="",globalSelectedImages.forEach((t,a)=>{const n=document.createElement("div");n.classList.add("entangle-grp-slide"),a===s&&n.classList.add("active"),n.style.backgroundImage=`url('${e(t,"large_preview")}')`,i.appendChild(n)})),i.insertAdjacentHTML("beforeend",'\n
\n \n \n
\n '),g=s+1,c(g)}function m({ai_summary:t,setting:e}){function s(t){return``}function i(t){return`
\n ${t.join(" ")}\n
`}if(null==t)return;var a=document.querySelectorAll("#typewriter-container");let n="";if(t&&t.length>0&&(n="list"===e.ai_summary_style?s(t):i(t)),Boolean(e.enable_ai_summary_animation)){function r(t,e){t.forEach(function(t){if(t.isIntersecting){var s=new Typewriter(t.target,{delay:1,cursor:""});s.typeString(n).pauseFor(2500).start(),e.unobserve(t.target)}})}const l={root:null,threshold:.5};a.forEach(function(t){const e=new IntersectionObserver(r,l);e.observe(t)})}else a.forEach(function(t){t.innerHTML=n})}let u=0,v=3;function _(t,e,s){u+=v;let i=null;t&&t.target&&t.target.closest&&(i=t.target.closest(".grp-entangle--root"));const a=i?i.getAttribute("data-widget-layout"):void 0,n=i?i.id:void 0;setTimeout(()=>{Nt(window.grEntangleApiUrl,i,a,n)},100)}let w={},f=null;function x(t,e,s,i,a,n,r){if(null===t)return"";const l=JSON.stringify(s).replace(/'/g,"%27"),o=t.replace(/'/g,"%27").replace(/\n/g,"%26"),d=(t.length,`text-align: ${"sliderTopProfile"==r?"center":s.align}; font-size: 14px;"\n `);if("masonry"==r)return`
${t}
`;switch(e){case"scroll":return`
${t}
`;case"more":void 0===w[i]&&(w[i]=!1);let g=w[i]?t:0==t.length?"":t.length>s?.review_truncate_max_len?`${t.slice(0,s?.review_truncate_max_len)}... `:t;if(t.length>s?.review_truncate_max_len){const t=`
`;g+=t}const h=t.replaceAll('"',"""),c=l.replaceAll('"',"""),p=g.replaceAll('"',"""),y=`
\n ${p}\n
`;return y;default:return`
${t}
`}}function b(t,e,s,i,a,n,r){w[i]=!w[i],f=w[i]?i:null;const l=document.querySelectorAll(`#grp-entangle-read-more-${i}`),o=JSON.stringify(n).replace(/%27/g,"'").replace(/%26/g,"
"),d=t.replace(/%27/g,"'").replace(/%26/g,"
");l.forEach(t=>{if(t){const n=x(d,e,s,i,a,JSON.parse(o),r);t.outerHTML=n}})}function $(t,e){return t?.enable_custom_heading&&t.custom_heading&&""!==t.custom_heading.trim()?`\n
\n ${t.custom_heading}\n
\n `:""}function S(t){try{const e=JSON.parse(t);return"object"==typeof e&&null!==e&&!Array.isArray(e)}catch(t){return!1}}const k=document.querySelector("script[shopify_data]"),C=k.getAttribute("shopify_data"),T=S(C)?JSON.parse(C):"object"==typeof grp_shopify_address&&null!==grp_shopify_address?grp_shopify_address:null;function I({url:t,placeId:e}){if(!t||!e)return"#";const s=/^(https:\/\/www\.google\.com\/maps\/contrib\/\d+)/,i=t.match(s);if(i&&i[0]){const t=i[0],s=`${t}/place/${e}`;return s}return t}function D(t){const e=[{"badge-I":"grp-mid"},{"slider-light":"grp-mid"},{reviewWithArrow:"grp-mid"},{"badge-II":"grp-mid"},{"badge-III":"grp-mid"},{oneSlider:"grp-long"},{sliderTopProfile:"grp-long"},{sliderdownstar:"grp-mid"},{badgeReviewSlider:"grp-mid"},{sliderReview:"grp-long"},{sliderReviewImage:"grp-mid"},{reviewAndBadge:"grp-mid"},{reviewAndBadgeIV:"grp-mid"},{grid:"grp-mid"},{list:"grp-long"},{"list-I":"grp-mid"},{masonry:"grp-long"},{static:"grp-mid"},{floating:"grp-mid"},{popupfloating:"grp-mid"},{"popup-slider":"grp-mid"},{googleBadge:"grp-mid"},{googleBadgeI:"grp-mid"},{avatarstar:"grp-mid"},{badgeonly:"grp-mid"},{badgewithrow:"grp-mid"},{badgebutton:"grp-mid"},{badgebuttonI:"grp-mid"},{"dual-row":"grp-mid"},{"map-badge":"grp-mid"}];for(const s of e)if(s.hasOwnProperty(t))return s[t];return"grp-not-found"}function z(t,e="en"){const s=new Date,i=Math.floor((s-t)/1e3),a=new Intl.RelativeTimeFormat(e,{numeric:"always"}),n=[{unit:"year",seconds:31536e3},{unit:"month",seconds:2592e3},{unit:"day",seconds:86400},{unit:"hour",seconds:3600},{unit:"minute",seconds:60},{unit:"second",seconds:1}];for(let{unit:t,seconds:e}of n){const s=Math.round(i/e);if(Math.abs(s)>=1){let e=a.format(s,t);return 1===s&&"year"===t&&(e=e.replace("next year","a year")),e=e.replace(/(in |next )/,""),e+" ago "}}return a.format(0,"second")}function B(t,e,s){const i=["January","february","March","April","May","June","July","August","September","October","November","December"],a=new Date(1e3*t),n=a.getFullYear(),r=(i[a.getMonth()],new Intl.DateTimeFormat(e.hasOwnProperty("translate_langauge")?e.translate_langauge:"en",{month:"short"}).format(a)),l=a.getDate();switch(s){case"mdy":default:return`${r} ${l}, ${n}`;case"my":return`${r}, ${n}`;case"ymd":return`${n} ${r} ${l}`;case"hidden":return"";case"grptime":return`${z(a,e)}`;case"mmddyy":return new Intl.DateTimeFormat(e.hasOwnProperty("translate_langauge")?e.translate_langauge:"en",{year:"numeric",month:"numeric",day:"numeric"}).format(a)}}function M(t,e,s,i){let a="";for(let s=0;s<5;s++)if(s`;else if(s===Math.floor(t)){const s=(t-Math.floor(t)).toFixed(1);a+=s<.3?``:s<=.7?``:``}else a+=``;return Boolean(s)&&"star"===i&&(a+='\n \n \n \n \n \n \n '),a}function R(t,e){const s='\n
\n
\n \n\n \n \n \n \n \n \n
\n
\n ';if(!e)return s;let i="";return t.slice(0,3).forEach((t,e)=>{i+=`\n
\n Avatar ${e}\n
\n `}),i+=s,i}function L(t,e,s){return"grptime"!==t?"":' on Google'}let A=0;class E{constructor(t){let{total_review:e,rating:s,name:i,image_url:a,badgeType:n,reviewURL:r,buttonType:l,layoutType:o,style:d,place_id:g}=t;this.total_review=e,this.rating=s,this.name=i,this.image_url=a,this.badgeType=n,this.reviewURL=r,this.buttonType=l,this.layoutType=o,this.style=d,this.place_id=g,this.starColor=d.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}render(){let t=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n \n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_card_background||"transparent":"dark"===this.style.color_scheme?"#303030":"transparent"===this.style.color_scheme?"transparent":"azlight"===this.style.color_scheme?"#f4f6f9":"midnight"===this.style.color_scheme?"#121826":"light"!==this.style.color_scheme||"static"!==this.layoutType&&"floating"!==this.layoutType?"#ffffff":"#f7f7f7"}\n `;return`\n
\n
\n
\n
\n ${"withImage"===this.badgeType?`
Thumbnail
`:""}\n
\n ${"withImage"!==this.badgeType?`
${this.getAverageReviewComment(this.rating)}
`:""}\n ${"withImage"===this.badgeType?`
${this.name}
`:""}\n
\n ${M(this.rating,this.starColor)}\n
\n ${"withImage"!==this.badgeType?``:``}\n ${"withImage"!==this.badgeType?'':""}\n \n
\n
\n
\n
\n
\n `}}class N{constructor(t,e,s,i,a,n){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.starColor=s.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this ;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n \n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_background||"transparent":"dark"===this.style.color_scheme?"#222222":"azlight"===this.style.color_scheme?"#f4f6f9":"midnight"===this.style.color_scheme?"#121826":"transparent"===this.style.color_scheme?"transparent":("light"!==this.style.color_scheme||"static"!==this.layoutType&&this.layoutType,"#f7f7f7")}`;return`\n \n
\n
\n
\n \n
\n \n
\n
${e}
\n
\n ${M(this.rating,this.starColor)}\n
\n
\n ${void 0===this.style.custom_translations.see_all_review?"see all our reviews":this.style.custom_translations.see_all_review} \n \n
\n
\n
\n
\n
`}}class F{constructor(t,e,s,i,a,n){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.starColor=s.star_color,this.reviewImage=e}generateAvatarList(t){let e="";return t.slice(0,4).forEach((t,s)=>{e+=`\n
\n \n Avatar ${s}\n \n
\n `}),e}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"transparent"===this.style.color_scheme?"#222":"#fff"};\n `;return`\n \n
\n \n
\n
\n \n
\n \n \n
\n
\n ${this.generateAvatarList(this.reviewImage)}\n
\n \n
\n
\n
\n
\n \n `}}class j{constructor(t,e,s,i,a,n){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.starColor=s.star_color,this.reviewImage=e}generateAvatarList(t){let e="";return t.slice(0,4).forEach((t,s)=>{e+=`\n
\n \n Avatar ${s}\n \n
\n `}),e}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"transparent"===this.style.color_scheme?"#222":"#fff"};\n `;return`\n \n
\n \n \n \n `}}class H{constructor(t,e,s,i,a,n){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.starColor=s.star_color,this.reviewImage=e}generateAvatarList(t){let e="";return t.slice(0,4).forEach((t,s)=>{e+=`\n
\n Avatar ${s}\n
\n `}),e}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"transparent"===this.style.color_scheme?"#222":"#fff"};\n `;return`\n \n
\n \n
\n
\n
\n
\n
\n
${void 0===this.style.custom_translations.rating_text?"Rating":this.style.custom_translations.rating_text} (${e})
\n
\n ${M(this.rating,this.starColor)}\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n `}}class O{constructor(t,e,s,i,a,n,r){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.badgeType=r,this.starColor=this.style.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n \n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_background||"transparent":"dark"===this.style.color_scheme?"#222222":"azlight"===this.style.color_scheme?"#f4f6f9":"midnight"===this.style.color_scheme?"#121826":"transparent"===this.style.color_scheme?"transparent":("light"!==this.style.color_scheme||"static"!==this.layoutType&&this.layoutType,"#f7f7f7")}`;return`\n \n \n \n `}}class G{constructor(t,e,s,i,a,n,r){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.badgeType=r,this.starColor=s.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"transparent"===this.style.color_scheme?"#222":"#fff"};\n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_background||"transparent":"dark"===this.style.color_scheme?"#222222":"azlight"===this.style.color_scheme?"#f4f6f9":"transparent"===this.style.color_scheme?"transparent":("light"!==this.style.color_scheme||"static"!==this.layoutType&&this.layoutType,"#f7f7f7")}`;return`\n \n
\n
\n
\n ${M(this.rating,this.starColor)}\n
\n \n
\n
\n
\n `}}class V{constructor(t,e,s,i,a,n,r){this.total_num_of_reviews=i?.total_review,this.rating=i?.rating,this.name=i?.name,this.place_id=i?.place_id,this.profile_photo=i?.image_url,this.buttonType=i?.buttonType,this.style=s,this.badgeType=r,this.starColor=this.style.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}changeBackground(t){t.target.style.color="#fe8403"}changdeBackground(t){t.target.style.color=this.getStyleColor()}render(){const{place_id:t,rating:e}=this;let s=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"transparent"===this.style.color_scheme?"#222":"#fff"};\n \n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_background||"transparent":"dark"===this.style.color_scheme?"#222222":"azlight"===this.style.color_scheme?"#f4f6f9":"transparent"===this.style.color_scheme?"transparent":("light"!==this.style.color_scheme||"static"!==this.layoutType&&this.layoutType,"#f7f7f7")}`;return`\n \n
\n
\n
\n
${e}
\n
\n ${M(this.rating,this.starColor)}\n
\n
\n
\n
\n \n
\n \n ${void 0===this.style.custom_translations.rating_scale?this.getAverageReviewComment(this.rating):this.style.custom_translations.rating_scale} ${void 0===this.style.custom_translations.rating_text?"Rating":this.style.custom_translations.rating_text}\n
\n
\n
\n
\n \n `}}class q{constructor(t){let{total_review:e,rating:s,name:i,image_url:a,badgeType:n,reviewURL:r,buttonType:l,layoutType:o,style:d,place_id:g}=t;this.total_review=e,this.rating=s,this.name=i,this.image_url=a,this.badgeType=n,this.reviewURL=r,this.buttonType=l,this.layoutType=o,this.style=d,this.place_id=g,this.starColor=d.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}render(){let t=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_background||"transparent":"dark"===this.style.color_scheme?"#222222":"azlight"===this.style.color_scheme?"transparent":"midnight"===this.style.color_scheme?"#0b0f17":"transparent"===this.style.color_scheme?"transparent":"light"!==this.style.color_scheme||"static"!==this.layoutType&&"floating"!==this.layoutType?"#ffffff":"#f7f7f7"}\n ` ;return`\n
\n
\n
\n
\n ${"withImage"===this.badgeType?`
Thumbnail
`:""}\n
\n ${"withImage"!==this.badgeType?`
\n \n ${void 0===this.style.custom_translations.rating_scale?this.getAverageReviewComment(this.rating):this.style.custom_translations.rating_scale}\n
`:""}\n ${"withImage"===this.badgeType?`
${this.name}
`:""}\n
\n ${M(this.rating,this.starColor)}\n
\n ${"withImage"!==this.badgeType?``:``}\n ${"withImage"!==this.badgeType?'':""}\n \n
\n
\n
\n
\n
\n `}}class J{constructor(t){let{total_review:e,rating:s,name:i,image_url:a,badgeType:n,reviewURL:r,buttonType:l,layoutType:o,style:d,place_id:g,cardSettings:h}=t;this.total_review=e,this.rating=s,this.name=i,this.image_url=a,this.badgeType=n,this.reviewURL=r,this.buttonType=l,this.layoutType=o,this.style=d,this.place_id=g,this.starColor=d.star_color,this.cardSettings=h}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}render(){let t=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n\n `;return`\n
\n
\n
\n
\n ${"withImage"===this.badgeType?`
${this.name??
`:""}\n
\n ${"withImage"!==this.badgeType?`
\n \n ${void 0===this.style.custom_translations.rating_scale?this.getAverageReviewComment(this.rating):this.style.custom_translations.rating_scale}\n
`:""}\n ${"withImage"===this.badgeType?`
${this.name}
`:""}\n
\n ${M(this.rating,this.starColor)}\n
\n ${"withImage"!==this.badgeType?``:``}\n ${"withImage"!==this.badgeType?'':""}\n \n
\n
\n
\n
\n
\n `}}class P{constructor(t){let{total_review:e,rating:s,name:i,image_url:a,badgeType:n,reviewURL:r,buttonType:l,layoutType:o,style:d,place_id:g}=t;this.total_review=e,this.rating=s,this.name=i,this.image_url=a,this.badgeType=n,this.reviewURL=r,this.buttonType=l,this.layoutType=o,this.style=d,this.place_id=g,this.starColor=d.star_color}getAverageReviewComment(t){let e=["Poor","Average","Good","Very Good","Excellent"];return e[Math.round(t)-1]}render(){let t=`color: ${"light"===this.style.color_scheme?"#303030":"custom"===this.style.color_scheme?this.style.customStyle.custom_text_color:"azlight"===this.style.color_scheme?"#222222":"midnight"===this.style.color_scheme?"#f1f5f9":"transparent"===this.style.color_scheme?"#222":"#fff"};\n background-color: ${"custom"===this.style.color_scheme?this.style.customStyle.custom_card_background||"transparent":"dark"===this.style.color_scheme?"#303030":"azlight"===this.style.color_scheme?"#f4f6f9":"midnight"===this.style.color_scheme?"#121826":"transparent"===this.style.color_scheme?"transparent":("light"!==this.style.color_scheme||"static"!==this.layoutType&&"floating"!==this.layoutType&&this.layoutType,"#f6f6f8")}\n `,e="\n padding: 15px 20px;\n ";return`\n
\n
\n
\n
\n
\n
\n ${"withImage"===this.badgeType?`
${this.name??
`:""}\n
\n ${"withImage"!==this.badgeType?`
\n \n ${void 0===this.style.custom_translations.rating_scale?this.getAverageReviewComment(this.rating):this.style.custom_translations.rating_scale}\n
`:""}\n ${"withImage"===this.badgeType?`
${this.name}
`:""}\n
\n ${M(this.rating,this.starColor)}\n
\n ${"withImage"!==this.badgeType?``:``}\n ${"withImage"!==this.badgeType?'':""}\n \n
\n
\n
\n
\n
\n `}}class U{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c,isSliderLight:p}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.isSliderLight=p||!1,this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){return`\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n \n
\n \n
\n \n \n
\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo,this.cardSettings?.display_verified_mark)}\n
\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,"popupfloating"===this.layoutType,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n \n \n
\n
\n `}}class W{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){ return`\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo,this.cardSettings?.display_verified_mark)}\n
\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n
\n
\n \n \n
\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,"popupfloating"===this.layoutType,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n \n
\n
\n \n
\n
\n `}}class Y{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor=this.getBackgroundColor(),this.textColor=this.getTextColor(),this.textFontSize=`${l?.customStyle.review_text_font_size}px`,this.image_url=g}getBackgroundColor(){return"custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"transparent"===this.styles.color_scheme?"#EFEFEF":"azlight"===this.styles.color_scheme?"#f4f6f9":"#f6f6f8"}getTextColor(){return"light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"transparent"===this.styles.color_scheme?"#222":"azlight"===this.styles.color_scheme?"#222222":"#fff"}render(){const t=Boolean(this.cardSettings?.enable_fixed_card_height);return`\n
\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo,this.cardSettings?.display_verified_mark)}\n
\n \n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,"popupfloating"===this.layoutType,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n \n User Image\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`
${a(this.author_name,this.cardSettings.reviewer_name_display)}
`:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
\n ${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n
\n
\n `}}class Z{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){return`\n
\n
\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}
\n
\n \n
\n \n \n
\n
\n
\n \n
\n
\n ${M(this.rating,this.starColor,this.cardSettings.verified_review_logo,this.cardSettings.display_verified_mark)}\n
\n
\n \n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,!1,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n \n
\n
\n `}}class K{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){return`\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,!1,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n \n \n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n \n
\n \n
\n \n \n
\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo,this.cardSettings?.display_verified_mark)}\n
\n
\n \n \n
\n `}}class X{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){return`\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n \n \n
\n ${"image"===this.cardSettings.display_verified_mark?p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock"):`\n \n \n `}\n
\n \n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n \n \n
\n
\n \n
\n
\n ${M(this.rating,this.starColor,this.cardSettings.verified_review_logo,this.cardSettings.display_verified_mark)}\n
\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,!1,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n
\n `}}class Q{constructor(t){ const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,image_url:d,layout:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layout=g,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":(this.styles.color_scheme,"#EFEFEF"),this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.customText={for_write_a_review:this.styles.custom_translations.write_a_review,for_view_all_review:this.styles.custom_translations.show_all_review,for_show_more_text:this.styles.custom_translations.show_more_text,for_show_less_text:this.styles.custom_translations.show_less_text},this.isExpanded=!1,this.image_url=d,this.author_url=h}render(){JSON.stringify(this.styles.custom_translations);return`\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings.verified_review_logo,this.cardSettings.display_verified_mark)}\n
\n
\n
\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,!1,this.styles?.custom_translations,this.layoutType)}\n
\n \n
\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n
\n
\n \n \n \n
Google Review
\n
\n \n \n
\n
\n \n \n \n
\n `}}class tt{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,image_url:d,author_url:g,cardId:h,layoutType:c}=t;this.cardId=h,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.author_url=g,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.customText={for_write_a_review:this.styles.custom_translations.write_a_review,for_view_all_review:this.styles.custom_translations.show_all_review,for_show_more_text:this.styles.custom_translations.show_more_text,for_show_less_text:this.styles.custom_translations.show_less_text},this.isExpanded=!1,this.image_url=d,this.layoutType=c}render(){JSON.stringify(this.styles.custom_translations);return`\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings.verified_review_logo,this.cardSettings.display_verified_mark)}\n
\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,this.cardSettings?.review_text_display_format,this.cardSettings,this.cardId,!1,this.styles?.custom_translations,this.layoutType)}\n ${this.cardSettings.show_review_image&&Array.isArray("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url)&&("string"==typeof this.image_url?JSON.parse(this.image_url||"[]"):this.image_url).length>0?`
\n ${r(this.image_url,this.cardSettings.align,this.cardSettings.review_image_shape,this.cardSettings.review_image_position)}\n
`:""}\n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n \n \n
Google Review
\n
\n
\n \n \n
\n
\n \n \n \n
\n `}}class et{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,image_url:g,author_url:h,cardId:c}=t;this.cardId=c,this.author_name=e,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.author_url=h,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.background="custom"===this.styles.color_scheme?l.customStyle.custom_background||"transparent":"dark"===this.styles.color_scheme?"#222222":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"transparent":"#ffffff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=g}render(){return`\n
\n
\n \n \n
\n
\n
\n
\n ${this.cardSettings.showImage&&this.author_image?`\n
\n User Image\n
\n `:""}\n ${p(this.cardSettings.showImage,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"imageBlock")}\n
\n
\n
\n ${this.cardSettings.showName?`\n
${a(this.author_name,this.cardSettings.reviewer_name_display)}
\n `:""}\n ${p(this.cardSettings.showName,this.cardSettings.display_verified_mark,this.cardSettings.verified_review_logo,this.layoutType,"nameBlock")}\n
\n
\n ${this.cardSettings.hideText?"":x(this.review,"truncated",this.cardSettings,this.cardId,!0,this.styles?.custom_translations,this.layoutType)}\n \n
\n
\n \n \n
\n
\n
\n
\n
\n \n \n
\n
${B(this.time,this.styles.custom_translations,this.cardSettings.dateformat)}\n ${L(this.cardSettings.dateformat,this.author_url,this.textColor)}\n
\n
\n
\n
\n ${M(this.rating,this.starColor,this.cardSettings.verified_review_logo,this.cardSettings.display_verified_mark)}\n
\n
\n
\n
\n `}}class st{constructor(t,e,s,i,a,n){this.layoutType=t,this.reviewData=e,this.styles=s,this.isCentered=a,this.cardSettings=n,this.badgeData=i,this.hideNoComments=n.hideNoComments,this.filterStars=n.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.starColor=this.styles.customStyle?.star_color,this.grpReviewMoreData=u}getClassNames(){if("grid"===this.layoutType)return"grp-entangle-grid"}getScrollClassNames(){return this.styles.customStyle.enable_scroll_button&&"grid"!==this.layoutType?"grp-entangle-width-scroll":"grp-no-width"}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){const t=this.reviewData.slice(0,this.styles.customStyle.show_load_more_button?(this.cardSettings?.display_ai_summary&&"grid"==this.layoutType?u-1:u)+v:this.reviewData.length).map((t,e)=>`\n
\n ${"list-I"===this.layoutType?new Z({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render():new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("");return`\n ${$(this.cardSettings,this.color)}\n
\n
\n
\n
\n ${this.badgeData.name??\n
\n

\n ${this.badgeData.name}\n

\n
\n

\n ${this.badgeData.rating} \n

\n
\n ${M(this.badgeData.rating,this.starColor)}\n
\n
\n \n
\n
\n
\n \n
\n ${"list"===this.layoutType||"grid"===this.layoutType||"list-I"===this.layoutType?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?"list-I"===this.layoutType?`
\n ${new $t({author_name:"AI-Reviews Summary",author_image:"image",rating:this.badgeData.rating,total_review:this.badgeData.total_review,review:this.reviewData,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",rating:this.badgeData.rating,total_review:this.badgeData.total_review,review:this.reviewData,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n \n ${t}\n \n
\n ${this.styles.customStyle.show_load_more_button&&this.reviewData.length>u+v?` `:""}\n \n
\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n `}}function it(t){if(!t)return null;const e=String(t).toLowerCase();return e.startsWith("sun")?"Sunday":e.startsWith("mon")?"Monday":e.startsWith("tue")?"Tuesday":e.startsWith("wed")?"Wednesday":e.startsWith("thu")?"Thursday":e.startsWith("fri")?"Friday":e.startsWith("sat")?"Saturday":null}function at(t){if(!t)return null;const e={},s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];let i=!1;if("object"==typeof t&&!Array.isArray(t)){if(s.forEach(s=>{Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s],i=!0)}),i)return e;if(Object.keys(t).forEach(s=>{const a=it(s);a&&(e[a]=t[s],i=!0)}),i)return e}return Array.isArray(t)?(t.forEach(t=>{if(t&&"string"!=typeof t){if(Array.isArray(t)&&t.length>=2){const s=it(t[0]);return void(s&&(e[s]=String(t[1])))}if("object"==typeof t){const s=it(t.day||t.day_name||t.weekday);if(s){const i=t.time||(t.open&&t.close?`${t.open} – ${t.close}`:null)||t.hours||t.value||"";e[s]=String(i)}}}}),Object.keys(e).length?e:null):null}function nt(t){if(!t)return"";const e=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=e[(new Date).getDay()];return e.map(e=>{const i=t[e]||"-",a=e===s?"rocket-map-today":"";return`
${e}${i}
`}).join("")}function rt(t){const e='style="color:#ef4444;font-weight:700"';if(!t)return`Today: -`;const s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=s[(new Date).getDay()],a=t[i]||"-";return"string"!=typeof a||"-"!==a.trim()&&!a.toLowerCase().includes("closed")?`${i}: ${a}`:`${i}: ${a}`}class lt{constructor(t,e,s,i,a,n,r){this.layoutType=t,this.reviewData=Array.isArray(i)?i:[],this.styles=n||{},this.badgeData=s||{},this.isCentered=!!a,this.cardSettings=r||{};this.styles.color_scheme;this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff", this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle.custom_background:"dark"===this.styles.color_scheme?"#222222":"azlight"===this.styles.color_scheme?"#ffffff":"midnight"===this.styles.color_scheme?"#0b0f17":(this.styles.color_scheme,"#ffffff")}mount(t){this.container=t,this.render()}formatNumber(t){try{return(new Intl.NumberFormat).format(t)}catch(e){return String(t)}}render(){const t=this.badgeData.name||"Business Name",e=Number(this.badgeData.rating||0),s=this.badgeData.total_reviews??this.badgeData.total_review??0,i=this.badgeData.phone||"",a=i.replace(/[^+\d]/g,""),n=this.badgeData.address||"",r=this.badgeData.mapUrl,l=at(this.badgeData.hours),o=document.createElement("div");o.className="rocket-map-widget",o.style.backgroundColor=this.backgroundColor,o.style.color=this.color;const d=document.createElement("div");d.className="rocket-map-map-container";const g=document.createElement("iframe");g.src=`${r}&output=embed`,g.loading="lazy",g.referrerPolicy="no-referrer-when-downgrade",d.appendChild(g),o.appendChild(d);const h=document.createElement("div");h.className="rocket-map-content",h.innerHTML=`\n
${t}
\n
\n ${e.toFixed(1)}\n \n ${M(e,this.styles.star_color)}\n \n \n ${this.formatNumber(s)} Google reviews\n
\n \n
\n Directions\n ${i?` Call`:""}\n ${r?` View on Google`:""}\n
\n \n
\n \n ${n?`\n
\n
Address:
\n
${n}
\n
`:""}\n ${i?`\n
\n
Phone:
\n
${i}
\n
`:""}\n \n
\n \n ${l?`
\n
\n ${rt(l)}\n \n
\n
\n ${nt(l)}\n
\n
`:""}\n \n \n
\n
Recent Reviews:
\n Show reviews ▼\n
\n `,o.appendChild(h);const c=document.createElement("div");c.className="rocket-map-reviews",(this.reviewData||[]).forEach((t,e)=>{const s=`
${new U({author_name:t.author_name||t.name,author_image:t.profile_photo_url||t.avatar,time:t.time||t.date,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}
`;c.insertAdjacentHTML("beforeend",s)}),o.appendChild(c);const p=o.querySelector(".rocket-map-hours-wrapper");if(p){const t=p.querySelector(".rocket-map-hours-table"),e=p.querySelector(".rocket-map-hours-summary"),s=p.querySelector(".rocket-map-chev");t&&e&&(t.classList.contains("rocket-map-hidden")&&(t.style.display="none"),e.addEventListener("click",()=>{const e=t.classList.toggle("rocket-map-hidden");t.style.display=e?"none":"",s&&(s.textContent=e?"▼":"▲")}))}return this.container&&"function"==typeof this.container.appendChild?(this.container.appendChild(o),""):o.outerHTML}}class ot{constructor(t,e,s,i,a,n){this.layoutType=t,this.reviewData=e,this.styles=s,this.isCentered=a,this.cardSettings=n,this.badgeData=i,this.hideNoComments=n.hideNoComments,this.filterStars=n.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"light"===this.styles.color_scheme?"#f6f6f8":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.starColor=this.styles.customStyle.star_color}getClassNames(){if("grid"===this.layoutType)return"grp-entangle-grid"}getScrollClassNames(){return this.reviewData.length>6?"grp-entangle-width-scroll":"grp-no-width"}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n \n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
\n
\n
\n
\n \n
\n \n ${this.badgeData.name}\n

\n
\n

\n ${this.badgeData.rating} \n

\n
\n ${M(this.badgeData.rating,this.starColor)}\n
\n
\n \n
\n
\n
\n \n
\n ${"list"===this.layoutType||"grid"===this.layoutType||"masonry"===this.layoutType?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new St({author_name:"AI-Reviews Summary",author_image:"image",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutCheck:this.layoutType}).render()}\n
`:""}\n \n ${this.reviewData.map((t,e)=>`\n
\n ${new tt({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e,layoutType:this.layoutType}).render()}\n
\n `).join("")}\n \n
\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n `}}class dt{constructor(t,e,s,i,a,n){this.layoutType=t,this.reviewData=e,this.styles=s,this.isCentered=a,this.cardSettings=n,this.badgeData=i,this.hideNoComments=n.hideNoComments,this.filterStars=n.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==n?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=n?.slider_display_type?"flex":"none",this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222222":"#ffffff",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.starColor=this.styles.customStyle.star_color}getClassNames(){if("grid"===this.layoutType)return"grp-entangle-grid"}getScrollClassNames(){return this.reviewData.length>6?"grp-entangle-width-scroll":"grp-no-width"}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n \n `:""}render(){const t=this.reviewData.slice(this.styles.customStyle.show_load_more_button?0:void 0,"grid"===this.layoutType?void 0:this.styles.customStyle.show_load_more_button?u+v:void 0).map((t,e)=>`\n
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("");return`
\n ${$(this.cardSettings,this.color)}\n
\n
\n
\n
\n ${this.badgeData.name??\n
\n

\n ${this.badgeData.name}\n

\n
\n

\n ${this.badgeData.rating} \n

\n
\n ${M(this.badgeData.rating,this.starColor)}\n
\n
\n \n
\n
\n
\n \n
\n
${this.generateBadgeHtml(this.badgeData)}\n
\n
\n ${"reviewAndBadge"!==this.layoutType&&"reviewAndBadgeIV"!==this.layoutType?`\n
\n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new St({author_name:"AI-Reviews Summary",author_image:"image",rating:this.badgeData.rating,total_review:this.badgeData.total_review,review:this.reviewData,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutCheck:this.layoutType}).render()}\n
`:""}\n \n ${t}\n \n
\n ${this.styles.customStyle.show_load_more_button&&"grid"!==this.layoutType&&this.reviewData.length>u+3?` `:""}\n \n `:new wt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render()}\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n
`}}class gt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#303030":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor=At("custom"===this.styles.color_scheme?a.customStyle.custom_background||"transparent":"dark"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"transparent":"midnight"===this.styles.color_scheme?"#0b0f17":"#ffffff",this.cardSettings?.background_opacity)}getClassNames(){return"floating"===this.layoutType?"grp-entangle-badge-fixed":"grp-entangle-badge-static"}render(){return`\n
\n \n
\n
\n
\n
\n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new et({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e }).render()}\n
\n `).join("")}\n
\n
\n
\n
\n
\n
\n \n
\n
\n\n ${"popup-slider"===this.layoutType?`\n
\n
\n \n `:`\n \n
\n
\n \n
\n
\n
\n
\n
\n

${this.badgeData.rating}

\n
\n
\n ${M(this.badgeData.rating,this.styles?.star_color)}\n
\n
\n

${this.badgeData?.total_review} REVIEWS

\n
\n
\n
\n \n
\n
\n `}\n
\n
\n
\n ${Boolean(this.badgeData.buttonType)?`${this.styles.custom_translations.write_a_review}`:""}\n
\n
\n\n ${"popup-slider"===this.layoutType?`
\n
\n \n \n \n \n
\n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n
\n\n
\n \n \n \n \n
\n\n
\n
`:`${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}`}\n\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n \n \n \n\n\n \n\n\n\n \n `}}class ht{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor=At("custom"===this.styles.color_scheme?a.customStyle.custom_background||"transparent":"dark"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#0b0f17":"transparent"===this.styles.color_scheme?"transparent":"#ffffff",this.cardSettings?.background_opacity)}getClassNames(){return"floating"===this.layoutType?"grp-entangle-badge-fixed":"grp-entangle-badge-static"}render(){return`\n
\n \n
\n
\n ${new E({reviewURL:this.badgeData.reviewURL,buttonType:this.badgeData.buttonType,badgeType:this.badgeType,name:this.badgeData.name,layoutType:this.layoutType,rating:this.badgeData.rating,total_review:this.badgeData.total_review,image_url:this.badgeData.image_url,style:this.styles,place_id:this.badgeData.place_id}).render()}\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n \n \n \n ${this.badgeData.rating}\n

\n
\n \n \n ${M(this.badgeData.rating,this.styles?.star_color)}\n
\n
\n \n ${this.badgeData?.total_review} REVIEWS\n

\n \n \n
\n \n \n
\n
\n
\n ${Boolean(this.badgeData.buttonType)?`${this.styles.custom_translations.write_a_review}`:""}\n
\n
\n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new W({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n
\n \n \n \n \n \n \n \n \n \n `}}class ct{constructor(t){let{total_review:e,rating:s,name:i,image_url:a,badgeType:n,reviewURL:r,buttonType:l,layoutType:o,style:d,place_id:g,cardSettings:h}=t;this.total_review=e,this.rating=s,this.name=i,this.image_url=a,this.badgeType=n,this.reviewURL=r,this.buttonType=l,this.layoutType=o,this.style=d,this.place_id=g,this.starColor=d.star_color,this.cardSettings=h}render(){let t="right"===this.cardSettings?.offcanvas_position?`right: ${"googleBadgeI"===this.layoutType?"-220px":"googleBadgeII"===this.layoutType?"-205px":"-75px"};`:`left: ${"googleBadgeI"===this.layoutType?"70px":"googleBadgeII"===this.layoutType?"25px":"16px"}; top: ${this.layoutType,"60%"};`;return"googleBadge"===this.layoutType?`\n
\n
\n Google\n ${void 0===this.style.custom_translations.rating_scale_textI?"Reviews":this.style.custom_translations.rating_scale_textI}\n
\n
`:"googleBadgeI"===this.layoutType?`\n
\n
\n Google\n \n ${void 0===this.style.custom_translations.google_rating_text?"Google Rating":this.style.custom_translations.google_rating_text}\n
\n ${this.rating}\n
${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo)}
\n
\n
\n
\n
`:"googleBadgeII"===this.layoutType?`\n
\n
\n Google\n
${M(this.rating,this.starColor,this.cardSettings?.verified_review_logo)}
\n 19 Reviews\n
\n
`:void 0}}class pt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor=At("custom"===this.styles.color_scheme?a.customStyle.custom_background||"transparent":"dark"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#0b0f17":"transparent"===this.styles.color_scheme?"transparent":"#ffffff",this.cardSettings?.background_opacity)}getClassNames(){return"floating"===this.layoutType?"grp-entangle-badge-fixed":"grp-entangle-badge-static"}render(){return`\n
\n
\n ${new ct({reviewURL:this.badgeData.reviewURL,buttonType:this.badgeData.buttonType,badgeType:this.badgeType,name:this.badgeData.name,layoutType:this.layoutType,rating:this.badgeData.rating,total_review:this.badgeData.total_review,image_url:this.badgeData.image_url,style:this.styles,place_id:this.badgeData.place_id,cardSettings:this.cardSettings}).render()}\n \n
\n \n
\n
\n \n \n
\n
\n \n
\n
\n \n \n \n \n ${this.badgeData.rating}\n

\n
\n \n \n ${M(this.badgeData.rating,this.styles?.star_color)}\n
\n
\n \n ${this.badgeData?.total_review} REVIEWS\n

\n \n \n
\n \n \n \n
\n
\n
\n ${Boolean(this.badgeData.buttonType)?`${this.styles.custom_translations.write_a_review}`:""}\n
\n
\n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new W({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n
\n \n \n \n \n \n \n \n \n \n `}}class yt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.firstHalfReviews=i.slice(0,Math.ceil(i.length/2)),this.secondHalfReviews=i.slice(Math.ceil(i.length/2),i.length),this.reviewData=i,this.styles=a,this.auto_play=!0,this.isCentered=n,this.cardSettings=r,this.customSliderElement="infinite-slider",this.arrowDisplay="none",this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutType="badge-III"==this.layoutType||"badge-III"==this.layoutType||A<768?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff"}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){ return`\n ${$(this.cardSettings,this.color)}\n ${"onecol"===this.layoutType?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n
\n
\n \n \n \n \n \n
\n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.firstHalfReviews.map((t,e)=>`
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:`first_row_${e}`}).render()}\n
`).join("")}\n
\n \n ${this.secondHalfReviews.map((t,e)=>`
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:`second_row_${e}`}).render()}\n
`).join("")}\n
\n
\n \n \n \n \n
\n \n
\n \n \n\n\n\n
\n
\n${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n `}}class mt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.auto_play=this.styles.customStyle.auto_play,this.isCentered=n,this.cardSettings=r,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType?"twocol":"badge-II"==this.layoutType?"onecol":"badge-III"==this.layoutType||A<768?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(t){switch(t){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n ${"onecol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n ${new q({reviewURL:this.badgeData.reviewURL,buttonType:this.badgeData.buttonType,badgeType:this.badgeType,name:this.badgeData.name,layoutType:this.layoutType,rating:this.badgeData.rating,total_review:this.badgeData.total_review,image_url:this.badgeData.image_url,style:this.styles,place_id:this.badgeData.place_id,layoutType:this.layoutType}).render()}\n ${"twocol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n \n
\n
\n \n \n \n \n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${"reviewWithArrow"!==this.layoutType?new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render():new Y({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n \n \n \n \n
\n
\n
\n \n \n \n \n \n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n `}}class ut{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.auto_play=this.styles.customStyle.auto_play,this.isCentered=n,this.cardSettings=r,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n ${"onecol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n ${"hidden"===this.cardSettings?.widget_badge?"":new J({reviewURL:this.badgeData.reviewURL,buttonType:this.badgeData.buttonType,badgeType:"ratingSummaryBadge"===this.cardSettings?.widget_badge?"noImage":"withImage",name:this.badgeData.name,layoutType:this.layoutType,rating:this.badgeData.rating,total_review:this.badgeData.total_review,image_url:this.badgeData.image_url,style:this.styles,place_id:this.badgeData.place_id,layoutType:this.layoutType,cardSettings:this.cardSettings}).render()}\n ${"twocol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n \n
\n
\n \n \n \n \n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${"downstar"===this.cardSettings?.widget_card_type?new Ct({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings}).render():new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${"downstartcard"===this.cardSettings?.widget_card_type?new K({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.selectLayout,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render():"arrowcard"===this.cardSettings?.widget_card_type?new Y({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render():new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n \n \n \n \n
\n
\n
\n \n \n \n \n \n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review} `:""}\n
\n
\n `}}class vt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
${this.generateBadgeHtml(this.badgeData)}\n
\n
\n
\n
\n
\n \n \n \n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.layoutType,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e,isSliderLight:!0}).render()}\n
\n `).join("")}\n
\n \n \n \n \n
\n
\n
\n \n \n \n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
\n
\n `}}class _t{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.selectLayout=t,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8", this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
${this.generateBadgeHtml(this.badgeData)}\n
\n
\n
\n ${"badgeReviewSlider"===this.selectLayout?new P({reviewURL:this.badgeData.reviewURL,buttonType:this.badgeData.buttonType,badgeType:this.badgeType,name:this.badgeData.name,layoutType:this.layoutType,rating:this.badgeData.rating,total_review:this.badgeData.total_review,image_url:this.badgeData.image_url,style:this.styles,place_id:this.badgeData.place_id}).render():""}\n \n
\n
\n ${"badgeReviewSlider"!=this.selectLayout?`\n \n \n \n
`:""}\n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new Ct({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new K({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,layoutType:this.selectLayout,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n ${"badgeReviewSlider"!=this.selectLayout?`\n \n \n \n
`:""}\n \n ${"badgeReviewSlider"===this.selectLayout?`
\n \n \n \n \n
\n \n \n \n \n
\n
`:""}\n \n \n \n \n ${"badgeReviewSlider"===this.selectLayout?"":`
`}\n \n \n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
\n
\n `}}class wt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.selectLayout=t,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#0b0f17":"transparent"===this.styles.color_scheme?"#f8f8f8":"#EFEFEF",this.color="light"===this.styles.color_scheme?"#303030":"dark"===this.styles.color_scheme?"#c9c9c9":"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"transparent"===this.styles.color_scheme?"#222222":"#c9c9c9"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}render(){return`\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n \n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new bt({author_name:"AI-Reviews Summary",author_image:"image",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings}).render()}\n
\n `:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.selectLayout,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n ${"badgeReviewSlider"===this.selectLayout?"":`\n
\n `}\n \n
\n \n \n \n \n
\n \n
\n
\n \n \n \n \n \n `}}class ft{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutType=t,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff",this.starColor=a.star_color}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n
\n ${$(this.cardSettings,this.color)}\n
\n \n
\n
\n
\n ${this.badgeData.name}\n
\n \n \n \n \n \n \n \n \n \n ${void 0===this.styles.custom_translations.rating_text?"Rating":this.styles.custom_translations.rating_text}\n
\n
\n
\n ${this.badgeData.rating}\n
\n ${M(this.badgeData.rating,this.starColor)}\n
\n
\n
${void 0===this.styles.custom_translations.rating_scale_textII?"Based on":this.styles.custom_translations.rating_scale_textII} ${this.badgeData.total_review} ${void 0===this.styles.custom_translations.rating_scale_textI?"Reviews":this.styles.custom_translations.rating_scale_textI}
\n
\n \n
${this.generateBadgeHtml(this.badgeData)}\n
\n
\n
\n \n \n \n
\n \n
\n
\n \n \n
\n
\n \n \n \n \n
\n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new St({author_name:"AI-Reviews Summary",author_image:"",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutCheck:this.layoutType}).render()}\n
`:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new Q({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,image_url:t.image_urls,layout:this.layoutType,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
\n `).join("")}\n
\n
\n \n
\n \n \n \n \n
\n \n
\n \n \n \n \n \n \n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
\n
\n \n `}}class xt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutCheck=t,this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
\n ${"onecol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n
\n
\n \n ${"twocol"===this.layoutTypes?`
${this.generateBadgeHtml(this.badgeData)}\n
`:""}\n \n
\n \n
\n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
\n ${new St({author_name:"AI-Reviews Summary",author_image:"",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutCheck:this.layoutCheck}).render()}\n
\n `:""}\n ${this.reviewData.map((t,e)=>`\n
\n ${new tt({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e }).render()}\n
\n `).join("")}\n
\n \n
\n
\n
\n
\n
\n
\n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
\n
\n
\n \n \n `}}class bt{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,total_review:g}=t;this.author_name=e,this.total_review=g,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.reviews=o.reviews_ai_summary,this.layoutType=d,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.computedBackground="custom"===this.styles.color_scheme?"var(--grp_ai_summary_background_color_custom)":"dark"===this.styles.color_scheme?"var(--grp_ai_summary_background_color)":"var(--grp_ai_summary_gradient_color)"}generateReviewsString(t){const e=null===t?"":t.map(t=>`\n
  • \n
    \n
    ${t}
    \n
  • `).join("");return e}render(){return`\n
    \n
    \n
    \n
    \n ${R(this.review,Boolean(this.cardSettings.ai_summary_show_review_profile_imgs))}\n
    \n
    \n
    ${this.author_name}
    \n
    \n

    Based on ${this.total_review} reviews

    \n
    \n
    \n
    \n
    \n
    \n
    \n ${M(this.rating,this.starColor,this.cardSettings?.enable_verified_badge,this.cardSettings?.verified_badge_position)}\n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n `}}class $t{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,total_review:d,layoutType:g}=t;this.author_name=e,this.total_review=d,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.reviews=o.reviews_ai_summary,this.layoutType=g,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.computedBackground="custom"===this.styles.color_scheme?"var(--grp_ai_summary_background_color_custom)":"dark"===this.styles.color_scheme?"var(--grp_ai_summary_background_color)":"var(--grp_ai_summary_gradient_color)"}generateReviewsString(t){const e=null===t?"":t.map(t=>`\n
  • \n
    \n
    ${t}
    \n
  • `).join("");return e}render(){return`\n
    \n
    \n \n
    \n
    \n
    \n ${R(this.review,Boolean(this.cardSettings.ai_summary_show_review_profile_imgs))}\n
    \n
    \n
    ${this.author_name}
    \n
    \n

    Based on ${this.total_review} reviews

    \n
    \n
    \n
    \n ${M(this.rating,this.starColor,this.cardSettings?.enable_verified_badge,this.cardSettings?.verified_badge_position)}\n\n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n `}}class St{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutCheck:d,total_review:g}=t;this.author_name=e,this.author_image=s,this.total_review=g,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layout=d,this.reviews=o.reviews_ai_summary,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.customText={for_write_a_review:this.styles.custom_translations.write_a_review,for_view_all_review:this.styles.custom_translations.show_all_review,for_show_more_text:this.styles.custom_translations.show_more_text,for_show_less_text:this.styles.custom_translations.show_less_text},this.isExpanded=!1,this.computedBackground="custom"===this.styles.color_scheme?"var(--grp_ai_summary_background_color_custom)":"dark"===this.styles.color_scheme?"var(--grp_ai_summary_background_color)":"var(--grp_ai_summary_gradient_color)"}getStarPercentage(t){const e=t/5*100,s=`${e}%`;return s}render(){let t=JSON.stringify(this.styles.custom_translations);return`\n
    \n
    \n
    \n ${M(this.rating,this.starColor,this.cardSettings?.enable_verified_badge,this.cardSettings?.verified_badge_position)}\n\n
    \n
    \n
    \n
    \n \n
    \n
    \n ${this.customText?`\n \n ${this.review?.length>=200?`\n \n ${this.customText?.for_show_more_text}\n \n `:""}\n
    \n `:""}\n \n
    \n
    \n
    \n
    \n ${R(this.review,Boolean(this.cardSettings.ai_summary_show_review_profile_imgs))}\n
    \n
    \n
    ${this.author_name}
    \n
    \n

    Based on ${this.total_review} reviews

    \n
    \n
    \n
    \n
    \n \n `}}class kt{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,total_review:g}=t;this.author_name=e,this.author_image=s,this.total_review=g,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.reviews=o.reviews_ai_summary,this.layoutType=d,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8",this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.computedBackground="custom"===this.styles.color_scheme?"var(--grp_ai_summary_background_color_custom)":"dark"===this.styles.color_scheme?"var(--grp_ai_summary_background_color)":"var(--grp_ai_summary_gradient_color)"}generateReviewsString(t){const e=null===t?"":t.map(t=>`\n
  • \n
    \n
    ${t}
    \n
  • `).join("");return e}render(){return`\n
    \n
    \n
    \n \n
    \n
    \n \n\n\n\n\n\n\n\n
    \n
    \n
    \n \n
    ${this.author_name}
    \n \n
    \n

    Based on ${this.total_review} reviews

    \n \n
    \n
    \n
    \n
    \n
    \n
    \n ${M(this.rating,this.starColor,this.cardSettings?.enable_verified_badge,this.cardSettings?.verified_badge_position)}\n\n
    \n
    \n \n
    \n \n
    \n \n
    \n
    \n \n
    \n
    \n `}}class Ct{constructor(t){const{author_name:e,author_image:s,time:i,review:a,rating:n,center:r,styles:l,cardSettings:o,layoutType:d,total_review:g,image_url:h}=t;this.author_name=e,this.total_review=g,this.author_image=s,this.time=i,this.review=a,this.rating=n,this.center=r,this.styles=l,this.cardSettings=o||{showImage:!0,showName:!0,hideText:!1,hideNoComments:!1,align:"left",dateformat:"mdy",filterStars:0},this.layoutType=d,this.starColor=l.star_color,this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":(this.styles.color_scheme,"#EFEFEF"),this.textColor="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#black":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222222":"#ffffff",this.textFontSize=l?.customStyle.review_text_font_size+"px",this.image_url=h,this.computedBackground="custom"===this.styles.color_scheme?"var(--grp_ai_summary_background_color_custom)":"dark"===this.styles.color_scheme?"var(--grp_ai_summary_background_color)":"var(--grp_ai_summary_gradient_color)"}render(){return`\n
    \n
    \n
    \n \n \n
    \n \n
    \n \n
    \n \n \n
    \n
    \n ${this.cardSettings.showImage&&this.author_image?`\n
    \n ${R(this.review,Boolean(this.cardSettings.ai_summary_show_review_profile_imgs))}\n
    `:""}\n
    \n ${this.cardSettings.showName?`\n
    ${this.author_name}
    \n `:""}\n
    \n

    Based on ${this.total_review} reviews

    \n \n
    \n
    \n
    \n
    \n
    \n
    \n ${M(this.rating,this.starColor,this.cardSettings?.enable_verified_badge,this.cardSettings?.verified_badge_position)}\n\n
    \n
    \n \n
    \n `}}class Tt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff",this.backgroundColor="custom"===this.styles.color_scheme?this.styles.customStyle?.custom_card_background:"dark"===this.styles.color_scheme?"#303030":"azlight"===this.styles.color_scheme?"#f4f6f9":"midnight"===this.styles.color_scheme?"#121826":"transparent"===this.styles.color_scheme?"#EFEFEF":"#f6f6f8"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
    \n
    Thumbnail
    \n
    \n
    \n
    \n
    \n
    \n
    \n \n
    ${void 0===this.styles.custom_translations.rating_text?"Rating":this.styles.custom_translations.rating_text}
    \n
    \n \n
    \n ${"sliderReviewImage"===this.layoutType?`
    ${this.generateBadgeHtml(this.badgeData)}\n
    `:""}\n
    \n \n
    \n
    \n \n
    \n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
    \n ${new bt({author_name:"AI-Reviews Summary",author_image:"",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
    `:""}\n ${this.reviewData.map((t,e)=>`\n
    \n ${new U({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!1,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e }).render()}\n
    \n `).join("")}\n
    \n
    \n \n \n \n \n
    \n \n \n \n \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
    \n
    \n \n \n \n \n `}}class It{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.reviewData=i,this.styles=a,this.isCentered=n,this.cardSettings=r,this.layoutType=t,this.hideNoComments=r.hideNoComments,this.filterStars=r.filterStars,this.auto_play=this.styles.customStyle.auto_play,this.customSliderElement="autoscroll"==r?.slider_display_type?"infinite-slider":"manual-slider",this.arrowDisplay="autoscroll"!=r?.slider_display_type?"flex":"none",this.layoutTypes="badge-III"==this.layoutType||A<768?"twocol":"onecol",this.buttonBorderRadius=this.styles.customStyle.card_border_radius/2,this.color="light"===this.styles.color_scheme?"#303030":"custom"===this.styles.color_scheme?this.styles.customStyle.custom_text_color:"azlight"===this.styles.color_scheme?"#222222":"midnight"===this.styles.color_scheme?"#f1f5f9":"transparent"===this.styles.color_scheme?"#222":"#fff"}getClassNames(){switch(this.layoutTypes){case"onecol":default:return"grp-entangle-swipper-badge-wrapper";case"twocol":return"grp-entangle-slide-twocol"}}generateBadgeHtml(t){return Boolean(this.badgeData.buttonType)?`\n `:""}render(){return`\n ${$(this.cardSettings,this.color)}\n
    \n ${"onecol"===this.layoutTypes?`
    \n ${this.generateBadgeHtml(this.badgeData)}\n
    `:""}\n
    \n
    \n ${"twocol"===this.layoutTypes?`
    ${this.generateBadgeHtml(this.badgeData)}\n
    `:""}\n \n
    \n \n \n \n \n
    \n \n \n ${this.cardSettings.display_ai_summary&&this.cardSettings.paid_user?`\n
    \n ${new kt({author_name:"AI-Generated Summary",author_image:"",time:"",review:this.reviewData,rating:this.badgeData.rating,total_review:this.badgeData.total_review,center:!0,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType}).render()}\n
    `:""}\n ${this.reviewData.map((t,e)=>`\n
    \n ${new X({author_name:t.author_name,author_image:t.profile_photo_url,time:t.time,review:t.text,rating:t.rating,center:!0,styles:this.styles,cardSettings:this.cardSettings,layoutType:this.layoutType,image_url:t.image_urls,author_url:I({url:t.author_url,placeId:this.badgeData.place_id}),cardId:e}).render()}\n
    `).join("")}\n
    \n \n \n \n \n
    \n
    \n \n \n \n \n
    \n

    Google rating score: ${this.badgeData.rating} of 5, based\n on ${this.badgeData.total_review} reviews

    \n
    \n \n
    \n
    \n ${Boolean(this.cardSettings.show_view_on_google)?` ${this.styles.custom_translations.show_all_review}`:""}\n
    \n
    \n \n `}}class Dt{constructor(t,e,s,i,a,n,r){this.badgeType=e,this.badgeData=s,this.layoutType=t,this.reviewData=i,this.isCentered=a,this.styles=n,this.cardSettings=r}render(){switch(this.layoutType){case"map-badge":return new lt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.isCentered,this.styles,this.cardSettings).render();case"dual-row":return new yt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"badge-I":return new ut(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"badge-II":case"badge-III":case"reviewWithArrow":return new mt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"sliderReview":return new ft(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"slider-light":return new vt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"oneSlider":return new xt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"sliderTopProfile":return new It(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"list":case"grid":case"list-I":return new st(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"masonry":return new ot(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"badgeonly":return new N(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"badgewithreview":return new F(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"avatargrid":return new j(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"avatarstar":return new H(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();case"badgebutton":case"badgebuttonI":return new O(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings,this.badgeType).render();case"badgelogo":return new G(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings,this.badgeType).render();case"badgewithrow":return new V(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings,this.badgeType).render();case"floating":case"static":return new ht(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"googleBadge":case"googleBadgeI":case"googleBadgeII":return new pt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"popup-slider":case"popupfloating":return new gt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"sliderdownstar":case"badgeReviewSlider":return new _t(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"sliderReviewImage":return new Tt(this.layoutType,this.badgeType,this.badgeData,this.reviewData,this.styles,this.isCentered,this.cardSettings).render();case"reviewAndBadge":case"reviewAndBadgeIV":case"reviewAndGrid":return new dt(this.layoutType,this.reviewData,this.styles,this.badgeData,this.isCentered,this.cardSettings).render();default:return null}}}function zt(t){function e(){r&&r.classList.add("grp-show"),l&&l.classList.add("grp-modal-backdrop","grp-show")}function s(){r&&r.classList.remove("grp-show"),l&&(l.className="")}function i(t){t.stopPropagation(),r&&r.classList.contains("grp-show")?s():e()}let a=t.closest(".grp-entangle-floating-badge-wrapper")||t;const n=a.querySelectorAll("#grp-toggleButton, .grp-entangle-badge-wrapper #grp-toggleButton, .grp-entangle-floating-badge #grp-toggleButton"),r=a.querySelector("#grp-offcanvasRight")||document.getElementById("grp-offcanvasRight"),l=a.querySelector("#grp-offcanvasBackdrop")||document.getElementById("grp-offcanvasBackdrop"),o=r?r.querySelector(".grp-offcanvas-close"):null;n.forEach(t=>{t.removeEventListener("click",i)}),n.length>0&&n.forEach(t=>{t.addEventListener("click",i)}),o&&(o.removeEventListener("click",s),o.addEventListener("click",s)),l&&(l.removeEventListener("click",s),l.addEventListener("click",s)),s();const d=t.closest(".scroll-trigger.animate--slide-in");d&&d.classList.remove("scroll-trigger","animate--slide-in")}function Bt(t){let e=document.getElementById("grp-entangle-width-check"),s=e?.offsetWidth,i=document.querySelector(".grp-entangle-grid"),a=document.querySelector(".grp-entangle-badge-flex"),n=document.querySelector(".grp-entangle-badge-vertical");s<425&&a&&n&&"badge-I"!==t&&(n.style.alignItems="center"),s<490?i&&(i.style.gridTemplateColumns="repeat(1, 1fr)"):s<768?i&&(i.style.gridTemplateColumns="repeat(2, 1fr)"):i&&(i.style.gridTemplateColumns="repeat(3, 1fr)")}function Mt(t){if(t){var e=document.getElementById(t);return e?void e.remove():void 0}var s=document.querySelectorAll('[id^="grp-entangle--root"]');s.length>0&&s.forEach(function(t){t.remove()})}function Rt(t){const e=t;if(!e||!e.customStyle||!e.color_scheme)return;const s=(t,e)=>"#"+t.replace(/^#/,"").match(/.{2}/g).map(t=>{const s=parseInt(t,16),i=Math.round(s+e/100*(255-s));return i.toString(16).padStart(2,"0")}).join("");if("custom"===e.color_scheme){const t=e.customStyle.custom_card_background,i=s(t,15),a=`linear-gradient(135deg, ${t}, ${i})`;document.documentElement.style.setProperty("--grp_ai_summary_background_color_custom",a)}const i="light"===e.color_scheme||"azlight"===e.color_scheme||"transparent"===e.color_scheme?"#000000":e.customStyle.custom_text_color;document.documentElement.style.setProperty("--grp_list_tick_color",i)}function Lt(t){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t)}function At(t,e){if("white"===t&&(t="#ffffff"),!Lt(t))return t;const s=Math.round(e/100*255).toString(16).padStart(2,"0");return`${t}${s}`}function Et(t){switch(t.color_scheme){case"light":return"background: #222222; color: #ffffff";case"dark":return"background: #ffffff; color: #222222";case"transparent":case"azlight":default:return"background: #2d7ff9; color: #ffffff";case"midnight":return"background: #6366f1; color: #ffffff";case"custom":return`background: ${t?.customStyle?.review_btn_bg}; color: ${t?.customStyle?.review_btn_text}`}}async function Nt(s,a,n,r){const o="true"===a.getAttribute("data-design-mode");let d;const g=window.grp_app_metadata||("undefined"!=typeof grp_app_metadata?grp_app_metadata:void 0);if(g&&Object.keys(g).length>0)d={success:!0,data:g};else{if(g&&0===Object.keys(g).length)return;try{const c=await fetch(s,{method:"get",headers:{"ngrok-skip-browser-warning":"69420"}});d=await c.json()}catch(p){return void console.error("Error fetching data:",p)}}if(d.success&&null!=d.data){let y=JSON.parse(JSON.stringify(d.data));n&&"default"!==n&&(y.widgets[0].layout=n);let u=!1;if(!y.paid_user){let G=["grid","list","static","floating","popupfloating","badge-I","avatarstar","badge-II","badge-III"];null!=n&&"default"!==n||(G=G.concat(["badge-II","badge-III"]));const V=!G.includes(y.widgets[0].layout);if(V){if(!o)return;u=!0}}let _={total_review:y.total_num_of_reviews,rating:y.rating,name:y.name,image_url:e(y.profile_pic),badgeType:"withImage",buttonType:y.widgets[0].show_write_a_review,place_id:y.google_place_id,mapUrl:y.url,address:y.address,phone:y.phone,hours:y.working_hours},w={background_opacity:y.widgets[0].background_opacity,showImage:y.widgets[0].show_image,showName:y.widgets[0].show_name,hideText:y.widgets[0].hide_text,hideNoComments:y.widgets[0].hide_review_with_no_comment,align:y.widgets[0].alignment,show_view_on_google:y.widgets[0].show_view_on_google,dateformat:y.widgets[0].date_format,filterStars:parseInt(y.widgets[0].filter_stars),display_ai_summary:y.widgets[0].display_ai_summary,font_family:y.widgets[0].font_family,ai_summary_show_review_profile_imgs:y.widgets[0].ai_summary_show_review_profile_imgs,reviews_ai_summary:y.paid_user?null===y.reviews_summary?null:JSON.parse(y?.reviews_summary?.summary):null,paid_user:y.paid_user,show_review_image:y.widgets[0].show_review_image,review_image_shape:y.widgets[0].review_image_shape,review_image_position:y.widgets[0].review_image_position,review_text_display_format:y.widgets[0].review_text_display_format,review_truncate_max_len:y.widgets[0].review_truncate_max_len,custom_heading:y.widgets[0].custom_heading,enable_custom_heading:y.widgets[0].enable_custom_heading,ai_summary_style:y.widgets[0].ai_summary_style,enable_ai_summary_animation:y.widgets[0].enable_ai_summary_animation,hide_reviews_without_image:y.widgets[0].hide_reviews_without_image,verified_review_logo:y.widgets[0].verified_review_logo,display_verified_mark:y.widgets[0].display_verified_mark,offcanvas_position:y.widgets[0].offcanvas_position,slider_display_type:y.widgets[0].slider_display_type,slider_direction:y.widgets[0].slider_direction,edge_fade:y.widgets[0].edge_fade,slider_speed:y.widgets[0].slider_speed,widget_badge:y.widgets[0].widget_badge,widget_badge_position:y.widgets[0].widget_badge_position,widget_card_type:y.widgets[0].widget_card_type,rootId:r,enable_fixed_card_height:y.widgets[0].enable_fixed_card_height,reviewer_name_display:y.widgets[0].reviewer_name_display},f={color_scheme:y.widgets[0].display_mode,star_color:JSON.parse(y.widgets[0].style).star_color,customStyle:JSON.parse(y.widgets[0].style),custom_translations:JSON.parse(y.widgets[0].custom_translations)};Rt(f),w.show_review_image&&l(a),window.globalLayoutType=y.widgets[0].layout,v="list"==window.globalLayoutType||"list-I"==window.globalLayoutType?3:6;const x=document.createElement("style"),b=""!==y.widgets[0].custom_css&&JSON.parse(y.widgets[0].custom_css);x.appendChild(document.createTextNode(b)),""!==y.widgets[0].custom_css&&a?.insertAdjacentHTML("afterend",x.outerHTML);let $=document.querySelector(":root");$.style.setProperty("--swiper_dot_color","light"===f.color_scheme?"#303030":"custom"===f.color_scheme?f.customStyle.custom_text_color:"azlight"===f.color_scheme||"transparent"===f.color_scheme?"#222":"#fff");f.customStyle.auto_play;let S=f.customStyle.auto_play_timing?f.customStyle.auto_play_timing:1,k=y.widgets[0].layout;"floating"!==k&&"static"!==k&&"badgelogo"!==k&&"badgewithrow"!==k&&"badgeonly"!==k&&"badgebutton"!==k&&"badgebuttonI"!==k&&"popupfloating"!==k&&"popup-slider"!==k&&"badgewithreview"!==k&&"avatargrid"!==k&&"avatarstar"!==k&&"googleBadge"!==k&&"googleBadgeI"!==k&&"googleBadgeII"!==k&&"map-badge"!==k&&(a.style.backgroundColor=At("custom"===f.color_scheme?f.customStyle.custom_background||"transparent":"dark"===f.color_scheme?"#222222":"midnight"===f.color_scheme?"#0b0f17":"transparent"===f.color_scheme?"transparent":"#FFFFFF",w?.background_opacity)),"badge-I"===k&&(a.style.paddingTop="30px");let C=["badge-I","floating","static","badgebuttonI","reviewWithArrow"].includes(k)?"withImage":"noImage",I=!1;function D(t){return t.map(t=>({...t,profile_photo_url:t.profile_photo_url.split("=")[0]}))}let z=D(y.reviews);function B(t){return!("object"!=typeof t||!t)&&("AggregateRating"===t["@type"]||Object.values(t).some(B))}function M(){const t=document.querySelectorAll('script[type="application/ld+json"]');for(let e of t)try{const t=JSON.parse(e.textContent);return B(t)}catch(t){console.error("Error parsing JSON-LD:",t)}return!1}function R(t,e){return{"@type":"PostalAddress",addressLocality:e?t?.locality:t?.address1,addressRegion:e?t?.region:t?.city,streetAddress:e?t?.street_address:t?.address2,addressCountry:e?t?.country:t?.country_code,postalCode:e?t?.postal_code:t?.zip}}const L={"@context":"https://schema.org/","@type":"LocalBusiness",address:R(null===y?.review_schema_detail?T:y?.review_schema_detail,null!=y?.review_schema_detail),name:y?.name,aggregateRating:{"@type":"AggregateRating",ratingValue:y?.rating,bestRating:"5",ratingCount:y?.total_num_of_reviews}};if(y.widgets[0].enable_review_schema&&(0!==Number(y?.rating)||0!==Number(y?.total_num_of_reviews))&&!M()&&null!==(null===y?.review_schema_detail?T:y?.review_schema_detail)){const q=document.createElement("script");q.className="grp-review-schema",q.type="application/ld+json",q.text=JSON.stringify(L,null,2),document.querySelector("head").appendChild(q)}A=a.offsetWidth;const E=new Dt(k,C,_,z,I,f,w);let N=E.render();if(u){const J='
    Paid Layout Selected: This widget is not available on the free plan and will not be visible on your live site.
    ';N=J+N}a.innerHTML=N;let F="Roboto"===w.font_family?"roboto":null;if(F&&(a.classList.add(F),!document.getElementById("grp-roboto-font"))){var h=document.createElement("link");h.id="grp-roboto-font",h.rel="stylesheet",h.href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap",document.head.appendChild(h)}const j=document.querySelectorAll("#new-rocket-slider-"+r),H=1e3*S,O=["sliderReviewImage","sliderTopProfile"].includes(k)?1:["sliderReview"].includes(k)?2:3;j.forEach(t=>{"autoslide"==w.slider_display_type&&"dual-row"!=k?window.SliderLib.createManualSlider(t,{gap:20,showPagination:"true"==t.dataset.showpagination,slidesPerView:O,autoplay:"true"==t.dataset.autoplay,autoplayDelay:H,fixedCardHeight:w?.enable_fixed_card_height,direction:w?.slider_direction,paginationClass:t.dataset.paginationclass,loop:!0,prevClass:"grp-slider-prev-"+r,nextClass:"grp-slider-next-"+r}):window.SliderLib.createInfiniteSlider(t,{speed:+t.dataset.speed,gap:20,slidesPerView:O,autoplay:"true"==t.dataset.autoplay,direction:w?.slider_direction,loop:!0,prevClass:"grp-slider-prev-"+r,nextClass:"grp-slider-next-"+r})}),["floating","googleBadge","googleBadgeI","googleBadgeII"].includes(k)&&(a.parentElement.style.height=0),["floating","static","popupfloating","popup-slider","googleBadge","googleBadgeI","googleBadgeII"].includes(k)&&zt(a),Bt(k),window.addEventListener("resize",function(){Bt(k),i()}),w.display_ai_summary&&m({ai_summary:w.reviews_ai_summary,setting:w}),"string"==typeof b&&b.includes("content-grpstart")&&t({styleElementCss:b})}}window.grpToggleFullReview=b,window.grpLoadmore=_,window.grpHandleImageClick=o,window.grpCloseModal=d,window.grpPlusSlides=h,window.grpShowSlides=c,window.grpInsertModal=l,window.GrpRemoveApp=Mt;const Ft=new MutationObserver(()=>{const t=document.getElementById("grp-img-container");t&&(setTimeout(()=>{i()},[100]),Ft.disconnect())});let jt;if(Ft.observe(document.body,{childList:!0,subtree:!0}),void 0===window.grp_script_enabled&&(window.grp_script_enabled=!1),window.grp_script_enabled){const Ht=document.getElementById("grp-entangle--root");jt=Ht?[Ht]:[]}else jt=document.querySelectorAll(".grp-entangle--root");jt.forEach(t=>{if(t.hasAttribute("classname")&&!t.hasAttribute("class")&&t.setAttribute("class",t.getAttribute("classname")),"true"===t.getAttribute("data-grp-initialized"))return;const e=t.getAttribute("data-widget-layout"),s=t.getAttribute("data-block-id");if(!window.grp_script_enabled){if(!s)return void console.error("data is not define");const t="grp-entangle--root-"+s;if(!document.getElementById(t))return}t.setAttribute("data-grp-initialized","true");const i=t.id;console.log("GRP"),setTimeout(()=>{Nt(window.grEntangleApiUrl,t,e,i)},100)})}})();