dubuval/twig-widget-views-v1.js
2016-10-16 10:53:19 +02:00

3 lines
84 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

goog.provide("widget_buynow");goog.require("twig");goog.require("twig.filter");widget_buynow=function(env){twig.Template.call(this,env)};twig.inherits(widget_buynow,twig.Template);widget_buynow.prototype.getParent_=function(context){return false};widget_buynow.prototype.render_=function(sb,context,blocks){if(twig.attr("app"in context?context["app"]:null,"maintenance")){sb.append(' <div class="maintenance-mode js-maintenance">\n <h1 class="buynow-form__maintenance-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.maintenance_title","Were temporarily offline for maintenance"),"html",null,true));sb.append('</h1>\n <p class="buynow-form__maintenance-copy">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.maintenance_copy1","Every now and then we have to disable access to the editor whilst we make improvements to speed things up for yourself and visitors to your site."),"html",null,true));sb.append('</p>\n <p class="buynow-form__maintenance-copy">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.maintenance_copy2","These upgrades are usually pretty quick, so well be back up soon!"),"html",null,true));sb.append("</p>\n </div>\n")}else{sb.append(" ");context["freePackage"]=false;sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"packageData")&&twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"price")=="0.00"){sb.append(" ");context["freePackage"]=true;sb.append(" ")}sb.append(' <form class="widget-buynow-container">\n <ul class="widget-buynow-container-list">\n <li>\n <span class="widget-buynow-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.your_detials","Your details"),"html",null,true));sb.append("</span>\n\n ");if(twig.attr("data"in context?context["data"]:null,"showNames")==true){sb.append(' <div>\n <label title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.first_name","First name"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.first_name","First name"),"html",null,true));sb.append('</label>\n <input type="text" name="firstname" class="widget-buynow-first-name js-input-buynow-first-name" title=');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.first_name","First name"),"html",null,true));sb.append(' placeholder="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.first_name","First name"),"html",null,true));sb.append("\">\n <span class='filed-error-firstName errors'></span>\n </div>\n <div>\n <label title=\"");sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.last_name","Last name"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.last_name","Last name"),"html",null,true));sb.append('</label>\n <input type="text" name="lastname" class="widget-buynow-last-name js-input-buynow-last-name" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.last_name","Last name"),"html",null,true));sb.append('" placeholder="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.last_name","Last name"),"html",null,true));sb.append("\">\n <span class='filed-error-lastName errors'></span>\n </div>\n ")}sb.append('\n <div>\n <label title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.account","Account"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.account","Account"),"html",null,true));sb.append('</label>\n <input type="email" name="Account" class="widget-buynow-email bk-standard-input js-input-buynow-email" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.account","Account"),"html",null,true));sb.append('" placeholder="me@example.com">\n <span class=\'filed-error-email errors\'></span>\n </div>\n <div>\n <label title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.password","Password"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.password","Password"),"html",null,true));sb.append('</label>\n <input type="password" class="password js-input-password" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.password","Password"),"html",null,true));sb.append('" placeholder="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.password","Password"),"html",null,true));sb.append('">\n <span class=\'filed-error-password errors\'></span>\n <button class="password-mask-toggle js-password-mask-toggle-btn" type="button" aria-controls="password">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.show","Show"),"html",null,true));sb.append("</button>\n </div>\n </li>\n\n ");if(("freePackage"in context?context["freePackage"]:null)==false){sb.append(" <li>\n ");if(twig.attr("data"in context?context["data"]:null,"paymentMethods")&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"paymentMethods"))>0){sb.append(' <span class="widget-buynow-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.payment_methods","Methods of payment"),"html",null,true));sb.append('</span>\n <ul class="widget-buynow-paymentMethods js-widget-buynow-paymentmethods">\n\n ');context["_parent"]=context;var seq=twig.attr("data"in context?context["data"]:null,"paymentMethods");var loop={index0:0,index:1,first:true};if(twig.countable(seq)){var length=twig.count(seq);loop["revindex0"]=length-1;loop["revindex"]=length;loop["length"]=length;loop["last"]=1===length}twig.forEach(seq,function(v,k){context["ref"]=k;context["name"]=v;sb.append(' <li class="payment-method">\n <label title="');sb.append(twig.filter.escape(this.env_,"name"in context?context["name"]:null,"html",null,true));sb.append('" name="paymentMethods">');sb.append(twig.filter.escape(this.env_,"name"in context?context["name"]:null,"html",null,true));sb.append('\n <input type="radio" class="');sb.append(twig.filter.escape(this.env_,"name"in context?context["name"]:null,"html",null,true));sb.append(" js-input-");sb.append(twig.filter.escape(this.env_,"name"in context?context["name"]:null,"html",null,true));sb.append('" name="paymentMethods" value="');sb.append(twig.filter.escape(this.env_,"ref"in context?context["ref"]:null,"html",null,true));sb.append('" title="');sb.append(twig.filter.escape(this.env_,"name"in context?context["name"]:null,"html",null,true));sb.append('" ');if(twig.attr(loop,"first")){sb.append("checked")}sb.append(">\n </label>\n </li>\n ");++loop["index0"];++loop["index"];loop["first"]=false;if(loop["length"]){--loop["revindex0"];--loop["revindex"];loop["last"]=0===loop["revindex0"]}},this);sb.append("\n </ul>\n ")}else{sb.append(" ");context["noPaymentMethods"]=true;sb.append(" <span>");sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.no_payment_methods","No payment methods found"),"html",null,true));sb.append(".</span>\n ")}sb.append(" </li>\n ")}sb.append("\n <li>\n ");if(twig.attr("data"in context?context["data"]:null,"packageData")&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"packageData"))>0){sb.append(" ");if(("freePackage"in context?context["freePackage"]:null)==true){sb.append(' <span class="widget-buynow-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.register_free","You are about to register"),"html",null,true));sb.append(':</span>\n <div class=\'widget-buynow-package js-buynow-package\'>\n <span class="widget-buynow-package-name" data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"ref"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"name"),"html",null,true));sb.append("</span>\n </div>\n ")}else{sb.append(' <span class="widget-buynow-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.package_title","You are about to purchase"),"html",null,true));sb.append(':</span>\n <div class=\'widget-buynow-package\'>\n <span class="widget-buynow-package-name js-widget-buynow-package-name" data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"ref"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"name"),"html",null,true));sb.append('</span>\n <span class="widget-buynow-package-price js-buynow-package-price" data-annually="" data-monthly="">');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"packageData"),"formattedPrice"),"html",null,true));sb.append('</span>\n </div>\n\n <ul>\n <li class="pay-period">\n <label title="Pay: Annually" name="paymentPeriod">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.package_pay_annually","Pay: Annually"),"html",null,true));sb.append('\n <input type="radio" class="payment-period-annually js-input-payment-period-annually" name="paymentPeriod" value="12" checked="checked" title="Pay: Annually">\n </label>\n </li>\n <li class="">\n <label title="Pay: Monthly" name="paymentPeriod">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.package_pay_monthly","Pay: Monthly"),"html",null,true));sb.append('\n <input type="radio" class="payment-period-monthly js-input-payment-period-monthly" name="paymentPeriod" value="1" title="Pay: Monthly">\n </label>\n </li>\n </ul>\n ')}sb.append(" ")}else{sb.append(" ");context["noPackageInfo"]=true;sb.append(" <span>");sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.no_package","No package information found"),"html",null,true));sb.append(".</span>\n ")}sb.append(' </li>\n </ul>\n\n <div>\n <label class="widget-buynow-newsletter-text">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.newsletter_des","Please don't send me BaseKit news by email or contact me by telephone"),"html",null,true));sb.append('\n <input type="checkbox" class="widget-buynow-newsletter js-input-buynow-newsletter" name="newsletter" title=');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.newsletter","newsletter"),"html",null,true));sb.append(">\n </label>\n </div>\n\n ");if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"buttonText"))>0){sb.append(' <button class="widget-buynow-make-payment js-buynow-make-payment-btn" title="');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"buttonText"),"html",null,true));sb.append('" type="submit" ');if(("noPaymentMethods"in context?context["noPaymentMethods"]:null)||("noPackageInfo"in context?context["noPackageInfo"]:null)){sb.append(" disabled ")}sb.append(">");sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"buttonText"),"html",null,true));sb.append("</button>\n ")}else if(("freePackage"in context?context["freePackage"]:null)==false){sb.append(' <button class="widget-buynow-make-payment js-buynow-make-payment-btn" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.submit","Make a payment using your selected package options"),"html",null,true));sb.append('" type="submit" ');if(("noPaymentMethods"in context?context["noPaymentMethods"]:null)||("noPackageInfo"in context?context["noPackageInfo"]:null)){sb.append(" disabled ")}sb.append(">");sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.buy_now","Buy now"),"html",null,true));sb.append("</button>\n ")}else{sb.append(' <button class="widget-buynow-make-payment js-buynow-make-payment-btn" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.free.submit","Register"),"html",null,true));sb.append('" type="submit">');sb.append(twig.filter.escape(this.env_,App.t("widgets.buynow.buy_now_free","Register"),"html",null,true));sb.append("</button>\n ")}sb.append(" </form>\n")}};widget_buynow.prototype.getTemplateName=function(){return"widget_buynow"};widget_buynow.prototype.isTraitable=function(){return false};goog.provide("widget_ecombasket");goog.require("twig");goog.require("twig.filter");widget_ecombasket=function(env){twig.Template.call(this,env)};twig.inherits(widget_ecombasket,twig.Template);widget_ecombasket.prototype.getParent_=function(context){return false};widget_ecombasket.prototype.render_=function(sb,context,blocks){if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"live")){sb.append(' <div class="ecombasket-pull js-pull">\n <p>');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasket.basket","Basket"),"html",null,true));sb.append(':\n <span class="basket-count">');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"itemCount",undefined,undefined,true)?twig.attr("data"in context?context["data"]:null,"itemCount"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"itemCount"),"html",null,true));sb.append('</span>\n </p>\n </div>\n\n <div class="ecombasket-list-container">\n <ul>\n ');context["items"]=twig.attr("data"in context?context["data"]:null,"items",undefined,undefined,true)?twig.attr("data"in context?context["data"]:null,"items"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"items");sb.append(" ");context["_parent"]=context;var seq="items"in context?context["items"]:null;twig.forEach(seq,function(v,k){context["_key"]=k;context["item"]=v;if(twig.attr("item"in context?context["item"]:null,"quantity")>0){sb.append(' <li data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"ref"),"html",null,true));sb.append('">\n <a class="ecombasket-item-title" href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append("/store/product/");sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"slug"),"html",null,true));sb.append('">\n ');if(twig.attr("item"in context?context["item"]:null,"featureImageAssetRef")){sb.append(" ");context["assetUrl"]=App.stripUrlScheme(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr("item"in context?context["item"]:null,"featureImageAssetRef"),undefined,"array"),"url"));sb.append(' <div class="ecombasket-item-image" style="background-image:url(');sb.append(twig.filter.escape(this.env_,"assetUrl"in context?context["assetUrl"]:null,"html",null,true));sb.append(');">\n <img src="');sb.append(twig.filter.escape(this.env_,"assetUrl"in context?context["assetUrl"]:null,"html",null,true));sb.append('">\n </div>\n ')}sb.append(' </a>\n\n <div class="ecombasket-item-info">\n <a class="ecombasket-item-title" href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append("/store/product/");sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"slug"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"title"),"html",null,true));sb.append('</a>\n <div class="ecombasket-item-count-wrapper">\n <p class="ecombasket-item-count-label">\n ');sb.append(App.t("widgets.ecombasket.quantity","Quantity: %1",'<span class="ecombasket-item-count">'+twig.attr("item"in context?context["item"]:null,"quantity")+"</span>"));sb.append("\n </p>\n </div>\n ");if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")&&!(null===twig.attr("item"in context?context["item"]:null,"formattedPriceTotalInclTax"))){sb.append(' <p class="ecombasket-item-price">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceTotalInclTax"),"html",null,true));sb.append("</p>\n ")}else{sb.append(' <p class="ecombasket-item-price">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceTotal"),"html",null,true));sb.append("</p>\n ")}sb.append(' <button class="ecombasket-remove-button js-remove" data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"ref"),"html",null,true));sb.append('" type="button">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasket.remove","Remove"),"html",null,true));sb.append("</button>\n </div>\n </li>\n ")}},this);sb.append(" </ul>\n\n ");if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")&&(!(null===twig.attr("data"in context?context["data"]:null,"subTotalInclTax"))||!(null===twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotalInclTax")))){sb.append(" ");context["subTotal"]=twig.attr("data"in context?context["data"]:null,"subTotalInclTax")?twig.attr("data"in context?context["data"]:null,"subTotalInclTax"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotalInclTax");sb.append(" ")}else{sb.append(" ");context["subTotal"]=twig.attr("data"in context?context["data"]:null,"subTotal")?twig.attr("data"in context?context["data"]:null,"subTotal"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotal");sb.append(" ")}sb.append('\n <div class="ecombasket-total-wrap">\n <p>');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasket.total","Total"),"html",null,true));sb.append(': <span class="ecombasket-total">');sb.append(twig.filter.escape(this.env_,"subTotal"in context?context["subTotal"]:null,"html",null,true));sb.append('</span></p>\n </div>\n <div class="ecombasket-summary-wrap">\n <a class="btn ecombasket-summary-link" href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append('/store/cart">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasket.summary_link","View basket"),"html",null,true));sb.append("</a>\n </div>\n </div>\n")}};widget_ecombasket.prototype.getTemplateName=function(){return"widget_ecombasket"};widget_ecombasket.prototype.isTraitable=function(){return false};goog.provide("widget_ecombasketsummary");goog.require("twig");goog.require("twig.filter");widget_ecombasketsummary=function(env){twig.Template.call(this,env)};twig.inherits(widget_ecombasketsummary,twig.Template);widget_ecombasketsummary.prototype.getParent_=function(context){return false};widget_ecombasketsummary.prototype.render_=function(sb,context,blocks){if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"hasPaymentsConfigured")){sb.append('\n <h2 class="basket-summary-title">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.title","Basket summary"),"html",null,true));sb.append("</h2>\n ");context["items"]=twig.attr("data"in context?context["data"]:null,"items")?twig.attr("data"in context?context["data"]:null,"items"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"items");sb.append(" ");if(twig.filter.length(this.env_,"items"in context?context["items"]:null)){sb.append(' <table class="basket-summary-items-table">\n <tbody>\n <tr>\n <th class="basket-summary-items-column">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.item_items","Items"),"html",null,true));sb.append(' </th>\n <th class="basket-summary-details-column"></th>\n ');if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")){sb.append(' <th class="basket-summary-amount-column">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.item_description","Amount"),"html",null,true));sb.append(' <span class="tax-note ecombasketsummary__tax-note">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.item_tax_inclusive","(incl. tax)"),"html",null,true));sb.append("</span></th>\n ")}else{sb.append(' <th class="basket-summary-amount-column">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.item_description","Amount"),"html",null,true));sb.append("</th>\n ")}sb.append(" </tr>\n ");context["_parent"]=context;var seq="items"in context?context["items"]:null;twig.forEach(seq,function(v,k){context["_key"]=k;context["item"]=v;sb.append(" ");context["restrictStock"]=twig.attr("item"in context?context["item"]:null,"trackStock")==1&&twig.attr("item"in context?context["item"]:null,"stockUnlimited")==0;sb.append(' <tr class="basket-summary-items">\n <td>\n ');if(!(null===twig.attr("item"in context?context["item"]:null,"productListAssetRef"))){sb.append(" ");context["assetUrl"]=App.stripUrlScheme(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr("item"in context?context["item"]:null,"productListAssetRef"),undefined,"array"),"url"));sb.append(' <div class="image-wrap" style="background-repeat: no-repeat;background-image:url(\'');sb.append(twig.filter.escape(this.env_,"assetUrl"in context?context["assetUrl"]:null,"html",null,true));sb.append('\')">\n <img class="image" style="max-width: 150px" src="');sb.append(twig.filter.escape(this.env_,"assetUrl"in context?context["assetUrl"]:null,"html",null,true));sb.append('">\n </div>\n ')}sb.append(' </td>\n\n <td>\n <div class="basket-summary-product-info">\n <a class="basket-summary-productname" href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append("/store/product/");sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"slug"),"html",null,true));sb.append('">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"title"),"html",null,true));sb.append("</a>\n ");if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")&&!(null===twig.attr("item"in context?context["item"]:null,"formattedPriceUnitInclTax"))){sb.append(' <span class="basket-summary-pricepu">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceUnitInclTax"),"html",null,true));sb.append("</span>\n ")}else{sb.append(' <span class="basket-summary-pricepu">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceUnit"),"html",null,true));sb.append("</span>\n ")}sb.append(' </div>\n\n <div class="basket-summary-quantity">\n <label class="basket-summary-quantity-text">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.quantity","Quantity:"),"html",null,true));sb.append('</label>\n <div class="basket-summary-quantitybtn">\n <button class="btn js-remove" data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"ref"),"html",null,true));sb.append('">-</button>\n <span class="quantity-number">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"quantity"),"html",null,true));sb.append('</span>\n <button class="btn js-add" data-ref="');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"ref"),"html",null,true));sb.append('"');if(("restrictStock"in context?context["restrictStock"]:null)&&twig.attr("item"in context?context["item"]:null,"quantity")>=twig.attr("item"in context?context["item"]:null,"stock")){sb.append(" disabled")}sb.append(">+</button>\n </div>\n </div>\n\n ");if(!(null===twig.attr("item"in context?context["item"]:null,"originalQuantity"))&&twig.attr("item"in context?context["item"]:null,"quantity")==0){sb.append(' <div class="basket-summary-adjustment-notice">\n <p>');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.stock_shortage","You had %1 of this item in your cart but unfortunately its now out of stock. Weve removed it from your cart accordingly.",twig.attr("item"in context?context["item"]:null,"originalQuantity")),"html",null,true));sb.append("</p>\n </div>\n ")}else if(!(null===twig.attr("item"in context?context["item"]:null,"originalQuantity"))&&twig.attr("item"in context?context["item"]:null,"quantity")==1&&twig.attr("item"in context?context["item"]:null,"originalQuantity")>twig.attr("item"in context?context["item"]:null,"quantity")){sb.append(' <div class="basket-summary-adjustment-notice">\n <p>');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.quantity_adjustment_single","You had %1 of this item in your cart but unfortunately only 1 is now left in stock. Weve adjusted your cart accordingly.",twig.attr("item"in context?context["item"]:null,"originalQuantity")),"html",null,true));sb.append("</p>\n </div>\n ")}else if(!(null===twig.attr("item"in context?context["item"]:null,"originalQuantity"))&&twig.attr("item"in context?context["item"]:null,"originalQuantity")>twig.attr("item"in context?context["item"]:null,"quantity")){sb.append(' <div class="basket-summary-adjustment-notice">\n <p>');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.quantity_adjustment","You had %1 of this item in your cart but unfortunately only %2 are now left in stock. Weve adjusted your cart accordingly.",twig.attr("item"in context?context["item"]:null,"originalQuantity"),twig.attr("item"in context?context["item"]:null,"quantity")),"html",null,true));sb.append("</p>\n </div>\n ")}sb.append(" </td>\n ");if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")&&!(null===twig.attr("item"in context?context["item"]:null,"formattedPriceTotalInclTax"))){sb.append(' <td class="basket-summary-amount">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceTotalInclTax"),"html",null,true));sb.append("</td>\n ")}else{sb.append(' <td class="basket-summary-amount">');sb.append(twig.filter.escape(this.env_,twig.attr("item"in context?context["item"]:null,"formattedPriceTotal"),"html",null,true));sb.append("</td>\n ")}sb.append(" </tr>\n ")},this);sb.append(" ");if(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"taxProducts")&&twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"preCalculateTax")&&(!(null===twig.attr("data"in context?context["data"]:null,"subTotalInclTax"))||!(null===twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotalInclTax")))){sb.append(" ");context["subTotal"]=twig.attr("data"in context?context["data"]:null,"subTotalInclTax")?twig.attr("data"in context?context["data"]:null,"subTotalInclTax"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotalInclTax");sb.append(" ")}else{sb.append(" ");context["subTotal"]=twig.attr("data"in context?context["data"]:null,"subTotal")?twig.attr("data"in context?context["data"]:null,"subTotal"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"subTotal");sb.append(" ");
}sb.append(' <tr>\n <td></td>\n <td></td>\n <td class="basket-summary-subtotal">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.subtotal","Subtotal: %1","subTotal"in context?context["subTotal"]:null),"html",null,true));sb.append('</td>\n </tr>\n </tbody>\n </table>\n\n <form action="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"checkoutUrl"),"html",null,true));sb.append('" method="POST">\n ');context["sitePrimaryDomain"]=twig.attr("data"in context?context["data"]:null,"sitePrimaryDomain")?twig.attr("data"in context?context["data"]:null,"sitePrimaryDomain"):"sitePrimaryDomain"in context?context["sitePrimaryDomain"]:null;sb.append('\n <input type="hidden" name="cartId" value="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"id"),"html",null,true));sb.append('">\n <input type="hidden" name="storeRef" value="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"ref"),"html",null,true));sb.append('">\n <input type="hidden" name="storeUrl" value="');sb.append(twig.filter.escape(this.env_,twig.attr("app"in context?context["app"]:null,"protocol"),"html",null,true));sb.append("://");sb.append(twig.filter.escape(this.env_,"sitePrimaryDomain"in context?context["sitePrimaryDomain"]:null,"html",null,true));sb.append('/store">\n\n ');context["purchaseDisabled"]=twig.attr("app"in context?context["app"]:null,"mode")!="published";sb.append(" ");context["itemCount"]=twig.attr("data"in context?context["data"]:null,"itemCount",undefined,undefined,true)?twig.attr("data"in context?context["data"]:null,"itemCount"):twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"cart"),"itemCount");sb.append(" ");if(("itemCount"in context?context["itemCount"]:null)<1){sb.append(" ");context["purchaseDisabled"]=true;sb.append(" ")}sb.append('\n <button class="btn basket-summary-submit" type="submit"');if("purchaseDisabled"in context?context["purchaseDisabled"]:null){sb.append(" disabled")}sb.append(">\n ");sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.submit","Proceed to checkout"),"html",null,true));sb.append("\n </button>\n </form>\n ")}else{sb.append(' <p class="basket-summary-empty-copy">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.empty","Your basket is empty!"),"html",null,true));sb.append('</p>\n <a class="basket-summary-empty-cta btn" href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append('/store">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.empty_cta","Continue shopping"),"html",null,true));sb.append("</a>\n ")}sb.append("\n")}else{sb.append("\n ");if(twig.filter.length(this.env_,twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"email"))>0){sb.append(" <p>");sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.nopayment_available","This store doesn't currently support taking payments. Please contact the store owner at %1.",twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store"),"email")),"html",null,true));sb.append("</p>\n ")}else{sb.append(" <p>");sb.append(twig.filter.escape(this.env_,App.t("widgets.ecombasketsummary.nopayment_available_general","This store doesn't currently support taking payments."),"html",null,true));sb.append("</p>\n ")}sb.append("\n")}};widget_ecombasketsummary.prototype.getTemplateName=function(){return"widget_ecombasketsummary"};widget_ecombasketsummary.prototype.isTraitable=function(){return false};goog.provide("widget_ecomproduct");goog.require("twig");goog.require("twig.filter");widget_ecomproduct=function(env){twig.Template.call(this,env)};twig.inherits(widget_ecomproduct,twig.Template);widget_ecomproduct.prototype.getParent_=function(context){return false};widget_ecomproduct.prototype.render_=function(sb,context,blocks){if(!(null===twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"product"))){sb.append(" ");context["store"]=twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"store");sb.append(" ");context["product"]=!twig.attr("data"in context?context["data"]:null,"product",undefined,undefined,true)?twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"product"):twig.attr("data"in context?context["data"]:null,"product");sb.append(" ");context["variant"]=!twig.attr("data"in context?context["data"]:null,"selectedVariant",undefined,undefined,true)?twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"ecommerce"),"product"),"defaultVariant"):twig.attr("data"in context?context["data"]:null,"selectedVariant");sb.append(" ");if(!(null===("variant"in context?context["variant"]:null))){sb.append(" ");context["variantStock"]=twig.attr("variant"in context?context["variant"]:null,"stock")-twig.attr("variant"in context?context["variant"]:null,"cartQuantity");sb.append(" ")}sb.append(' <textarea name="product" style="display: none !important;" hidden>');sb.append(twig.filter.json_encode("product"in context?context["product"]:null));sb.append('</textarea>\n <article class="ecom-product" itemscope itemtype="http://schema.org/Product">\n ');if(twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"assets"))>0){sb.append(' <div class="ecom-product-images-container">\n ');if(twig.attr("product"in context?context["product"]:null,"featureImageAssetRef")){sb.append(" ");context["imageSrcPreview"]=App.stripUrlScheme(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr("product"in context?context["product"]:null,"featureImageAssetRef"),undefined,"array"),"url"));sb.append(" ")}else{sb.append(" ");context["imageSrcPreview"]=App.stripUrlScheme(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr(_.first(twig.attr("product"in context?context["product"]:null,"assets")),"assetRef"),undefined,"array"),"url"));sb.append(" ")}sb.append(' <div class="ecom-product-preview-image-wrap js-ecom-product-preview-image-wrap" style="background-image:url(\'');sb.append(twig.filter.escape(this.env_,"imageSrcPreview"in context?context["imageSrcPreview"]:null,"html",null,true));sb.append('\')">\n <img class="ecom-product-preview-image js-ecom-product-preview-image " src="');sb.append(twig.filter.escape(this.env_,"imageSrcPreview"in context?context["imageSrcPreview"]:null,"html",null,true));sb.append('" alt itemprop="image">\n </div>\n ');if(twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"assets"))>1){sb.append(' <ul class="ecom-product-image-list">\n ');context["_parent"]=context;var seq=twig.attr("product"in context?context["product"]:null,"assets");twig.forEach(seq,function(v,k){context["_key"]=k;context["asset"]=v;sb.append(" ");if(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr("asset"in context?context["asset"]:null,"assetRef"),undefined,"array"),"fileType")=="image"){sb.append(" ");context["imageSrc"]=App.stripUrlScheme(twig.attr(twig.attr(twig.attr(twig.attr("plugins"in context?context["plugins"]:null,"assets"),"images"),twig.attr("asset"in context?context["asset"]:null,"assetRef"),undefined,"array"),"url"));sb.append(' <li class="ecom-product-image-wrap js-ecom-product-image-wrap" style="background-image:url(\'');sb.append(twig.filter.escape(this.env_,"imageSrc"in context?context["imageSrc"]:null,"html",null,true));sb.append('\')">\n <img class="ecom-product-image" src="');sb.append(twig.filter.escape(this.env_,"imageSrc"in context?context["imageSrc"]:null,"html",null,true));sb.append('" alt>\n </li>\n ')}sb.append(" ")},this);sb.append(" </ul>\n ")}sb.append(" </div>\n ")}sb.append('\n <div class="ecom-product-info">\n <h2 class="ecom-product-title" itemprop="name">');sb.append(twig.filter.escape(this.env_,twig.attr("product"in context?context["product"]:null,"title"),"html",null,true));sb.append("</h2>\n\n ");if(!(null===("variant"in context?context["variant"]:null))){sb.append("\n ");if(twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"options"))>0){sb.append(' <span itemprop="offers" itemscope itemtype="http://schema.org/AggregateOffer">\n ');if(twig.attr("store"in context?context["store"]:null,"taxProducts")&&twig.attr("store"in context?context["store"]:null,"preCalculateTax")&&!(null===twig.attr("variant"in context?context["variant"]:null,"formattedPriceInclTax"))){sb.append(' <p class="ecom-product-price" itemprop="lowPrice">');sb.append(twig.filter.escape(this.env_,twig.attr("variant"in context?context["variant"]:null,"formattedPriceInclTax"),"html",null,true));sb.append(' <span class="tax-note ecombasketsummary__tax-note">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.tax_price","incl. tax*"),"html",null,true));sb.append("</span></p>\n ")}else{sb.append(' <p class="ecom-product-price" itemprop="lowPrice">');sb.append(twig.filter.escape(this.env_,twig.attr("variant"in context?context["variant"]:null,"formattedPrice"),"html",null,true));sb.append("</p>\n ")}sb.append(" </span>\n ")}else{sb.append(' <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">\n ');if(twig.attr("store"in context?context["store"]:null,"taxProducts")&&twig.attr("store"in context?context["store"]:null,"preCalculateTax")&&!(null===twig.attr("variant"in context?context["variant"]:null,"formattedPriceInclTax"))){sb.append(' <p class="ecom-product-price" itemprop="price">');sb.append(twig.filter.escape(this.env_,twig.attr("variant"in context?context["variant"]:null,"formattedPriceInclTax"),"html",null,true));sb.append(" ");sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.tax_price","incl. tax*"),"html",null,true));sb.append("</p>\n ")}else{sb.append(' <p class="ecom-product-price" itemprop="price">');sb.append(twig.filter.escape(this.env_,twig.attr("variant"in context?context["variant"]:null,"formattedPrice"),"html",null,true));sb.append("</p>\n ")}sb.append(" </span>\n ")}sb.append("\n ");if(twig.attr("product"in context?context["product"]:null,"stockTrack")==1&&twig.attr("product"in context?context["product"]:null,"stockUnlimited")==0&&("variantStock"in context?context["variantStock"]:null)<1){sb.append(' <p class="ecom-product-sold-out-note">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.sold-out","Sold out"),"html",null,true));sb.append("</p>\n ")}else if(twig.attr("product"in context?context["product"]:null,"stockTrack")==1&&twig.attr("product"in context?context["product"]:null,"stockUnlimited")==0&&("variantStock"in context?context["variantStock"]:null)<=5&&twig.attr("store"in context?context["store"]:null,"displayLowStockWarnings")==1){sb.append(' <p class="ecom-product-low-stock-note">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.low_stock","Only %1 remaining","variantStock"in context?context["variantStock"]:null),"html",null,true));sb.append("</p>\n ")}sb.append("\n ")}else{sb.append(' <p class="ecom-product-unavailable">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.not-available","Currently unavailable"),"html",null,true));sb.append("</p>\n ")}sb.append("\n ");if(twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"options"))>0){sb.append(' <div class="ecom-product-variation">\n ');context["_parent"]=context;var seq=twig.attr("product"in context?context["product"]:null,"options");twig.forEach(seq,function(v,k){context["_key"]=k;context["option"]=v;sb.append(' <span class="ecom-product-vartitle">');sb.append(twig.filter.escape(this.env_,twig.attr("option"in context?context["option"]:null,"name"),"html",null,true));sb.append('</span>\n <select name="');sb.append(twig.filter.escape(this.env_,twig.attr("option"in context?context["option"]:null,"ref"),"html",null,true));sb.append('" class="js-option">\n ');var seq1=twig.attr("option"in context?context["option"]:null,"values");twig.forEach(seq1,function(v1,k1){context["_key"]=k1;context["value"]=v1;sb.append(" <option ");if(twig.attr("option"in context?context["option"]:null,"selectedValue")==twig.attr("value"in context?context["value"]:null,"ref")){sb.append(" selected ")}sb.append(' value="');sb.append(twig.filter.escape(this.env_,twig.attr("value"in context?context["value"]:null,"ref"),"html",null,true));sb.append('">\n ');sb.append(twig.filter.escape(this.env_,twig.attr("value"in context?context["value"]:null,"value"),"html",null,true));sb.append("\n </option>\n ")},this);sb.append(" </select>\n ")},this);sb.append(" </div>\n ")}sb.append('\n <div class="ecom-product-add-to-cart-btn-wrapper">\n <button class="btn ecom-product-add-to-cart-btn js-ecom-product-add-to-cart-btn" ');if(null===("variant"in context?context["variant"]:null)||twig.attr("product"in context?context["product"]:null,"stockTrack")==1&&twig.attr("product"in context?context["product"]:null,"stockUnlimited")==0&&("variantStock"in context?context["variantStock"]:null)<1){sb.append(" disabled")}sb.append('>\n <span class="text">');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.add-to-cart","Add to cart"),"html",null,true));sb.append('</span>\n </button>\n </div>\n\n <div class="ecom-product-go-to-checkout-btn-wrapper js-ecom-product-go-to-checkout-btn-wrapper">\n <a href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append('/store/cart" class="btn ecom-product-go-to-checkout-btn">\n ');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.cart_link","View basket"),"html",null,true));sb.append("\n </a>\n </div>\n\n ");if(!(null===twig.attr("product"in context?context["product"]:null,"category"))&&twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"category"))>0||!(null===twig.attr("product"in context?context["product"]:null,"tags"))&&twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"tags"))>0){sb.append(' <div class="ecom-product-cattag">\n ');if(!(null===twig.attr("product"in context?context["product"]:null,"category"))&&twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"category"))>0){sb.append(' <span class="ecom-product-category">\n ');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.categories","Category"),"html",null,true));sb.append('\n <a href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append("/store?productlist-categories=");sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("product"in context?context["product"]:null,"category"),"slug"),"html",null,true));sb.append('" class="store-category-link">');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("product"in context?context["product"]:null,"category"),"name"),"html",null,true));sb.append("</a>\n </span>\n ")}sb.append("\n ");if(!(null===twig.attr("product"in context?context["product"]:null,"tags"))&&twig.filter.length(this.env_,twig.attr("product"in context?context["product"]:null,"tags"))>0){sb.append(' <span class="ecom-product-tag">\n ');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.tags","Tags "),"html",null,true));sb.append("\n ");context["_parent"]=context;var seq=twig.attr("product"in context?context["product"]:null,"tags");twig.forEach(seq,function(v,k){context["_key"]=k;context["tag"]=v;sb.append(' <a href="');sb.append(twig.filter.escape(this.env_,"requestBase"in context?context["requestBase"]:null,"html",null,true));sb.append("/store?productlist-tags=");sb.append(twig.filter.escape(this.env_,twig.attr("tag"in context?context["tag"]:null,"slug"),"html",null,true));sb.append('" class="ecom-product-tag-link">');sb.append(twig.filter.escape(this.env_,twig.attr("tag"in context?context["tag"]:null,"title"),"html",null,true));sb.append("</a>\n ")},this);sb.append(" </span>\n ")}sb.append(" </div>\n ")}sb.append('\n </div>\n\n <div class="ecom-product-long-description" itemprop="description">');sb.append(twig.attr("product"in context?context["product"]:null,"content"));sb.append("</div>\n\n ");if(twig.attr("store"in context?context["store"]:null,"taxProducts")&&twig.attr("store"in context?context["store"]:null,"preCalculateTax")&&!(null===twig.attr("variant"in context?context["variant"]:null,"formattedPriceInclTax"))){sb.append(' <p class="ecom-product-tax-explainer">\n ');sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.tax_explainer","* Based on residence in %1. Tax rates for other countries will be calculated at the checkout. Price exclusive of tax: %2.",twig.attr("store"in context?context["store"]:null,"defaultTaxCountry"),twig.attr("variant"in context?context["variant"]:null,"formattedPrice")),"html",null,true));sb.append("\n </p>\n ")}sb.append(" </article>\n")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(" <p>");sb.append(twig.filter.escape(this.env_,App.t("widgets.ecomproduct.no-content","There aren't any products to display."),"html",null,true));sb.append("</p>\n")}};widget_ecomproduct.prototype.getTemplateName=function(){return"widget_ecomproduct"};widget_ecomproduct.prototype.isTraitable=function(){return false};goog.provide("widget_profile");goog.require("twig");goog.require("twig.filter");widget_profile=function(env){twig.Template.call(this,env)};twig.inherits(widget_profile,twig.Template);widget_profile.prototype.getParent_=function(context){return false};widget_profile.prototype.render_=function(sb,context,blocks){if(twig.attr("data"in context?context["data"]:null,"profileType")=="address"){sb.append("<div class='bk-profile-address'>\n ");if(twig.attr("data"in context?context["data"]:null,"address")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"address"))>0){sb.append(' <p class="address">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address"))>0&&twig.attr("data"in context?context["data"]:null,"address")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"address"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"address"),"html",null,true))}sb.append("</p>\n ")}else{sb.append(" ");context["noAddress"]=true;sb.append(" ")}sb.append("\n ");if(twig.attr("data"in context?context["data"]:null,"address1")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address1"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"address1"))>0){sb.append(' <p class="address1">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address1"))>0&&twig.attr("data"in context?context["data"]:null,"address1")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"address1"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"address1"),"html",null,true))}sb.append("</p>\n ")}else{sb.append(" ");context["noAddress1"]=true;sb.append(" ")}sb.append("\n ");if(twig.attr("data"in context?context["data"]:null,"address2")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address2"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"address2"))>0){sb.append(' <p class="address2">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"address2"))>0&&twig.attr("data"in context?context["data"]:null,"address2")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"address2"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"address2"),"html",null,true))}sb.append("</p>\n ")}else{sb.append(" ");context["noAddress2"]=true;sb.append(" ")}sb.append("\n ");if(twig.attr("data"in context?context["data"]:null,"country")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"country"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"country"))>0){sb.append(' <p class="country">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"country"))>0&&twig.attr("data"in context?context["data"]:null,"country")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"country"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"country"),"html",null,true))}sb.append("</p>\n ")}else{sb.append(" ");context["noCountry"]=true;sb.append(" ")}sb.append("\n ");if(twig.attr("data"in context?context["data"]:null,"addressPostalCode")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"addressPostalCode"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"postalcode"))>0){sb.append(' <p class="postal-code">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"addressPostalCode"))>0&&twig.attr("data"in context?context["data"]:null,"addressPostalCode")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"addressPostalCode"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"postalcode"),"html",null,true))}sb.append("</p>\n ")}else{sb.append(" ");context["noPostalcode"]=true;sb.append(" ")}sb.append("\n ");if(("noAddress"in context?context["noAddress"]:null)&&("noAddress1"in context?context["noAddress1"]:null)&&("noAddress2"in context?context["noAddress2"]:null)&&("noCountry"in context?context["noCountry"]:null)&&("noPostalcode"in context?context["noPostalcode"]:null)&&twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <p class="no-address">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.noaddress","No address"),"html",null,true));sb.append("</p>\n ")}sb.append("</div>\n")}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="email"){sb.append("<div class='bk-profile-email'>\n ");if(twig.attr("data"in context?context["data"]:null,"email")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"email"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"email"))>0){sb.append(' <a href="mailto:');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"email"))>0&&twig.attr("data"in context?context["data"]:null,"email")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"email"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"email"),"html",null,true))}sb.append('">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"email"))>0&&twig.attr("data"in context?context["data"]:null,"email")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"email"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"email"),"html",null,true))}sb.append("</a>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(" <span>");sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.noemail","No email"),"html",null,true));sb.append("</span>\n ")}sb.append("</div>\n")}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="headline"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"headline")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"headline"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"headline"))>0){sb.append(' <span class="bk-profile-headline">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"headline"))>0&&twig.attr("data"in context?context["data"]:null,"headline")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"headline"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"headline"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-headline">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.noheadline","No headline"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="strapline"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"strapline")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"strapline"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"strapline"))>0){sb.append(' <span class="bk-profile-strapline">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"strapline"))>0&&twig.attr("data"in context?context["data"]:null,"strapline")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"strapline"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"strapline"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-strapline">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.nostrapline","No strapline"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="companydescription"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"companydescription")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"companydescription"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"companydescription"))>0){sb.append(' <span class="bk-profile-companydescription">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"companydescription"))>0&&twig.attr("data"in context?context["data"]:null,"companydescription")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"companydescription"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"companydescription"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-companydescription">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.nocompanydescription","No company description"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="phone"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"phone")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"phone"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"phone"))>0){sb.append(' <span class="bk-profile-phone">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"phone"))>0&&twig.attr("data"in context?context["data"]:null,"phone")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"phone"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"phone"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-phone">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.nophone","No phone number"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="business"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"business")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"business"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"business"))>0){
sb.append(' <span class="bk-profile-business">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"business"))>0&&twig.attr("data"in context?context["data"]:null,"business")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"business"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"business"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-business">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.nobusiness","No business"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="copyright"){sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"copyright")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"copyright"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"copyright"))>0){sb.append(' <span class="bk-profile-copyright">');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"copyright"))>0&&twig.attr("data"in context?context["data"]:null,"copyright")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"copyright"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"copyright"),"html",null,true));sb.append(" ")}sb.append("</span>\n ")}else if(twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <span class="bk-profile-copyright">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.nocopyright","No copyright"),"html",null,true));sb.append("</span>\n ")}}sb.append("\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="twitter"){sb.append('<ul class="twitter js-twitter">\n\n');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"tweets"))>0){sb.append(" ");context["tweet"]=twig.attr(twig.attr("data"in context?context["data"]:null,"tweets"),0,undefined,"array");sb.append(' <li>\n <div class="twitter-profile-pic">\n <a href="https://twitter.com/');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"screenName"),"html",null,true));sb.append('" target="_blank">\n <img alt="');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"fullName"),"html",null,true));sb.append('" title="');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"fullName"),"html",null,true));sb.append('" data-screename="');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"screenName"),"html",null,true));sb.append('" src="');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"imageUrl"),"html",null,true));sb.append('">\n </a>\n </div>\n\n <div class="twitter-content">\n <a href="https://twitter.com/');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"screenName"),"html",null,true));sb.append('" target="_blank">\n <span class="bk-full-name"> ');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"fullName"),"html",null,true));sb.append(" </span>\n </a>\n <p> ");sb.append(twig.attr("tweet"in context?context["tweet"]:null,"text"));sb.append(' </p>\n <time class="created_at" data-value="');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"createdAt"),"html",null,true));sb.append('"> ');sb.append(twig.filter.escape(this.env_,twig.attr("tweet"in context?context["tweet"]:null,"createdAt"),"html",null,true));sb.append(" </time>\n <span> ");sb.append(twig.filter.escape(this.env_,App.t("widgets.twitter.via","via"),"html",null,true));sb.append(" </span>\n <span> ");sb.append(twig.attr("tweet"in context?context["tweet"]:null,"source"));sb.append(" </span>\n </div>\n </li>\n</ul>\n")}else{sb.append("<p>");sb.append(twig.filter.escape(this.env_,App.t("widgets.twitter.message","Retrieving tweets"),"html",null,true));sb.append(".</p>\n")}}sb.append("\n\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="map"){sb.append('<div class="map js-map"></div>\n')}sb.append("\n\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="form"){sb.append('<form action="" method="post" class="js-form">\n <fieldset>\n <div class="form-group"> ');sb.append('\n <label for="profileform-email">');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.formtitle","Your email"),"html",null,true));sb.append(':</label>\n <input type="email" class="email js-email" placeholder="');sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.formholder","Type your email"),"html",null,true));sb.append('" id="profileform-email" name="profileform-email">\n\n <button class="btn btnText ');if(twig.attr("data"in context?context["data"]:null,"formItalic")){sb.append("italic")}sb.append(" ");if(twig.attr("data"in context?context["data"]:null,"formBold")){sb.append("bold")}sb.append('" type="submit" ');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"formFontSize"))>0){sb.append('style="font-size: ');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"formFontSize"),"html",null,true));sb.append('px"')}sb.append(">");if(twig.attr("data"in context?context["data"]:null,"formText")){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"formText"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.default_button_text","Send"),"html",null,true))}sb.append("</button>\n </div>\n </fieldset>\n</form>\n")}sb.append("\n\n");if(twig.attr("data"in context?context["data"]:null,"profileType")=="socialicons"){sb.append("<div class='bk-profile-socialicons'>\n <!-- linkedIn -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsLinkedin")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsLinkedin"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"linkedin"))>0){sb.append(' <span class="bk-socialicons-linkedin" >\n <a href="');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsLinkedin"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsLinkedin")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsLinkedin"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"linkedin"),"html",null,true))}sb.append('" target="_blank">Linkedin</a>\n </span>\n ')}else{sb.append(" ");context["noLinkedIn"]=true;sb.append(" ")}sb.append("\n <!-- Twitter -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsTwitter")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsTwitter"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"twitter"))>0){sb.append(' <span class="bk-socialicons-twitter">\n <a href="https://twitter.com/');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsTwitter"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsTwitter")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsTwitter"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"twitter"),"html",null,true))}sb.append('" target="_blank">Twitter</a>\n </span>\n ')}else{sb.append(" ");context["noTwitter"]=true;sb.append(" ")}sb.append("\n <!-- Facebook -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsFacebook")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsFacebook"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"facebook"))>0){sb.append(' <span class="bk-socialicons-facebook">\n <a href="');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsFacebook"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsFacebook")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsFacebook"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"facebook"),"html",null,true))}sb.append('" target="_blank">Facebook</a>\n </span>\n ')}else{sb.append(" ");context["noFacebook"]=true;sb.append(" ")}sb.append("\n <!-- Rss -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsRss")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsRss"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"rss"))>0){sb.append(' <span class="bk-socialicons-rss">\n <a href="');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsRss"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsRss")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsRss"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"rss"),"html",null,true))}sb.append('" target="_blank">Rss</a>\n </span>\n ')}else{sb.append(" ");context["noRss"]=true;sb.append(" ")}sb.append("\n ");if(twig.attr("brandCapabilities"in context?context["brandCapabilities"]:null,"disableGoogleServices")!=1){sb.append(" <!-- Google+ -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsGoogleplus")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsGoogleplus"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"googleplus"))>0){sb.append(' <span class="bk-socialicons-googleplus">\n <a href="');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsGoogleplus"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsGoogleplus")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsGoogleplus"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"googleplus"),"html",null,true))}sb.append('" target="_blank">Google+</a>\n </span>\n ')}else{sb.append(" ");context["noGoogleplus"]=true;sb.append(" ")}sb.append("\n <!-- youtube -->\n ");if(twig.attr("data"in context?context["data"]:null,"socialIconsYoutube")!="profile"&&twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsYoutube"))>0||twig.filter.length(this.env_,twig.attr("profile"in context?context["profile"]:null,"youtube"))>0){sb.append(' <span class="bk-socialicons-youtube">\n <a href="');if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsYoutube"))>0&&twig.attr("data"in context?context["data"]:null,"socialIconsYoutube")!="profile"){sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"socialIconsYoutube"),"html",null,true))}else{sb.append(twig.filter.escape(this.env_,twig.attr("profile"in context?context["profile"]:null,"youtube"),"html",null,true))}sb.append('" target="_blank">Youtube</a>\n </span>\n ')}else{sb.append(" ");context["noYoutube"]=true;sb.append(" ")}sb.append("\n ");if(("noLinkedIn"in context?context["noLinkedIn"]:null)&&("noTwitter"in context?context["noTwitter"]:null)&&("noFacebook"in context?context["noFacebook"]:null)&&("noRss"in context?context["noRss"]:null)&&("noGoogleplus"in context?context["noGoogleplus"]:null)&&("noYoutube"in context?context["noYoutube"]:null)&&twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(" <span>");sb.append(twig.filter.escape(this.env_,App.t("widgets.socialicons.noicons","No social icons"),"html",null,true));sb.append("</span>\n ")}sb.append("\n")}else{sb.append("\n ");if(("noLinkedIn"in context?context["noLinkedIn"]:null)&&("noTwitter"in context?context["noTwitter"]:null)&&("noFacebook"in context?context["noFacebook"]:null)&&("noRss"in context?context["noRss"]:null)&&twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(" <span>");sb.append(twig.filter.escape(this.env_,App.t("widgets.socialicons.noicons","No social icons"),"html",null,true));sb.append("</span>\n ")}}sb.append("</div>\n")}sb.append("\n");if((twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"profileType"))==0||twig.attr("data"in context?context["data"]:null,"profileType")!="address"&&twig.attr("data"in context?context["data"]:null,"profileType")!="email"&&twig.attr("data"in context?context["data"]:null,"profileType")!="headline"&&twig.attr("data"in context?context["data"]:null,"profileType")!="strapline"&&twig.attr("data"in context?context["data"]:null,"profileType")!="companydescription"&&twig.attr("data"in context?context["data"]:null,"profileType")!="phone"&&twig.attr("data"in context?context["data"]:null,"profileType")!="business"&&twig.attr("data"in context?context["data"]:null,"profileType")!="copyright"&&twig.attr("data"in context?context["data"]:null,"profileType")!="twitter"&&twig.attr("data"in context?context["data"]:null,"profileType")!="map"&&twig.attr("data"in context?context["data"]:null,"profileType")!="form"&&twig.attr("data"in context?context["data"]:null,"profileType")!="socialicons")&&twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append("<p> ");sb.append(twig.filter.escape(this.env_,App.t("widgets.profile.error","Sorry, something is wrong with this widget"),"html",null,true));sb.append(" </p>\n")}};widget_profile.prototype.getTemplateName=function(){return"widget_profile"};widget_profile.prototype.isTraitable=function(){return false};goog.provide("widget_twitter");goog.require("twig");goog.require("twig.filter");widget_twitter=function(env){twig.Template.call(this,env)};twig.inherits(widget_twitter,twig.Template);widget_twitter.prototype.getParent_=function(context){return false};widget_twitter.prototype.render_=function(sb,context,blocks){sb.append('<ul class="twitter js-twitter">\n ');context["_parent"]=context;var seq=twig.attr("data"in context?context["data"]:null,"tweets");var iterated=false;twig.forEach(seq,function(v,k){context["_key"]=k;context["data"]=v;sb.append(' <li>\n <div class="twitter-profile-pic">\n <a href="https://twitter.com/');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"screenName"),"html",null,true));sb.append('" target="_blank">\n <img alt="');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"fullName"),"html",null,true));sb.append('" title="');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"fullName"),"html",null,true));sb.append('" data-screename="');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"screenName"),"html",null,true));sb.append('" src="');sb.append(twig.filter.escape(this.env_,App.stripUrlScheme(twig.attr("data"in context?context["data"]:null,"imageUrl")),"html",null,true));sb.append('">\n </a>\n </div>\n\n <div class="twitter-content">\n <a href="https://twitter.com/');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"screenName"),"html",null,true));sb.append('" target="_blank">\n <span class="bk-full-name"> ');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"fullName"),"html",null,true));sb.append(" </span>\n </a>\n <p> ");sb.append(twig.attr("data"in context?context["data"]:null,"text"));sb.append(' </p>\n <time class="created_at" data-value="');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"createdAt"),"html",null,true));sb.append('"> ');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"createdAt"),"html",null,true));sb.append(" </time>\n <span> ");sb.append(twig.filter.escape(this.env_,App.t("widgets.twitter.via","via"),"html",null,true));sb.append(" </span>\n <span> ");sb.append(twig.attr("data"in context?context["data"]:null,"source"));sb.append(" </span>\n ");if(!(null===twig.attr("data"in context?context["data"]:null,"retweetUser"))){sb.append(" <p>");sb.append(twig.filter.escape(this.env_,App.t("widgets.twitter.retweeted_by","Retweeted by %1",twig.attr("data"in context?context["data"]:null,"retweetUser")),"html",null,true));sb.append("</p>\n ")}sb.append(" </div>\n </li>\n ");iterated=true},this);if(!iterated){sb.append(" <li>");sb.append(twig.filter.escape(this.env_,App.t("widgets.twitter.no_tweets","No tweets found"),"html",null,true));sb.append("</li>\n ")}sb.append("</ul>\n")};widget_twitter.prototype.getTemplateName=function(){return"widget_twitter"};widget_twitter.prototype.isTraitable=function(){return false};goog.provide("widget_yelpreview");goog.require("twig");goog.require("twig.filter");widget_yelpreview=function(env){twig.Template.call(this,env)};twig.inherits(widget_yelpreview,twig.Template);widget_yelpreview.prototype.getParent_=function(context){return false};widget_yelpreview.prototype.render_=function(sb,context,blocks){if(twig.attr(twig.attr("data"in context?context["data"]:null,"reviews"),"reviews",undefined,undefined,true)&&twig.filter.length(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"reviews"),"reviews"))>0){if(twig.filter.length(this.env_,twig.attr("data"in context?context["data"]:null,"title"))>0){sb.append('<h2 class="yelp-title">');sb.append(twig.filter.escape(this.env_,twig.attr("data"in context?context["data"]:null,"title"),"html",null,true));sb.append("</h2>")}sb.append('<ul class="yelpreview js-yelpreview">\n');context["_parent"]=context;var seq=twig.attr(twig.attr("data"in context?context["data"]:null,"reviews"),"reviews");twig.forEach(seq,function(v,k){context["_key"]=k;context["review"]=v;sb.append(' <li>\n <dl class="review-body">\n <dt class="rating">\n <img src="');sb.append(twig.filter.escape(this.env_,twig.attr("review"in context?context["review"]:null,"rating_image_url"),"html",null,true));sb.append('" alt="');sb.append(twig.filter.escape(this.env_,App.t("widgets.yelpreview.rating","%1 stars",twig.attr("review"in context?context["review"]:null,"rating")),"html",null,true));sb.append('" title="');sb.append(twig.filter.escape(this.env_,App.t("widgets.yelpreview.rating","%1 stars",twig.attr("review"in context?context["review"]:null,"rating")),"html",null,true));sb.append('">\n </dt>\n <dd class="created">');sb.append(twig.filter.escape(this.env_,twig.attr("review"in context?context["review"]:null,"time_created"),"html",null,true));sb.append('</dd>\n <dd class="review">');sb.append(twig.filter.escape(this.env_,twig.attr("review"in context?context["review"]:null,"review"),"html",null,true));sb.append('</dd>\n <dd class="reviewer">');sb.append(twig.filter.escape(this.env_,twig.attr("review"in context?context["review"]:null,"reviewer_name"),"html",null,true));sb.append('</dd>\n <dd class="review-link"><a href="');sb.append(twig.filter.escape(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"reviews"),"url"),"html",null,true));sb.append('" target="_blank">');sb.append(twig.filter.escape(this.env_,App.t("widgets.yelpreview.more_info","Read more..."),"html",null,true));sb.append("</a></dd>\n </dl>\n </li>\n")},this);sb.append("</ul>\n")}sb.append("\n");if(twig.filter.length(this.env_,twig.attr(twig.attr("data"in context?context["data"]:null,"reviews"),"reviews"))==0&&twig.attr("app"in context?context["app"]:null,"mode")!="published"&&twig.attr("app"in context?context["app"]:null,"mode")!="site-preview"){sb.append(' <p class="yelpreview-nobusinessid">\n ');sb.append(twig.filter.escape(this.env_,App.t("widgets.yelpreview.no_business_id","Enter your Yelp business ID to show your top rated review."),"html",null,true));sb.append("\n </p>\n")}};widget_yelpreview.prototype.getTemplateName=function(){return"widget_yelpreview"};widget_yelpreview.prototype.isTraitable=function(){return false};