`),[e.width,e.height]=x[r.size_id].split("x").map((e=>Number(e)))),e.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(((e,t)=>(e[t.key]=t.values[0],e)),{rpfl_elemid:a.adUnitCode}),t.push(e)}else(0,u.logError)(`Rubicon: bidRequest undefined at index position:${n}`,s,e);var c;return t}),[]).sort(((e,t)=>(t.cpm||0)-(e.cpm||0))),c=e.component_auction_config?.map((e=>({config:e,bidId:e.bidId})));return c?{bids:a,paapi:c}:a},getUserSyncs:function(e,t,r,i,n){if(!R&&e.iframeEnabled){let e={};return r&&("boolean"==typeof r.gdprApplies&&(e.gdpr=Number(r.gdprApplies)),"string"==typeof r.consentString&&(e.gdpr_consent=r.consentString)),i&&(e.us_privacy=encodeURIComponent(i)),n?.gppString&&(e.gpp=n.gppString,e.gpp_sid=n.applicableSections?.toString()),e=Object.keys(e).length?`?${(0,u.formatQS)(e)}`:"",R=!0,{type:"iframe",url:`https://${f.syncHost||"eus"}.rubiconproject.com/usync.html`+e}}}};function h(e,t){let r;return r=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?r.replace(/^http:/i,"https:"):r}function v(e){const t=document.getElementById(e.adUnitCode);!function(e){const t=e.querySelector("div[id^='google_ads']");t&&t.style.setProperty("display","none")}(t),function(e){const t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(t);const r={...{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0},...e.renderer.getConfig()};e.renderer.push((()=>{window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:t,align:r.align,position:r.position},closeButton:r.closeButton,label:r.label,collapse:r.collapse})}))}function A(e,t){let r=e.params;if(t===d.G_){let t=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,m.A)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?t=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}let i=[];return Array.isArray(r.sizes)?i=r.sizes:void 0!==(0,m.A)(e,"mediaTypes.banner.sizes")?i=$(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=$(e.sizes):(0,u.logWarn)("Rubicon: no sizes are setup or found"),function(e){const t=[15,2,9];return e.sort(((e,r)=>{const i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r}))}(i)}function j(e,t,r){return i=>{const n=Number(i.ext?.segtax);r.includes(n)&&(e[`tg_${t}.tax${n}`]=i.segment?.map((e=>e.id)).join(","))}}function $(e){return(0,u.parseSizesInput)(e).reduce(((e,t)=>{let r=parseInt(x[t],10);return r&&e.push(r),e}),[])}function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[];if(function(e){let t=void 0!==(0,m.A)(e,`mediaTypes.${d.G_}`),r=void 0!==(0,m.A)(e,`mediaTypes.${d.D4}`),i=void 0!==(0,m.A)(e,"params.bidonmultiformat"),n="object"!=typeof(0,m.A)(e,"params.video");return!(!t||!i)||(r&&n&&(t=!1),t&&n&&(0,l.J)(e,"params.video",{}),t)}(e)){if(-1===["outstream","instream"].indexOf((0,m.A)(e,`mediaTypes.${d.G_}.context`)))return t&&(0,u.logError)("Rubicon: mediaTypes.video.context must be outstream or instream"),r;if(A(e,d.G_).length<2)return t&&(0,u.logError)("Rubicon: could not determine the playerSize of the video"),r;t&&(0,u.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),r.push(d.G_)}if(void 0!==(0,m.A)(e,`mediaTypes.${d.s6}`)&&r.push(d.s6),void 0!==(0,m.A)(e,`mediaTypes.${d.D4}`)){if(0===A(e,d.D4).length)return t&&(0,u.logError)("Rubicon: could not determine the sizes for banner request"),r;t&&(0,u.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),r.push(d.D4)}return r}function S(e){let t=!1;const r=["asi","sid","hp"];return e.nodes?(t=e.nodes.reduce(((e,t)=>e?r.every((e=>t.hasOwnProperty(e))):e),!0),t||(0,u.logError)("Rubicon: required schain params missing"),t):t}function I(e,t){return"rp_schain"===e?`rp_schain=${t}`:`${e}=${encodeURIComponent(t)}`}var R=!1;(0,s.a$)(_),(0,i.E)("rubiconBidAdapter")}},e=>{e.O(0,[60802,58498,97247,47618,51085],(()=>{return t=99293,e(e.s=t);var t}));e.O()}]);(self.pbjsChunk=self.pbjsChunk||[]).push([[84258],{95282:(e,t,n)=>{var i=n(7873),r=n(57377),s=n(43272),a=n(71371),o=n(91069);const d=["inScreen","inImage","inArticle","inBanner"],p={[a.D4]:"display",[a.G_]:"video"},c="fixed",u="mobile",l="unknown",g=()=>{const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection||{};switch(e.type||e.effectiveType){case"wifi":case"ethernet":return c;case"cellular":case"wimax":return u;default:return/iPad|iPhone|iPod/.test(navigator.userAgent)||/android/i.test(navigator.userAgent)?l:c}};function m(e){return!!e.mediaTypes&&!!e.mediaTypes.video}function b(e){const t=e.params;return!!t.publisherId&&!!t.adUnitId&&d.indexOf(t.placement)>-1}function h(e){const t=e.params,n=(0,o._map)(Object.keys(e.mediaTypes),(function(e){return p[e]})),i={id:e.bidId,transactionId:e.ortb2Imp?.ext?.tid,gpid:e.ortb2Imp?.ext?.gpid,sizes:e.sizes,supplyTypes:n,adUnitId:t.adUnitId,adUnitCode:e.adUnitCode,geom:S(e.adUnitCode),placement:t.placement,requestCount:e.bidderRequestsCount||1};return m(e)&&(i.videoParams=y(e)),i}function y(e){const t=e.mediaTypes.video||{};return t.playerSize&&(t.w=t.playerSize[0][0],t.h=t.playerSize[0][1]),t}function f(e){const t="display"===(n=e.mediaType)?a.D4:"video"===n?a.G_:n;var n;const i={requestId:e.bidId,cpm:e.price,width:e.width,height:e.height,creativeId:e.creativeId,currency:e.currency,netRevenue:!0,mediaType:t,ttl:e.ttl,nurl:e.nurl,meta:{advertiserDomains:e&&e.adomain&&e.adomain.length>0?e.adomain:[]}};return t===a.G_?i.vastXml=e.content:i.ad=e.content,i}function v(){const e=(()=>{try{const e=performance.getEntriesByType("navigation")[0];return Math.round(e.responseStart-e.startTime)}catch(e){try{const e=performance.timing;return Math.round(e.responseStart-e.fetchStart)}catch(e){return 0}}})();return e>=0&&e<=performance.now()?e:0}function S(e){const t=document.getElementById(e);if(t){const e=window.scrollY,{top:n,left:i,width:r,height:s}=t.getBoundingClientRect();return{scrollY:e,top:n,left:i,width:r,height:s,viewport:{width:window.innerWidth,height:window.innerHeight}}}}const I={code:"seedtag",gvlid:157,aliases:["st"],supportedMediaTypes:[a.D4,a.G_],isBidRequestValid:e=>m(e)?function(e){const t=y(e);let n=!!e.params.publisherId&&!!e.params.adUnitId&&m(e)&&!!t.playerSize&&(0,o.isArray)(t.playerSize)&&t.playerSize.length>0;return"inStream"===e.params.placement?n&&"instream"===t.context:n&&"outstream"===t.context&&function(e){return!!e.mediaTypes&&!!e.mediaTypes.banner}(e)&&b(e)}(e):b(e),buildRequests(e,t){const n={url:t.refererInfo.page,publisherToken:e[0].params.publisherId,cmp:!!t.gdprConsent,timeout:t.timeout,version:"9.8.0-pre",connectionType:g(),auctionStart:t.auctionStart||Date.now(),ttfb:v(),bidRequests:(0,o._map)(e,h),user:{topics:[],eids:[]}};if(n.cmp){const e=t.gdprConsent.gdprApplies;void 0!==e&&(n.ga=e),n.cd=t.gdprConsent.consentString}t.uspConsent&&(n.uspConsent=t.uspConsent),e[0].schain&&(n.schain=e[0].schain);let i=s.$W.getConfig("coppa");i&&(n.coppa=i),t.gppConsent?n.gppConsent={gppString:t.gppConsent.gppString,applicableSections:t.gppConsent.applicableSections}:t.ortb2?.regs?.gpp&&(n.gppConsent={gppString:t.ortb2.regs.gpp,applicableSections:t.ortb2.regs.gpp_sid}),t.ortb2?.user?.data&&(n.user.topics=t.ortb2.user.data),e[0]&&e[0].userIdAsEids&&(n.user.eids=e[0].userIdAsEids),t.ortb2?.bcat&&(n.bcat=t.ortb2?.bcat),t.ortb2?.badv&&(n.badv=t.ortb2?.badv),t.ortb2?.device?.sua&&(n.sua=t.ortb2.device.sua);return{method:"POST",url:"https://s.seedtag.com/c/hb/bid",data:JSON.stringify(n)}},interpretResponse:function(e){const t=e.body;return t&&t.bids&&(0,o.isArray)(t.bids)?(0,o._map)(t.bids,(function(e){return f(e)})):[]},getUserSyncs(e,t){const n=t[0];if(e.iframeEnabled&&n){const e=n.body.cookieSync;return e?[{type:"iframe",url:e}]:[]}return[]},onTimeout(e){const t=function(e){let t="";if((0,o.isArray)(e)&&e[0]&&(0,o.isArray)(e[0].params)&&e[0].params[0]){const n=e[0].params[0],i=e[0].timeout;t="?publisherToken="+n.publisherId+"&adUnitId="+n.adUnitId+"&timeout="+i}return"https://s.seedtag.com/se/hb/timeout"+t}(e);(0,o.triggerPixel)(t)},onBidWon:function(e){e&&e.nurl&&(0,o.triggerPixel)(e.nurl)}};(0,r.a$)(I),(0,i.E)("seedtagBidAdapter")}},e=>{e.O(0,[60802,51085],(()=>{return t=95282,e(e.s=t);var t}));e.O()}]);(self.pbjsChunk=self.pbjsChunk||[]).push([[4085],{43297:(e,n,t)=>{var r=t(7873),o=t(91069),u=t(70433),s=t(43272),p=t(11445),i=t(16916),l=t(75023),c=t(78969),a=t(45569),d=t(2604),f=t(95139),g=t(76811);const h={purpose:{},feature:{}},v={purpose:!1,feature:"specialFeatureOptins"},m={storage:{type:"purpose",default:{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]},id:1},basicAds:{type:"purpose",id:2,default:{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},personalizedAds:{type:"purpose",id:4},measurement:{type:"purpose",id:7},transmitPreciseGeo:{type:"feature",id:1}},y=new Set,B=new Set,E=new Set,k=new Set,q=new Set,A=new Set;let $=!1,b=!1;const C=[a.tW,a.fW,a.Tn,a.zu],D="TCF2",w=[],O=[2],W=[2,7,9,10];function P(e,n,t,r){const o=(0,u.A)(e,`vendorData.${n}`);return!!o?.consents?.[t]||r&&!!o?.legitimateInterests?.[t]}function S(e,n,t,r){let o;if(!1!==v[n])o=!!(0,u.A)(e,`vendorData.${v[n]}.${t}`);else{const[n,u]=r===i.B1?["publisher",W]:["purpose",O];o=P(e,n,t,u.includes(t))}return{purpose:o,vendor:P(e,"vendor",r,O.includes(t))}}function T(e,n,t,r){const o=m[e.purpose];if((e.vendorExceptions||[]).includes(t))return!0;const u=e.enforceVendor&&!(r===i.B1||(e.softVendorExceptions||[]).includes(t)),{purpose:s,vendor:p}=S(n,o.type,o.id,r);return(!e.enforcePurpose||s)&&(!u||p)}function x(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>null;return function(u){const p=i.mW.getConsentData(),l=u[d.iK];if(function(e,n,t){return null==e&&i.mW.enabled?((0,o.logWarn)(`Attempting operation that requires purpose ${n} consent while consent data is not available${t?` (module: ${t})`:""}. Assuming no consent was given.`),!0):e&&e.gdprApplies}(p,e,l)){const e=function(e,n,t){if(n){const r=s.$W.getConfig("gvlMapping");if(r&&r[n])return r[n];if(e===a.tp)return i.B1;{let{gvlid:r,modules:u}=i.o2.get(n);if(null==r&&Object.keys(u).length>0)for(const t of C)if(u.hasOwnProperty(t)){r=u[t],t!==e&&(0,o.logWarn)(`Multiple GVL IDs found for module '${n}'; using the ${t} module's ID (${r}) instead of the ${e}'s ID (${u[e]})`);break}return null==r&&t&&(r=t()),r||null}}return null}(u[d.Dk],l,r(u));let c=!!n(p,l,e);if(!c)return t&&t.add(l),{allow:c}}}}function F(e){return x(e,((n,t,r)=>!!T(h.purpose[e],n,t,r)),arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>null)}function M(e){return function(n){if(n[d.Dk]!==a.tp)return e(n)}}const V=(j=F(1,y),function(e){if(e[d.Dk]!==a.tp||b)return j(e)});var j;const I=F(1,y),N=F(1,y),z=M(F(2,B)),G=F(7,E,(e=>function(e,n){const t=p.Ay.getAnalyticsAdapter(e);return(r=>{if("function"!=typeof r)return r;try{return r.call(t.adapter,n)}catch(n){(0,o.logError)(`Error invoking ${e} adapter.gvlid()`,n)}})(t?.adapter?.gvlid)}(e[d.iK],e[d.TQ]))),K=F(4,k),L=M((()=>{const e=x("2-10",(function(e,n,t){for(let r=2;r<=10;r++){if(h.purpose[r]?.vendorExceptions?.includes(n))return!0;const{purpose:o,vendor:u}=S(e,"purpose",r,t);if(o&&(u||h.purpose[r]?.softVendorExceptions?.includes(n)))return!0}return!1}),q),n=F(4,q);return function(){return(h.purpose[4]?.eidsRequireP4Consent?n:e).apply(this,arguments)}})()),R=x("Special Feature 1",((e,n,t)=>T(h.feature[1],e,n,t)),A);l.on(c.qY.AUCTION_END,(function(){const e=function(e){return Array.from(e.keys()).filter((e=>null!=e))},n={storageBlocked:e(y),biddersBlocked:e(B),analyticsBlocked:e(E),ufpdBlocked:e(k),eidsBlocked:e(q),geoBlocked:e(A)};l.emit(c.qY.TCF2_ENFORCEMENT,n),[y,B,E,k,q,A].forEach((e=>e.clear()))})),s.$W.getConfig("consentManagement",(e=>function(e){let n=(0,u.A)(e,"gdpr.rules");n||(0,o.logWarn)("TCF2: enforcing P1 and P2 by default"),n=Object.fromEntries((n||[]).map((e=>[e.purpose,e]))),b=!!(0,u.A)(e,"strictStorageEnforcement"),Object.entries(m).forEach((e=>{let[t,r]=e;h[r.type][r.id]=n[t]??r.default})),$||(null!=h.purpose[1]&&($=!0,w.push((0,f.qB)(g.Ue,D,V)),w.push((0,f.qB)(g.Ml,D,I)),w.push((0,f.qB)(g.yl,D,N))),null!=h.purpose[2]&&w.push((0,f.qB)(g.uc,D,z)),null!=h.purpose[4]&&w.push((0,f.qB)(g.DL,D,K),(0,f.qB)(g.qX,D,K)),null!=h.purpose[7]&&w.push((0,f.qB)(g.mo,D,G)),null!=h.feature[1]&&w.push((0,f.qB)(g.hE,D,R)),w.push((0,f.qB)(g.hq,D,L)))}(e.consentManagement))),(0,r.E)("tcfControl")}},e=>{e.O(0,[60802,51085],(()=>{return n=43297,e(e.s=n);var n}));e.O()}]);(self.pbjsChunk=self.pbjsChunk||[]).push([[28746],{27454:(e,t,r)=>{var n=r(7873),i=r(91069),o=r(70433),a=r(57377),s=r(12938),d=r(72285);const c="teads",p=12,u=11,l=0,g=22,m=(0,s.vM)({bidderCode:c}),y={code:c,gvlid:132,supportedMediaTypes:["video","banner"],isBidRequestValid:function(e){let t=!1;if(void 0!==e.params){let r=w((0,i.getValue)(e.params,"placementId")),n=w((0,i.getValue)(e.params,"pageId"));t=r&&n}return t||(0,i.logError)("Teads placementId and pageId parameters are required. Bid aborted."),t},buildRequests:function(e,t){const r=e.map(b),n=window.top,i={referrer:f(t),pageReferrer:document.referrer,pageTitle:v().slice(0,300),pageDescription:h().slice(0,300),networkBandwidth:(a=window.navigator,a&&a.connection&&a.connection.downlink>=0?a.connection.downlink.toString():""),timeToFirstByte:S(window),data:r,deviceWidth:screen.width,deviceHeight:screen.height,devicePixelRatio:n.devicePixelRatio,screenOrientation:screen.orientation?.type,historyLength:n.history?.length,viewportHeight:n.visualViewport?.height,viewportWidth:n.visualViewport?.width,hardwareConcurrency:n.navigator?.hardwareConcurrency,deviceMemory:n.navigator?.deviceMemory,hb_version:"9.8.0-pre",...I(e),...A(e)};var a;const s=e[0];s.schain&&(i.schain=s.schain);let d=t.gppConsent;if(t&&d){let e="string"==typeof d.gppString,t=Array.isArray(d.applicableSections)&&d.applicableSections.every((e=>"number"==typeof e));i.gpp={consentString:e?d.gppString:"",applicableSectionIds:t?d.applicableSections:[]}}let c=t.gdprConsent;if(t&&c){let e="boolean"==typeof c.gdprApplies,t="string"==typeof c.consentString,r=e?function(e,t){let r=p;e?t&&!t.isServiceSpecific&&(r=u):r=l;return r}(c.gdprApplies,c.vendorData):g;i.gdpr_iab={consent:t?c.consentString:"",status:r,apiVersion:c.apiVersion}}t&&t.uspConsent&&(i.us_privacy=t.uspConsent);const m=(0,o.A)(s,"ortb2.device.sua");m&&(i.userAgentClientHints=m);const y=(0,o.A)(t,"ortb2.regs.ext.dsa");y&&(i.dsa=y);return{method:"POST",url:"https://a.teads.tv/hb/bid-request",data:JSON.stringify(i)}},interpretResponse:function(e,t){if(!(e=e.body).responses)return[];const r=(0,d.T)();return e.responses.filter((e=>!e.needAutoplay||r)).map((e=>{const t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};return e.dealId&&(t.dealId=e.dealId),e?.ext?.dsa&&(t.meta.dsa=e.ext.dsa),t}))}};function I(e){const t={unifiedId2:"uid2.id",liveRampId:"idl_env",lotamePanoramaId:"lotamePanoramaId",id5Id:"id5id.uid",criteoId:"criteoId",yahooConnectId:"connectId",quantcastId:"quantcastId",epsilonPublisherLinkId:"publinkId",publisherFirstPartyViewerId:"pubcid",merkleId:"merkleId.id",kinessoId:"kpuid"};let r={};for(const n in t){const i=t[n],a=(0,o.A)(e,`0.userId.${i}`);a&&(r[n]=a)}return r}function f(e){let t="";return e&&e.refererInfo&&e.refererInfo.page&&(t=e.refererInfo.page),t}function v(){try{const e=window.top.document.querySelector('meta[property="og:title"]');return window.top.document.title||e&&e.content||""}catch(e){const t=document.querySelector('meta[property="og:title"]');return document.title||t&&t.content||""}}function h(){let e;try{e=window.top.document.querySelector('meta[name="description"]')||window.top.document.querySelector('meta[property="og:description"]')}catch(t){e=document.querySelector('meta[name="description"]')||document.querySelector('meta[property="og:description"]')}return e&&e.content||""}function S(e){const t=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance,r=t&&"function"==typeof t.getEntriesByType&&"[object Function]"===Object.prototype.toString.call(t.getEntriesByType)&&t.getEntriesByType("navigation")[0]&&t.getEntriesByType("navigation")[0].responseStart&&t.getEntriesByType("navigation")[0].requestStart&&t.getEntriesByType("navigation")[0].responseStart>0&&t.getEntriesByType("navigation")[0].requestStart>0&&Math.round(t.getEntriesByType("navigation")[0].responseStart-t.getEntriesByType("navigation")[0].requestStart);if(r)return r.toString();const n=t&&t.timing.responseStart&&t.timing.requestStart&&t.timing.responseStart>0&&t.timing.requestStart>0&&t.timing.responseStart-t.timing.requestStart;return n?n.toString():""}function b(e){const t={};let r=(0,i.getValue)(e.params,"placementId"),n=(0,i.getValue)(e.params,"pageId");const a=(0,o.A)(e,"ortb2Imp.ext.gpid"),s=(0,o.A)(e,"mediaTypes.video.plcmt");return t.sizes=function(e){return(0,i.parseSizesInput)(function(e){let t=(0,o.A)(e,"mediaTypes.video.playerSize"),r=(0,o.A)(e,"mediaTypes.video.sizes"),n=(0,o.A)(e,"mediaTypes.banner.sizes");if((0,i.isArray)(n)||(0,i.isArray)(t)||(0,i.isArray)(r)){return[n,r,t].reduce((function(e,t){return(0,i.isArray)(t)&&((0,i.isArray)(t[0])?t.forEach((function(t){e.push(t)})):e.push(t)),e}),[])}return e.sizes}(e))}(e),t.bidId=(0,i.getBidIdParameter)("bidId",e),t.bidderRequestId=(0,i.getBidIdParameter)("bidderRequestId",e),t.placementId=parseInt(r,10),t.pageId=parseInt(n,10),t.adUnitCode=(0,i.getBidIdParameter)("adUnitCode",e),t.transactionId=e.ortb2Imp?.ext?.tid||"",a&&(t.gpid=a),s&&(t.videoPlcmt=s),t}function w(e){return parseInt(e)>0}function A(e){const t=(0,o.A)(e,"0.userId.teadsId");if(t)return{firstPartyCookieTeadsId:t};if(m.cookiesAreEnabled(null)){const e=m.getCookie("_tfpvi",null);if(e)return{firstPartyCookieTeadsId:e}}return{}}(0,a.a$)(y),(0,n.E)("teadsBidAdapter")}},e=>{e.O(0,[42809,60802,51085],(()=>{return t=27454,e(e.s=t);var t}));e.O()}]);(self.pbjsChunk=self.pbjsChunk||[]).push([[98282],{26504:(e,t,r)=>{var n=r(7873),i=r(70433),o=r(91069),a=r(71371),s=r(57377),p=r(43272),d=r(12938),l=r(76568);const u="triplelift";let c=null,m=null;const f=(0,d.vM)({bidderCode:u}),g={gvlid:28,code:u,supportedMediaTypes:[a.D4,a.G_],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){let r="https://tlx.3lift.com/header/auction?",n=function(e,t){let r={},{schain:n}=e[0];const a=function(e){const t={},r={},n={},i=e.ortb2||{},a=function(){const e=f.getDataFromLocalStorage("opecloud_ctx");if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,o.logError)("Triplelift: error parsing JSON: ",e),null}}(),s=Object.assign({},i.site),p=Object.assign({},i.user);if(a){p.data=p.data||[];try{p.data.push({name:"www.1plusx.com",ext:a})}catch(e){(0,o.logError)("Triplelift: error adding 1plusX segments: ",e)}}x(r,s),x(n,p),(0,o.isEmpty)(r)||(t.context=r);(0,o.isEmpty)(n)||(t.user=n);return t}(t);r.imp=e.map((function(e,t){let r={id:t,tagid:e.params.inventoryCode,floor:h(e)};return b(e)&&(r.video=function(e){let t={...e.params.video,...e.mediaTypes.video};try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,o.logWarn)("Video size not defined",e)}t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number));return delete t.playerSize,t}(e)),e.mediaTypes.banner&&!y(e)&&(r.banner={format:_(e.sizes)}),(0,o.isEmpty)(e.ortb2Imp)||(r.fpd=function(e){const t={},r={};x(r,e.ext),(0,o.isEmpty)(r)||(t.context=r);return t}(e.ortb2Imp),(0,o.isEmpty)(e.ortb2Imp.ext)||(r.ext={...e.ortb2Imp.ext})),r}));let s=[];e[0].userIdAsEids&&(s=i.A(e[0],"userIdAsEids"),r.user={ext:{eids:s}});let p=function(e,t){let r={};(0,o.isEmpty)(e)||(r.schain={...e});(0,o.isEmpty)(t)||(r.fpd={...t});return r}(n,a);(0,o.isEmpty)(p)||(r.ext=p);t?.ortb2?.regs?.gpp&&(r.regs=Object.assign({},t.ortb2.regs));t?.ortb2&&(r.ext.ortb2=Object.assign({},t.ortb2));return r}(e,t);if(r=(0,l.v)(r,"lib","prebid"),r=(0,l.v)(r,"v","9.8.0-pre"),t&&t.refererInfo){let e=t.refererInfo.page;r=(0,l.v)(r,"referrer",e)}return t&&t.timeout&&(r=(0,l.v)(r,"tmax",t.timeout)),t&&t.gdprConsent&&(c=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies,r=(0,l.v)(r,"gdpr",c.toString()),void 0!==t.gdprConsent.consentString&&(m=t.gdprConsent.consentString,r=(0,l.v)(r,"cmp_cs",m))),t&&t.uspConsent&&(r=(0,l.v)(r,"us_privacy",t.uspConsent)),t?.paapi?.enabled&&(r=(0,l.v)(r,"fledge",t.paapi.enabled)),!0===p.$W.getConfig("coppa")&&(r=(0,l.v)(r,"coppa",!0)),r.lastIndexOf("&")===r.length-1&&(r=r.substring(0,r.length-1)),(0,o.logMessage)("tlCall request built: "+r),{method:"POST",url:r,data:n,bidderRequest:t}},interpretResponse:function(e,t){let{bidderRequest:r}=t,n=e.body.bids||[];const i=e.body.paapi||[];if(n=n.map((e=>function(e,t){let r={},n=t.width||1,i=t.height||1,o=t.deal_id||"",a=t.crid||"",s=e.bids[t.imp_id];0!=t.cpm&&t.ad&&(r={requestId:s.bidId,cpm:t.cpm,width:n,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:"USD",ttl:300,tl_source:t.tl_source,meta:{}},b(s)&&"video"===t.media_type&&(r.vastXml=t.ad,r.mediaType="video",r.ttl=3600),t.advertiser_name&&(r.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(r.meta.advertiserDomains=t.adomain),t.tl_source&&"hdx"==t.tl_source&&(b(s)&&"video"===t.media_type?r.meta.mediaType="video":r.meta.mediaType="banner"),t.tl_source&&"tlx"==t.tl_source&&(r.meta.mediaType="native"),a&&(r.meta.networkId=a.slice(0,a.indexOf("_"))));return r}(r,e))),i.length>0){const e=i.map((e=>({bidId:r.bids[e.imp_id].bidId,config:e.auctionConfig})));return(0,o.logMessage)("Response with FLEDGE:",{bids:n,fledgeAuctionConfigs:e}),{bids:n,paapi:e}}return n},getUserSyncs:function(e,t,r,n,i){let o=function(e){if(!e)return;if(e.iframeEnabled)return"iframe";if(e.pixelEnabled)return"image"}(e);if(!o)return;let a="https://eb2.3lift.com/sync?";return"image"===o&&(a=(0,l.v)(a,"px",1),a=(0,l.v)(a,"src","prebid")),(null!==m||c)&&(a=(0,l.v)(a,"gdpr",c),a=(0,l.v)(a,"cmp_cs",m)),n&&(a=(0,l.v)(a,"us_privacy",n)),i&&(i.gppString&&(a=(0,l.v)(a,"gpp",i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(a=(0,l.v)(a,"gpp_sid",i.applicableSections.filter((e=>Number.isInteger(e))).join(",")))),[{type:o,url:a}]}};function b(e){return v(e)&&(y(e)||function(e){return v(e)&&"outstream"===e.mediaTypes.video.context.toLowerCase()}(e))}function y(e){return v(e)&&"instream"===e.mediaTypes.video.context.toLowerCase()}function v(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function h(e){let t=null;if("function"==typeof e.getFloor)try{const r=e.getFloor({currency:"USD",mediaType:b(e)?"video":"banner",size:"*"});"object"!=typeof r||"USD"!==r.currency||isNaN(parseFloat(r.floor))||(t=parseFloat(r.floor))}catch(e){(0,o.logError)("Triplelift: getFloor threw an error: ",e)}return null!==t?t:e.params.floor}function x(e,t){(0,o.isEmpty)(t)||Object.keys(t).forEach((r=>{null!=t[r]&&(e[r]=t[r])}))}function _(e){return e.filter(E).map((function(e){return{w:e[0],h:e[1]}}))}function E(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}(0,s.a$)(g),(0,n.E)("tripleliftBidAdapter")}},e=>{e.O(0,[14577,60802,51085],(()=>{return t=26504,e(e.s=t);var t}));e.O()}]);})(),pbjs.processQueue();KL.Modules.movements = new function(){ var self = this; this.drag = 0; this.velocity = 0; this.captured = null; var draglisteners = {}; this.adddraglistener = adddraglistener; function adddraglistener(id, rules) { draglisteners[id] = rules; } this.removedraglistener = removedraglistener; function removedraglistener(id) { delete draglisteners[id]; } function startdrag(node) { // limpiamos los listeners que ya no funcionan (en caso de recargar la página) // buscamos el nodo afin for (var i in draglisteners) { if (draglisteners[i].startleft) { if (self.dragstartx >= draglisteners[i].startleft[0] && self.dragstartx <= draglisteners[i].startleft[1]) { self.captured = i; draglisteners[i].listener('start', buildmetrics()); break; } } if (draglisteners[i].startright) { var w = WA.browser.getScreenWidth(); if (self.dragstartx >= draglisteners[i].startright[0]+w && self.dragstartx <= draglisteners[i].startright[1]+w) { self.captured = i; draglisteners[i].listener('start', buildmetrics()); break; } } if (draglisteners[i].node) { var n = WA.toDOM(draglisteners[i].node); var p = node; while (n != p && p != window && p != null) p = p.parentNode; if (p == n) { self.captured = i; draglisteners[i].listener('start', buildmetrics()); break; } } } } function drag() { if (self.captured) draglisteners[self.captured].listener('drag', buildmetrics()); } function stopdrag() { if (self.captured) draglisteners[self.captured].listener(self.velocity<0?'izquierda':'derecha', buildmetrics()); } function buildmetrics() { return {startx:self.dragstartx, x:self.dragx, dx:self.dragdx, velocity: self.velocity}; } function touchstart(e) { self.drag = 1; self.dragstartx = WA.browser.getTouchDocumentX(e); self.dragstarty = WA.browser.getTouchDocumentY(e); self.dragdx = 0; self.dragx = self.dragstartx; self.velocity = 0; self.draglasttime = new Date().getTime(); self.draglasttimex = self.dragstartx; startdrag(e.target); } function touchmove(e) { var deltax = self.dragstartx - WA.browser.getTouchDocumentX(e); var deltay = self.dragstarty - WA.browser.getTouchDocumentY(e); if (self.drag == 1) { // start drag when Delta move > 10 px if (Math.abs(deltax) < 5 && Math.abs(deltay) < 5) return; if (Math.abs(deltax) > Math.abs(deltay)) self.drag = 2; // move horizontaly } if (self.drag == 2) { // in cuadrant 2 and 4 (< and >) start drag; self.dragx = WA.browser.getTouchDocumentX(e); self.dragdx = self.dragx - self.dragstartx; var deltat = new Date().getTime() - self.draglasttime; if (deltat < 1) deltat = 1; var deltah = self.dragx - self.draglasttimex; self.draglasttime = new Date().getTime(); self.draglasttimex = self.dragx; self.velocity = deltah / deltat * 700; drag(); } } function touchend(e) { if (self.drag == 2) { if (Math.abs(self.velocity) < 50) self.velocity = 0; if (self.velocity > 1000) self.velocity = 1000; if (self.velocity < -1000) self.velocity = -1000; stopdrag(); } self.drag = 0; self.captured = null; } function start() { WA.Managers.event.on('touchstart', document, touchstart, false); WA.Managers.event.on('touchmove', document, touchmove, false); WA.Managers.event.on('touchend', document, touchend, false); } KL.loader.addHookStart('general', start);}var flagFB = false;KL.Modules.facebook = new function () { var self = this; var cargado = false; var FBresponse = null; this.facebookok = false; var serversent = false; var called = null; // Facebook asyncronous //this.fbAsyncInit = window.fbAsyncInit(); window.fbAsyncInit = function () { //console.log("async fb") FB.init({ appId: KL.fbid, cookie: true, // enable cookies to allow the server to access xfbml: true, // parse social plugins on this page version: 'v9.0' // use version 3.0 }); // to send the response of authorization google FB.getLoginStatus(function (response) { self.FBlistener(response); // th Listener in the new structure is the start function }); FB.Event.subscribe('auth.login', self.FBlistener); //FB.Event.subscribe('auth.logout', self.FBlistener); FB.Event.subscribe('auth.authResponseChange', self.FBlistener); }; // FBlistener this.FBlistener = FBlistener; function FBlistener(response) {// console.log("fb listener")// console.log(response) FBresponse = response; if (called < new Date().getTime() / 1000 - 1) { called = null; } if (self.facebookok && FBresponse!==undefined && !called) { called = new Date().getTime() / 1000; loginFacebook(); return; } } // login facebook function loginFacebook() { //console.log("fb login") if (FBresponse.status === 'connected') { // && flagFB let auxAccessToken = FBresponse.authResponse.accessToken; let auxSignedRequest = FBresponse.authResponse.signedRequest; if (serversent == true) return; WA.Managers.ajax.createPromiseRequest({ url: KL.identitydomains + '/sociallogin/fb', method: 'POST', send: false }) .then(function (request) { request.addParameter('language', KL.language); //language=es|en request.addParameter('device', KL.device); //device="pc", "mobile", "ios", "android" request.addParameter('user', "{ \"signedRequest\" : \"" + auxSignedRequest + "\", \"accessToken\" : \"" + auxAccessToken + "\" } "); //language=es|en serversent = true; return request.send(); // }) .then(function (response) { self.facebookok = false; serversent = false; var code = JSON.parse(response); // proceso... mismo para todas las redes sociales... switch (code.status) { case "REGISTER": KL.Modules.stat.registerEvent('loginset', 'loginset/social/fb/register'); KL.Modules.stat.registerEventGA4('loginset/social/fb/register', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.client.loadclient(); KL.Modules.loginset.forms['enlaza'].fill(code, 'fb'); break; case "OK": KL.Modules.stat.registerEvent('loginset', 'loginset/social/fb/login'); KL.Modules.stat.registerEventGA4('loginset/social/fb/login', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.client.loadclient(); KL.Modules.loginset.Logged(); break; case "Error": KL.Modules.stat.registerEvent('loginset', 'loginset/sociallogin/facebook/' + respuesta.code); KL.Modules.stat.registerEventGA4('loginset/sociallogin/facebook/', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.loginset.errorlogin('loginset-social-facebook' + respuesta.code, respuesta.message); break; } }) .catch(function (code, err) { KL.Modules.stat.registerEvent('loginset', 'loginset/sociallogin/' + code); KL.Modules.stat.registerEventGA4('loginset/sociallogin/' + code, {'send_to': 'G-X0MHE23QYB'}); }); } else if (FBresponse.status === 'not_authorized') { //console.log("No autorizado"); }/* else { } */ } this.show = show; function show() { self.node.style.display = 'block'; } this.hide = hide; function hide() { self.node.style.display = 'none'; } this.loadFacebookBtn = loadFacebookBtn; function loadFacebookBtn() { if (window.FB && FB.XFBML) { self.facebookok = true; //console.log("FB loaded") } if (!self.facebookok) { //console.log("no carga window.FB") setTimeout(function () { loadFacebookBtn(); }, 100); return; } window.fbAsyncInit(); } this.cargasdk = cargasdk; function cargasdk() { /* Facebook SDK */ // already loaded ??? if(cargado) { return; } WA.Managers.externloader.loadexterncode("https://connect.facebook.net/" + KL.locale + "/sdk.js#xfbml=1&version=v3.2&appId=" + KL.fbid); cargado=true; } this.share = share; function share(shareQuote, shareUrl) { var url = document.location.href; var quote = false; if (shareUrl && (typeof(shareUrl) === "string")) url = shareUrl; if (shareQuote && (typeof(shareQuote) === "string") && !(shareQuote === "")) quote = shareQuote; var params = {href: url, method: "share", display: "popup"}; if (quote) params.quote = quote; if (url.indexOf('/quiz/') !== -1) ga('send', 'event', 'quiz', 'quiz/share', 'share', 0); // second parameter is a callback FB.ui(params, null); } this.start = start; function start() { self.cargasdk(); } this.load = load; function load(){ if (!WA.toDOM('botonfacebook')) return; self.loadFacebookBtn(); } // KL.loader.addHookStart('facebook', start); KL.loader.addHookLoad('facebook', load);}/*function KiwiFBlistener(response) { flagFB = true; KL.Modules.facebook.FBlistener(response);}*//* Manejo de los datos del cliente, conectado o no *//* Escrito por: Phil Fecha: Julio 2016 Control de cambios: 10/07/2016: Phil, Creación 18/08/2016: Phil, agregar control de notificaciones y tiempo de ultima lectura, depuración de atributos no usados 15/02/2019: Wilmer, boton para el nuevo menu desplegable 15/04/2019: Wilmer, manejo de origen*/KL.Modules.client = new function(){ var self = this; this.clientready = false; // true cuando ya sabemos la info del client (o sin client) this.clientlogged = false; // true si el client esta conectado this.clientpro = false; // true si el client es PRO this.node = null; this.nodemenu = null; this.opened = false; this.closecandidate = false; this.loaded = false; var clientcode = null; // codigo del client var hooksloaded = {}; // llamar cuando recibimos los datos del client (sea conectado o no) var hooksconnect = {}; // llamar cuando se conecta un client var hooksdisconnect = {}; // llamar cuando se desconecta un client this.addHookLoad = addHookLoad; function addHookLoad(id, hook) { hooksloaded[id] = hook; // Si ya paso por aqui, tenemos que llamar el hook ! if (self.clientready) hook(); } this.delHookLoad = delHookLoad; function delHookLoad(id) { delete hooksloaded[id]; } function callHooksLoad() { for (var i in hooksloaded) { hooksloaded[i](); } } /* Chef conectado*/ this.addHookConnect = addHookConnect; function addHookConnect(id, hook) { hooksconnect[id] = hook; if (self.clientready) hook(); } this.callHooksConnect = callHooksConnect; function callHooksConnect() { for (var i in hooksconnect) { hooksconnect[i](); } } this.delHookConnect = delHookConnect; function delHookConnect(id) { delete hooksconnect[id]; } /* Chef conectado*/ /* Chef desconectado*/ this.addHookDisconnect = addHookDisconnect; function addHookDisconnect(id, hook) { hooksdisconnect[id] = hook; if (self.clientready) hook(); } this.callHooksDisconnect = callHooksDisconnect; function callHooksDisconnect() { for (var i in hooksdisconnect) { hooksdisconnect[i](); } } function buildClient() { if (clientcode == null) { self.clientready = false; return; } self.clientready = true; self.clientlogged = !!clientcode.client; self.clientpro = self.clientlogged && clientcode.client && (!!clientcode.client.p); node = WA.toDOM("header-client"); if (self.clientlogged){ temp = WA.templates['client_connected'](clientcode); if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")){ //WA.toDOM("header-icono-kiwipro").style.display = "block"; WA.toDOM("header-div-logo-normal").style.display = "none"; WA.toDOM("header-div-logo-pro").style.display = "block"; WA.toDOM("header").style.backgroundColor = "var(--azul-kiwipro)"; //WA.toDOM("header").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/header-azul-desk-fest.jpg')"; WA.toDOM("header").style.backgroundRepeat = "repeat-x"; WA.toDOM("footer-divfooter").style.backgroundColor = "var(--azul-kiwipro)"; //WA.toDOM("footer-divfooter").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/footer-azul-desk-fest.jpg')"; WA.toDOM("footer-divfooter").style.backgroundRepeat = "repeat-x"; if (KL.device == "pc") WA.toDOM("header-search-go").style.backgroundColor = "#9fc7c4"; } if((!KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")){ WA.toDOM("header-div-logo-normal").style.display = "block"; WA.toDOM("header-div-logo-pro").style.display = "none"; WA.toDOM("header").style.backgroundColor = "var(--verde-kiwi)"; //WA.toDOM("header").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/header-verde-desk-fest.jpg')"; WA.toDOM("header").style.backgroundRepeat = "repeat-x"; //WA.toDOM("footer-divfooter").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/footer-verde-desk-fest.jpg')"; WA.toDOM("footer-divfooter").style.backgroundRepeat = "repeat-x"; } } else{ temp = WA.templates['client_notconnected'](clientcode); if(KL.rootsite == "kiwi"){ //WA.toDOM("header-icono-kiwipro").style.display = "none"; WA.toDOM("header-div-logo-normal").style.display = "block"; WA.toDOM("header-div-logo-pro").style.display = "none"; WA.toDOM("header").style.backgroundColor = "var(--verde-kiwi)"; //WA.toDOM("header").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/header-verde-desk-fest.jpg')"; WA.toDOM("header").style.backgroundRepeat = "repeat-x"; //WA.toDOM("footer-divfooter").style.backgroundImage = "url('" + KL.cdn7domains + "/img/static/footer-verde-desk-fest.jpg')"; WA.toDOM("footer-divfooter").style.backgroundRepeat = "repeat-x"; //WA.toDOM("header-search-go").style.backgroundColor = "#a8e05c"; } } node.innerHTML = temp; if ((self.clientlogged) && (!KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")) { //WA.toDOM("header-urliconpro").style.display = "block"; WA.toDOM("header-urliconpro").style.display = "flex"; } // Link menus self.loaded = false; self.node = WA.toDOM("header-client-button"); self.nodemenu = WA.toDOM("header-client-menu"); if (self.node) { self.node.onclick=switchmenu; self.node.ontouchstart=switchmenu; self.node.onmouseover=switchon; self.node.onmouseout=tryswitchoff; } if (self.nodemenu) { self.nodemenu.onmouseover=switchon; self.nodemenu.onmouseout=tryswitchoff; } } // MANEJO DEL MENU DEL CLIENTE: function switchmenu(event) { if (!self.opened) return switchon(event); switchoff(); return WA.browser.cancelEvent(event); } function switchon(event) { self.closecandidate = false; if (self.closetimer) { clearTimeout(self.closetimer); self.closetimer = null; } if (self.opened) return; KL.Modules.menu.switchoff(); KL.Modules.language.switchoff(); KL.Modules.search.switchoff(); KL.Modules.stat.registerEvent('headclient', 'head/client/open'); KL.Modules.stat.registerEventGA4('head/client/open', {'send_to': 'G-X0MHE23QYB'}); self.opened = true; if (KL.device == "mobile") { self.nodemenu.style.top = "46px"; if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")){ self.node.className = "anim onpro"; WA.toDOM('header-client-menu').classList.add("divmenupro"); } else{ self.node.className = "anim on"; } } else { self.nodemenu.style.top = "60px"; if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")){ self.node.className = "anim onpro"; WA.toDOM('header-client-menu').classList.add("divmenupro"); } else{ self.node.className = "anim on"; } } if (!self.loaded) load(); return WA.browser.cancelEvent(event); } function tryswitchoff() { self.closecandidate = true; self.closetimer = setTimeout(switchoff, 200); } this.switchoff = switchoff; function switchoff(event) { self.closecandidate = false; if (self.closetimer) { clearTimeout(self.closetimer); self.closetimer = null; } if (!self.opened) return; KL.Modules.stat.registerEvent('headclient', 'head/client/close'); KL.Modules.stat.registerEventGA4('head/client/close', {'send_to': 'G-X0MHE23QYB'}); self.opened = false; // gets height of node h = WA.browser.getNodeOuterHeight(self.nodemenu); self.nodemenu.style.top = -h + "px"; self.node.className = "anim"; return WA.browser.cancelEvent(event); } function load() { var request = WA.Managers.ajax.createRequest('/data/menuclient' + (self.clientlogged ? '' : 'nc'), 'POST', null, loaded, true); } function loaded(request) { self.nodemenu.innerHTML = request.responseText; // Quita la coronita cuando el usuario no es pro if ((self.clientlogged) && (KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")) { WA.toDOM("menuclient-padlock-planeador").style.display = "none"; } // reajustar top -X si cerrado if (self.opened == false) { h = WA.browser.getNodeOuterHeight(self.nodemenu); self.nodemenu.style.top = -h + "px"; } self.loaded = true; KL.loader.callHooksPostLoad(); } function start() { // Start: load the 1rst time client data // Toma el objeto del cliente del JS precargado // Pone la plantilla correspondiente al client clientcode = KL.pagedata.client; buildClient(); } this.getClaveChef = getClaveChef; function getClaveChef() { return clientcode.client.c; } this.getCountry = getCountry; function getCountry() { return clientcode.gep; } this.loadclient = loadclient; function loadclient() { var urlClient = self.clientlogged ? KL.graphdomains + '/v6/client' : KL.identitydomains + '/client'; var request = WA.Managers.ajax.createRequest(urlClient, 'POST', 'device=' + KL.device + '&language=' + KL.language, getloadclient, true); } function getloadclient(request) { clientcode = JSON.parse(request.responseText); buildClient(); updateCache(); // para evitar display de publicidad usuario pro if(self.clientlogged && self.clientpro) KL.loader.reloadPro = true; } this.loadAvatarChef = loadAvatarChef; function loadAvatarChef() { var image = new Image(); image.addEventListener('error', event => { var imgUrl = KL.rootsite == 'crafto' ? KL.cdn7domains + "/craftologia/static/icono-usuario.svg" : KL.cdn7domains + "/kiwilimon/static/icono-usuario.svg"; var imgChef = WA.toDOM('img-avatar-chef'); imgChef.style.backgroundImage = 'url(' + imgUrl + ')'; }) image.src = clientcode.client.i; } this.disconnect = disconnect; function disconnect() { KL.Modules.client.clientlogged = false; var request = WA.Managers.ajax.createRequest(KL.identitydomains + '/client', 'DELETE', 'device=' + KL.device+'&language=' + KL.language, loadclient, true); //var request = WA.Managers.ajax.createRequest(KL.graphdomains + '/v6/client', 'DELETE', 'device=' + KL.device+'&language=' + KL.language, loadclient, true); esté se va a manejar por el im 27/11/2023 //delete cookie? var date = new Date(); date.setTime(date.getTime()+(-24*60*60*1000)); var expires = "; expires="+date.toGMTString(); // Desconecta cierra session de facebook DAG FB.getLoginStatus(function (response) { if(response.status == "connected") KL.Modules.facebook.logout(); }); if(KL.devel) { document.cookie = "siteSessionDevel=" + expires + "; domain=" + KL.cookiedomain + "; path=/"; } else { document.cookie = "siteSession=" + expires + "; domain=" + KL.cookiedomain + "; path=/"; } KL.Modules.client.switchoff(); } // llamado cada 30 segundos para saber si hay notificaciones nuevas del cliente function recon() { var request = WA.Managers.ajax.createRequest(KL.identitydomains + '/notification', 'GET', 'device=' + KL.device + '&language=' + KL.language, getnotif, true); } // newsletter this.sendnewsletter = sendnewsletter; function sendnewsletter() { const mail = WA.toDOM('newsletter').value; if (mail == "") { return; } WA.Managers.ajax.createPromiseRequest({ url: KL.identitydomains + '/newsletter', method: 'POST', send: false }) .then(function (request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('user', mail); return request.send(); }) .then(function (response) { const resp = JSON.parse(response); /* if (resp.status == "OK") { KL.Modules.modal.notifica(resp.message); } else { */ /* se modificó este pedacito para que si estamos parados en la landing newsletter entonces muestre un mensaje de bienvenida */ if (resp.status == "OK") { var landingnews = window.location.pathname; if( landingnews == '/newsletter-registro' ){ var bloqprincipalnews = WA.toDOM('newsletter-principal'); var bloqregistronews = WA.toDOM('newsletter-area-registro-mail'); var bloqrespregistronews = WA.toDOM('newsletter-respuesta-registro-mail'); KL.Modules.modal.notifica(resp.message); setTimeout( function() { bloqprincipalnews.removeChild(bloqregistronews); bloqrespregistronews.style.display = 'flex'; }, 4000); } else{ KL.Modules.modal.notifica(resp.message); } } else { switch (resp.code) { case 1504: KL.Modules.modal.notifica(resp.message); break; default: KL.Modules.modal.alerta(resp.message); break; } } }) .catch(function (code, err) { // }); } function updateCache() { caches.keys() .then(function(cacheNames){ for(var name of cacheNames) { if(name.search(/kiwi/) != -1) { caches.open(name).then((cache) => cache.add("/")); caches.open(name).then((cache) => cache.add(document.location.origin + "/login/social?p=" + document.location.pathname)); caches.open(name).then((cache) => cache.add(document.location.href)); } } }) } KL.loader.addHookRecon('client', recon); KL.loader.addHookStart('client', start);}/* search, main search field */KL.Modules.search = new function(){ var self = this; this.node = null; this.nodesearch = null; this.nodeclose = null; this.nodego = null; this.nodesugg = null; this.opened = false; this.trx = 0; var flagsearch = false; // Set to true when searching data from the server. Only 1 search authorize at the same time. If more we ignore them, just get the last one. var timer = null; // timer set to search from server (delay 300ms) function hidesuggestion() { if (!self.nodesugg) return; self.nodesugg.style.display = "none"; } function showsuggestion() { if (!self.nodesugg) { // No suggestions support return; } KL.Modules.menu.switchoff(); KL.Modules.language.switchoff(); KL.Modules.client.switchoff(); self.nodesugg.style.display = "block"; KL.Modules.stat.registerEvent('headsearch', 'head/search/suggest'); KL.Modules.stat.registerEventGA4('head/search/suggest', {'send_to': 'G-X0MHE23QYB'}); } // Activated only on mobile function hidesearch() { if (!self.nodesearch) return; hidesuggestion(); self.opened = false; self.nodesearch.className = "anim"; self.nodego.className = "icon-k7-search anim"; self.node.value=""; } // Activated only on mobile function showsearch() { if (!self.nodesearch) return; KL.Modules.menu.switchoff(); KL.Modules.language.switchoff(); KL.Modules.client.switchoff(); self.opened = true; self.nodesearch.className = "anim on"; if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")) self.nodego.className = "icon-k7-search anim onpro"; else self.nodego.className = "icon-k7-search anim on"; self.node.focus(); } function changeq(event) { setTimeout(function () {verificaq();}, 0); } function verificaq() { if (timer) { clearTimeout(timer); timer = null; } var numc = self.node.value.trim().length; var word = self.node.value.trim(); if (numc >= 3) // Intentamos con timeout a 0: cada caracter es enviado a sugerencias timer = setTimeout(function() { gosuggestion(word); }, 0); else hidesuggestion(); } function gosuggestion(word) { var request = WA.Managers.ajax.createRequest(KL.graphdomains + '/v6/suggestions', 'POST', null, getsuggestion, false); request.addParameter('q', word); request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('trx', ++self.trx); request.send(); } function getsuggestion(request) { var resp = JSON.parse(request.responseText); if (resp.trx < self.trx) return; text = ""; for (var i = 0, l = resp.payload.length; i < l; i++) { text += '
' + resp.payload[i] + '
'; } WA.toDOM("header-search-suggestions-result").innerHTML = text; showsuggestion(); } function search(event) { if (KL.device == "mobile") { // switch on/off barra if (!self.nodesearch) return; if (self.opened) { hidesearch(); } else { showsearch(); } return; } KL.Modules.stat.registerEvent('headsearch', 'head/search/go'); KL.Modules.stat.registerEventGA4('head/search/go', {'send_to': 'G-X0MHE23QYB'}); var numc = self.node.value.trim().length; var word = self.node.value.trim(); if (numc < 3) return; hidesuggestion(); // window.location = "/buscar?q="+word; if(KL.rootsite == 'kiwirec') window.location = "/search?q="+word; else window.location = "/buscar?q="+word; // KL.loader.loadPage("/buscar?q="+word, null, true); } this.select = select; function select(node) { KL.Modules.stat.registerEvent('headsearch', 'head/search/gosuggest'); KL.Modules.stat.registerEventGA4('head/search/gosuggest', {'send_to': 'G-X0MHE23QYB'}); var word = node.innerHTML; self.node.value = word; if (KL.device=="mobile") { // window.location = "/buscar?q="+word; if(KL.rootsite == 'kiwirec') window.location = "/search?q="+word; else window.location = "/buscar?q="+word; return; } search(); } function clean(event) { KL.Modules.stat.registerEvent('headsearch', 'head/search/clean'); KL.Modules.stat.registerEventGA4('head/search/clean', {'send_to': 'G-X0MHE23QYB'}); if (KL.device == "mobile") { if (self.node.value.trim().length == 0) { hidesearch(); return; } self.node.value = ""; hidesuggestion(); self.node.focus(); return; } self.node.value = ""; hidesuggestion(); } // MENU: this.switchoff = switchoff; function switchoff(event) { hidesuggestion(); hidesearch(); } function start() { self.nodesearch = WA.toDOM("header-search"); self.node = WA.toDOM("header-search-q"); self.nodeclose = WA.toDOM("header-search-close"); self.nodego = WA.toDOM("header-search-go"); self.nodesugg = WA.toDOM("header-search-suggestions"); if (self.node) { self.node.onkeyup=changeq; } if (self.nodeclose) { self.nodeclose.onclick=clean; } if (self.nodego) { self.nodego.onclick=search; } } KL.loader.addHookStart('search', start);}/* language, menu to change language */KL.Modules.language = new function(){ var self = this; this.activated = false; this.node1 = null; this.node2 = null; this.nodemenu = null; this.opened = false; // MENU: function switchmenu(event) { if (!self.opened) return switchon(event); setTimeout(switchoff, 100); return WA.browser.cancelEvent(event); } function switchon(event) { KL.Modules.menu.switchoff(); KL.Modules.search.switchoff(); KL.Modules.client.switchoff(); KL.Modules.stat.registerEvent('headlanguage', 'head/lang/open'); KL.Modules.stat.registerEventGA4('head/lang/open', {'send_to': 'G-X0MHE23QYB'}); self.opened = true; self.nodemenu.style.display = "block"; } this.switchoff = switchoff; function switchoff(event) { if (!self.activated) return; KL.Modules.stat.registerEvent('headlanguage', 'head/lang/close'); KL.Modules.stat.registerEventGA4('head/lang/close', {'send_to': 'G-X0MHE23QYB'}); self.opened = false; self.nodemenu.style.display = "none"; } function click(event) { if (KL.language == "es" && KL.pagedata.page.pathen) { KL.Modules.stat.registerEvent('headlanguage', 'head/lang/go-en'); KL.Modules.stat.registerEventGA4('head/lang/go-en', {'send_to': 'G-X0MHE23QYB'}); window.location = KL.pagedata.page.pathen; } if (KL.language == "en" && KL.pagedata.page.pathes) { window.location = KL.pagedata.page.pathes; KL.Modules.stat.registerEvent('headlanguage', 'head/lang/go-es'); KL.Modules.stat.registerEventGA4('head/lang/go-es', {'send_to': 'G-X0MHE23QYB'}); } return false; } function start() { self.node1 = WA.toDOM("header-language-button1"); self.node2 = WA.toDOM("header-language-button2"); self.nodemenu = WA.toDOM("header-language-menu"); if (!self.node1 || !self.node2 || !self.nodemenu) return; self.activated = true; self.node1.onclick=switchmenu; self.node1.ontouchstart=switchmenu; self.node2.onclick=switchmenu; self.node2.ontouchstart=switchmenu; if (KL.language == "es") { var n = WA.toDOM("header-language-espanol"); var m = WA.toDOM("header-language-ingles"); } else { var n = WA.toDOM("header-language-ingles"); var m = WA.toDOM("header-language-espanol"); } n.className = "icon-k7-paloma on"; m.parentNode.onclick = click; } KL.loader.addHookStart('language', start);}/* menu, main header menu */KL.Modules.menu = new function(){ var self = this; this.node = null; this.nodemenu = null; this.nodemenupro = null; this.nodemenunormal = null; this.opened = false; this.closecandidate = false; this.closetimer = null; this.loaded = false; var fannode = null; var fannum = 0; var fanyear = 0; var fanmonth = 0; var fanday = 0; var fanhour = 0; var fanperday = 0; var fanstart = null; function switchmenu(event) { if (!self.opened) return switchon(event); switchoff(); return WA.browser.cancelEvent(event); } function switchon(event) { self.closecandidate = false; if (self.closetimer) { clearTimeout(self.closetimer); self.closetimer = null; } if (self.opened) return; KL.Modules.language.switchoff(); KL.Modules.search.switchoff(); KL.Modules.client.switchoff(); KL.Modules.stat.registerEvent('headmenu', 'head/menu/open'); KL.Modules.stat.registerEventGA4('head/menu/open', {'send_to': 'G-X0MHE23QYB'}); self.opened = true; if (KL.device == "mobile") { self.nodemenu.style.top = "46px"; if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")) self.node.className = "icon-k7-menu anim onpro"; else self.node.className = "icon-k7-menu anim on"; } else { self.nodemenu.style.top = "60px"; if((KL.Modules.client.clientpro) && (KL.rootsite == "kiwi")) self.node.className = "icon-k7-menu anim onpro"; else self.node.className = "icon-k7-menu anim on"; } if (!self.loaded) load(); return WA.browser.cancelEvent(event); } function tryswitchoff() { // TODO(phil) poner un timer self.closecandidate = true; self.closetimer = setTimeout(switchoff, 200); } this.switchoff = switchoff; function switchoff(event) { self.closecandidate = false; if (self.closetimer) { clearTimeout(self.closetimer); self.closetimer = null; } if (!self.opened) return; KL.Modules.stat.registerEvent('headmenu', 'head/menu/close'); KL.Modules.stat.registerEventGA4('head/menu/close', {'send_to': 'G-X0MHE23QYB'}); self.opened = false; if (KL.device == "mobile") { self.nodemenu.style.top = "-500px"; self.node.className = "icon-k7-menu anim"; } else { self.nodemenu.style.top = "-320px"; self.node.className = "icon-k7-menu anim"; } return WA.browser.cancelEvent(event); } function fancount() { fannode = WA.toDOM("header-menu-fans"); if (!fannode) return; fannum = fannode.dataset.num; fanyear = fannode.dataset.year; fanmonth = fannode.dataset.month; fanday = fannode.dataset.day; fanhour = fannode.dataset.hour; fanperday = fannode.dataset.perday; fanstart = new Date(); fanstart.setUTCFullYear(fanyear); fanstart.setUTCMonth(parseInt(fanmonth, 10)-1); fanstart.setUTCDate(fanday); fanstart.setUTCHours(fanhour); fanstart.setUTCMinutes(0); fanstart.setUTCSeconds(0); calcFans(); } function calcFans() { var diffTime = Math.abs(new Date() - fanstart) / 1000 / 60 / 60 / 24; var newnum = Math.round(parseInt(fannum, 10) * 1.0 + diffTime * parseInt(fanperday, 10)); fannode.innerHTML = newnum.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); // act each 1 sec setTimeout(function() { calcFans(); }, 1000); } function load() { var request = WA.Managers.ajax.createRequest('/data/menu', 'POST', null, loaded, true); } function loaded(request) { self.nodemenu.innerHTML = request.responseText; /* para mostrar opciones kiwipro en el menu */ self.nodemenupro = WA.toDOM("menu-header-kiwipro"); self.nodemenunormal = WA.toDOM("menu-header-normal"); if ((KL.rootsite == "kiwi") || (KL.rootsite == "kiwirec")){ if (KL.Modules.client.clientpro) { // console.log('chef es pro'); self.nodemenupro.style.display = 'block'; self.nodemenunormal.style.display = 'none'; } else { // console.log('chef no es pro'); self.nodemenunormal.style.display = 'block'; self.nodemenupro.style.display = 'none'; } } self.loaded = true; KL.loader.callHooksPostLoad(); // start fans count fancount(); } function start() { self.node = WA.toDOM("header-button-menu"); self.nodemenu = WA.toDOM("header-menu"); if (self.node) { self.node.onclick=switchmenu; self.node.ontouchstart=switchmenu; self.node.onmouseover=switchon; self.node.onmouseout=tryswitchoff; } if (self.nodemenu) { self.nodemenu.onmouseover=switchon; self.nodemenu.onmouseout=tryswitchoff; } }// this.container.style.transform = "translate("+this.position+"px,0)";// KL.Modules.general.adddraglistener('slider_' + this.node.id, {node: node, listener:listener}); KL.loader.addHookStart('menu', start);}KL.Modules.wall = new function(){ var self = this; this.node = null; function load(wall){ var request = WA.Managers.ajax.createRequest('/data/' + wall, 'POST', null, loaded, true); } function loaded(request){ let auxnode = WA.toDOM("page_container"); if (!self.node) { self.node = WA.createDomNode('div', 'wall', 'wall'); } auxnode.appendChild(self.node); self.node.innerHTML = request.responseText; } this.removeWall = removeWall; function removeWall(){ if (!WA.toDOM('wall')) return; //console.log('remueve wall'); const wallElement = WA.toDOM('wall'); //console.log(wallElement); const parentWall = wallElement.parentElement; //console.log(parentWall); parentWall.removeChild(wallElement); } function start(){ if (KL.pagedata.page === null || typeof KL.pagedata.page.wall === undefined){ return; } if ( KL.pagedata.page.wall!==undefined ){ if (KL.pagedata.page.wall == 'register') { load('paywall-registro'); KL.Modules.stat.registerEvent('wall', 'wall/register/show' + KL.pagedata.page.wallgroup); KL.Modules.stat.registerEventGA4('wall/register/show' + KL.pagedata.page.wallgroup, {'send_to': 'G-X0MHE23QYB'});// ga('send', 'event', 'wall', 'wall/register', 'wall/reg/show7', null); } else if (KL.pagedata.page.wall == 'pay') { load('paywall-suscripcion'); KL.Modules.stat.registerEvent('wall', 'wall/subscription/show' + KL.pagedata.page.wallgroup); KL.Modules.stat.registerEventGA4('wall/subscription/show' + KL.pagedata.page.wallgroup, {'send_to': 'G-X0MHE23QYB'});// ga('send', 'event', 'wall', 'wall/subscription', 'wall/sub/show7', null); } } } KL.loader.addHookStart('wall', start); KL.loader.addHookLoad('wall', start); //KL.loader.addHookPostLoad('wall', start);}KL.device="pc";KL.language="en";KL.pagedata={"client":{"client":null,"device":"pc","geo":"US","gep":"US","ip":"150.136.58.94","locallanguage":"en","origin":"kiwi","server":"api7","skin":"","t":1732710525},"page":{"adprefix":"kiwi_","crosslink":[{"cl":6705,"cln":"Te Cuida ","cn":"Adriana sanchez ","i":"29133.jpg","ip":"/articuloimagen/30551/th5-320x320-29133.jpg","k":30551,"level":1,"m":1,"ms":"\nSpinach is that powerful food packed with nutrients like vitamins A, B1, B2, C, K, calcium, phosphorus, iron, folic acid, magnesium, zinc, fiber, and antioxidants; no wonder it’s Popeye's favorite ...","mt":"normal","n":"Benefits of Spinach and How to Prepare It ","pa":"/blog/cares-for-you/benefits-of-spinach-and-how-to-prepare-it","pr":"0.0%","s":"1","t":"articuloslider","vr":null,"x":"p|kiwi|crosslink||1|0|1"},{"cn":"Adriana sanchez ","date":"2021-04-12T13:03:13Z","fv":0,"i":"2948.jpg","k":2948,"level":2,"m":1,"ms":"Chicken recipes don't have to be boring, which is why in this list we present different options to take shredded chicken out of the broth and turn it into delicious dishes to pamper your family. Take ...","mt":"normal","n":"6 easy shredded chicken recipes ","pa":"/tips/kitchen/dish-tips/6-easy-shredded-chicken-recipes","pr":"97.5%","s":1,"t":"tipslider","v":"","vh":"100.00%","vp":"","vr":"4.9","x":"p|kiwi|crosslink||1|0|2"},{"c":2112,"cn":" ","d":"If you have leftover food from previous days and don't know what to do with it, remember that at kiwilimón we have the best ideas for you. Don't waste your stews and prepare this delicious Mexican-style zucchini soup, these crispy picadillo and Oaxaca cheese turnovers, or these chicken patties with nopales.","i":"2112.jpg","k":2112,"level":1,"m":2,"mt":"normal","n":"How to make the most of leftover stews?","pa":"/compilation/how-to-make-the-most-of-leftover-stews","rt":"","s":1,"sh":1,"t":"compilacionrecetaslider","v":"344192252564662","vh":"100.00%","vp":"B1xDbuGM","x":"p|kiwi|crosslink||1|0|3"},{"cn":"Gabriela Morales","date":"2015-11-06T12:39:22Z","fv":0,"i":"1084.jpg","k":1084,"level":2,"m":2,"ms":"Decorate the cake pop orbs; here we teach you how to transform your cake pops from simple to cute Christmas orbs. It's a lot of fun to do, and you can even prepare them with your kids. ","mt":"normal","n":"How to Make Cake Pop Orbs ","pa":"/tips/kitchen/bakery/how-to-make-cake-pop-orbs","pr":"73.3%","s":1,"t":"tipslider","v":"4855982611001","vh":"56.25%","vp":"B1xDbuGM","vr":"3.7","x":"p|kiwi|crosslink||1|0|4"},{"cl":6195,"cln":"De Kiwilimón para ti","cn":"Shadia Asencio","i":"29184.jpg","ip":"/articuloimagen/30574/th5-320x320-29184.jpg","k":30574,"level":1,"m":1,"ms":"\nChildren's Day is a time to honor those whose fresh timeline is framed by learning and the right to feel cared for and protected. But what does it mean for a child to feel safe? It's not about emptyi...","mt":"normal","n":"How to make children eat healthy? ","pa":"/blog/tips-and-advice/from-kiwilimon-for-you/how-to-make-children-eat-healthy","pr":"0.0%","s":"1","t":"articuloslider","vr":null,"x":"p|kiwi|crosslink||1|0|5"},{"cn":"Berries Paradise","cooktime":"","difficulty":"1","fv":18,"i":"52111.jpg","k":39717,"level":1,"m":1,"mt":"normal","n":"Blueberry Lemon Pie ","pa":"/recipe/desserts/pie-recipes/lemon-pie/blueberry-lemon-pie","pr":"90.0%","preptime":"130","pub":"06 Oct 22 11:35 +0000","s":1,"t":"recetaslider","totaltime":"130","v":"","vh":"100.00%","vp":"","vr":"4.5","x":"p|kiwi|crosslink||1|0|6"},{"cn":"Mayte Rueda","cooktime":"730","difficulty":"1","fv":29,"i":"52114.jpg","k":39718,"level":2,"m":2,"mt":"normal","n":"Papaya Sweet","pa":"/recipe/desserts/fruit-dessert-recipes/papaya-sweet","pr":"100.0%","preptime":"4320","pub":"27 Sep 22 13:43 +0000","s":1,"t":"recetaslider","totaltime":"5050","v":"379501939898183","vh":"100.00%","vp":"B1xDbuGM","vr":"5.0","x":"p|kiwi|crosslink||1|0|7"},{"c":2490,"cn":" ","d":"With these 5 Spanish food recipes, you don't need to travel to taste the flavors of Iberian cuisine, as preparing any of its iconic dishes at home will be no problem if you follow our step-by-step guide. ","i":"2490.jpg","k":2490,"level":1,"m":2,"mt":"normal","n":"5 Spanish food recipes ","pa":"/compilation/5-spanish-food-recipes","rt":"","s":1,"sh":1,"t":"compilacionrecetaslider","v":"750465011342163","vh":"100.00%","vp":"B1xDbuGM","x":"p|kiwi|crosslink||1|0|8"},{"cn":"Cristian L. Macias","date":"2015-07-08T13:22:10Z","fv":0,"i":"985.jpg","k":985,"level":2,"m":2,"ms":"Celebrate any special occasion with your friends using these edible vodka shots. They are a very original way to welcome and surprise them at home. You’ll be the best host! ","mt":"normal","n":"How to Make Edible Shots with Vodka (Strawberry, Tomato, and Cucumber) ","pa":"/tips/kitchen/dish-tips/how-to-make-edible-shots-with-vodka-strawberry-tomato-and-cucumber","pr":"100.0%","s":1,"t":"tipslider","v":"4856079150001","vh":"56.25%","vp":"B1xDbuGM","vr":"5.0","x":"p|kiwi|crosslink||1|0|9"}],"device":"pc","keywords":["blog","health","5-natural-ways-to-keep-your-sugar-levels-low"],"language":"en","pathen":"https://us.kiwilimon.com","pathes":"https://www.kiwilimon.com","status":"OK","type":"sin-video","wallgroup":0}};
CONNECT
${'client>n'}
`;KL.Modules.qualification = new function(){ var self = this; var ready = false; var node = null; var nodecontainer = null; var nodenext = null var key = 0; var type = 0; var quantity = 10; var page = 1; var more = true; var nodestar = null; var nodecomment = null; var nodebutton = null; var numestrellas = 0; function cleandata() { type = node.dataset.type; key = node.dataset.key; quantity = parseInt(node.dataset.quantity, 10); page = parseInt(node.dataset.page, 10); more = node.dataset.more=="1"; nodecontainer.innerHTML = ""; } function clickmore(event) { if (!more) return; page++; calldata(); } function calldata() { var r = WA.Managers.ajax.createRequest(KL.graphdomains + '/v6/qualification/list', 'POST', null, getdata, false); r.addParameter('type', type ); r.addParameter('key', key ); r.addParameter('device', KL.device ); r.addParameter('language', KL.language ); r.addParameter('quantity', quantity ); r.addParameter('page', page ); r.send(); } function getdata(request) { code = JSON.parse(request.responseText); // inject into template template = WA.templater`${['loop', 'payload','calificador']}`; text = template(code); ndiv = WA.createDomNode('div', null, null); ndiv.style = "clear: both;"; ndiv.innerHTML = text; nodecontainer.appendChild(ndiv); // set next, data into more = code.more if (nodenext) { nodenext.style.display = more?"block":"none"; } // analyze img and ads and an KL.loader.callHooksPostLoad(); } function sendqualification() { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('qualification', 'qualification/gologin'); KL.loader.loadPage("/login?p="+document.location.pathname); return; } if (nodecomment.value == "" || numestrellas == 0) { KL.Modules.modal.notifica(WA.i18n.getMessage("necesitascalificar")); return; } var r = WA.Managers.ajax.createRequest(KL.graphdomains + '/v6/qualification/insert', 'POST', null, getinsertresponse, false); r.addParameter('type', type ); r.addParameter('key', key ); r.addParameter('device', KL.device ); r.addParameter('language', KL.language ); r.addParameter('qualification', numestrellas ); r.addParameter('comment', nodecomment.value ); r.send(); } function getinsertresponse(request) { var code = JSON.parse(request.response); if (code.status == 'ok') { //ga('send', 'event', 'usuario', 'usu/calificar', 'usu/cal/calificar', 0); KL.Modules.stat.registerEventGA4('usu/cal/calificar', {'send_to': KL.analyticsTag}); switch (code.type) { case 2: KL.Modules.modal.notifica(WA.i18n.getMessage("graciascalificartip")); break; case 7: KL.Modules.modal.notifica(WA.i18n.getMessage("graciascalificararticulo")); break; case 8: KL.Modules.modal.notifica(WA.i18n.getMessage("graciascalificarquiz")); break; default: KL.Modules.modal.notifica(WA.i18n.getMessage("graciasporcalificar")); break; } cleandata(); calldata(); WA.toDOM('social-qualification-button').value = WA.i18n.getMessage("txtmodificar"); } else { if (code.code == 1) { //ga('send', 'event', 'usuario', 'usu/calificar', 'usu/cal/logincalificar', 0); KL.Modules.stat.registerEventGA4('usu/cal/logincalificar', {'send_to': KL.analyticsTag}); // no conectado, pls connect KL.Modules.chef.abrir(WA.i18n.getMessage("ingresa"));// } else { //ga('send', 'event', 'usuario', 'usu/calificar', 'usu/cal/errorcalificar', 0); KL.Modules.stat.registerEventGA4('usu/cal/errorcalificar', {'send_to': KL.analyticsTag}); KL.Modules.modal.alerta(code.mensaje); // } } } // click estrellas this.clickestrellas = clickestrellas; function clickestrellas(e) { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('qualification', 'qualification/gologin'); KL.loader.loadPage("/login?p="+document.location.pathname); return; } var num = 0; var posx = WA.browser.getCursorOffsetX(e); if(posx > 90) num = Math.ceil(posx / 33); else num = Math.floor(posx / 33) + 1; if (num > 5) num = 5; escondeestrellas(); WA.toDOM('social-qualification-estrellas-' + num).style.display = 'block'; numestrellas = num; } function escondeestrellas() { for (var i = 0; i <= 5; i++) WA.toDOM('social-qualification-estrellas-' + i).style.display = 'none'; } function agregaAvatar() { var nodeavatar = WA.toDOM('chefAvatarCalifica'); if(nodeavatar){ if(KL.Modules.client.clientlogged) //console.log("clientcode : ", KL.Modules.client) //nodeavatar.src = KL.Modules.client.clientcode.client.i; nodeavatar.src = 'https://cdn.kiwilimon.com/kiwi5pc/static/icono-usuario.png'; else nodeavatar.src = 'https://cdn.kiwilimon.com/kiwi5pc/static/icono-usuario.png'; } } function esperaChef() { if(KL.Modules.client.clientready) { agregaAvatar(); return; } else { setTimeout(function () { esperaChef(); }, 300); } } function load() { node = WA.toDOM('social-qualification'); if (!node) return; nodecontainer = WA.toDOM('social-qualification-container'); page = 1; nodenext = WA.toDOM('social-qualification-vermas'); // enlaza ver mas if (nodenext) nodenext.onclick=clickmore; type = node.dataset.type; key = node.dataset.key; quantity = parseInt(node.dataset.quantity, 10); page = parseInt(node.dataset.page, 10); more = node.dataset.more=="1"; WA.toDOM('social-qualification-estrellas-0').onclick = clickestrellas; WA.toDOM('social-qualification-estrellas-1').onclick = clickestrellas; WA.toDOM('social-qualification-estrellas-2').onclick = clickestrellas; WA.toDOM('social-qualification-estrellas-3').onclick = clickestrellas; WA.toDOM('social-qualification-estrellas-4').onclick = clickestrellas; WA.toDOM('social-qualification-estrellas-5').onclick = clickestrellas; numestrellas = 0; let nodequalification = WA.toDOM('socal-qualification-areacalificacion'); if (nodequalification.dataset.comment !="") { numestrellas = parseInt(nodequalification.dataset.qualification); WA.toDOM('social-qualification-comment').value = nodequalification.dataset.comment; escondeestrellas(); WA.toDOM('social-qualification-estrellas-' + numestrellas).style.display = 'block'; WA.toDOM('social-qualification-button').value = WA.i18n.getMessage("txtmodificar"); } // enlaza textarea, no se si aquí sea necesario hacer un check a una función ya que se guarda el comentario en sí nodecomment = WA.toDOM('social-qualification-comment'); // enlaza boton nodebutton = WA.toDOM('social-qualification-button'); nodebutton.onclick = sendqualification; // aquí enlaza a la función de service=insert en /v6/qualification esperaChef(); self.ready = true; } function unload() { node = null; nodecontainer = null; nodenext = null } KL.loader.addHookLoad('qualification', load); KL.loader.addHookUnload('qualification', unload);}//var translation = { "necesitascalificar": "You need to put the rating and a comment to qualify.", "graciasporcalificar": "Thank you for rating this recipe.", "graciascalificartip": "Thank you for rating this tip.", "graciascalificararticulo": "Thank you for rating this article.", "graciascalificarquiz": "Thank you for rating this quiz.", "txtmodificar": "Modify",};WA.i18n.loadMessages(translation);KL.Modules.tools = new function(){ var self = this; var tools = {}; var counter = 1; function load() { var toolsNodes = document.getElementsByClassName('tools'); if (toolsNodes) { for (var i = 0; i < toolsNodes.length; i++) { id = toolsNodes[i].id; if (!id) { toolsNodes[i].id = id = "tools" + counter++; } // ONLY if not scanned yet tools[id] = new KL.Modules.onetoolset(toolsNodes[i]); } } } function unload() { for (var i = 0; i < tools.length; i++) tools[i].destroy(); tools = {}; } KL.loader.addHookLoad('tools', load); KL.loader.addHookPostLoad('tools', load); KL.loader.addHookUnload('tools', unload);}KL.Modules.onetoolset = function(node){ var self = this; var containernode = node; var toolsshadow = null; var toolsnode = null; var type = ''; var key = ''; var buttons = []; var opened = false; function open() { toolsshadow.style.display = 'block'; pos = 0; for (var i = 0, l = buttons.length; i < l; i++) { buttons[i].style.top = pos + 'px'; pos += 40; } opened = true; } function close() { toolsshadow.style.display = 'none'; for (var i = 0, l = buttons.length; i < l; i++) { buttons[i].style.top = '0px'; } opened = false; } function clickclose(event) { close(); WA.browser.cancelEvent(event); } function clickfav(event) { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); // console.log(document.location.pathname); KL.loader.loadPage("/login?p="+document.location.pathname+"&o=/fav/"+type+"/"+key); return; } if (!opened) { open(); WA.browser.cancelEvent(event); return; } WA.Managers.ajax.createPromiseRequest({ url: KL.graphdomains + '/v6/collection', method: 'post', send: false}) .then(function(request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('service', 'favorite'); request.addParameter('type', type); request.addParameter('key', key); return request.send(); }) .then(function(response){ var code = JSON.parse(response); if (code.status == 'ok') { KL.Modules.stat.registerEvent('tools', 'tools/addfav'); KL.Modules.stat.registerEventGA4('tools/addfav', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.notifica(KL.i18n.tools_favoritos_ok1+' '+KL.i18n.tools_favoritos_ok2+''); } else { KL.Modules.stat.registerEvent('tools', 'tools/errorfav'); KL.Modules.stat.registerEventGA4('tools/errorfav', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.alerta(code.message); } }) .catch(function(code, err) { if (code == 401) // not connected { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/fav/"+type+"/"+key); return; } // print error modal, send to server error KL.Modules.modal.alerta(code, err); console.log("Error sending fav:", code, err); }); return WA.browser.cancelEvent(event); } function clickcollections(event) { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/col/"+type+"/"+key); return; } WA.Managers.ajax.createPromiseRequest({ url: KL.graphdomains + '/v6/collection', method: 'post', send: false}) .then(function(request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('service', 'list'); return request.send(); }) .then(function(response){ var code = JSON.parse(response); KL.Modules.stat.registerEvent('tools', 'tools/opencol'); KL.Modules.stat.registerEventGA4('tools/opencol', {'send_to': 'G-X0MHE23QYB'}); data = WA.templates.tools_collectionselect({items:code.payload}); KL.Modules.modal.buildpopup(data); // link clicks for (var i = 0, l = code.payload.length; i < l; i++) { var n = WA.toDOM("tools-collection-" + code.payload[i].clave); if (!n) continue; n.dataset.id = code.payload[i].clave; n.onclick = seleccionacoleccion; } var n = WA.toDOM("tools-collection-create"); if (n) { n.onclick = creacoleccion; } KL.Modules.modal.showpopup({closeable:true}); }) .catch(function(code, err) { if (code == 401) // not connected { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/createcol"); return; } // print error modal, send to server error KL.Modules.modal.alerta(code, err); console.log("Error sending fav:", code, err); }); return WA.browser.cancelEvent(event); } function seleccionacoleccion(event) { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/addcol/"+type+"/"+key); return; } var cid = this.dataset.id; WA.Managers.ajax.createPromiseRequest({ url: KL.graphdomains + '/v6/collection', method: 'post', send: false}) .then(function(request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('service', 'insert'); request.addParameter('collection', cid); request.addParameter('type', type); request.addParameter('key', key); return request.send(); }) .then(function(response){ KL.Modules.modal.hidepopup(); var code = JSON.parse(response); if (code.status == 'ok') { KL.Modules.stat.registerEvent('tools', 'tools/addcol'); KL.Modules.stat.registerEventGA4('tools/addcol', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.notifica(KL.i18n.tools_collections_ok1+' '+KL.i18n.tools_collections_ok2+''); } else { KL.Modules.stat.registerEvent('tools', 'tools/errorcol'); KL.Modules.stat.registerEventGA4('tools/errorcol', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.alerta(code.message); } }) .catch(function(code, err) { if (code == 401) // not connected { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/col/"+cid+"/"+type+"/"+key); return; } // print error modal, send to server error KL.Modules.modal.alerta(code, err); console.log("Error sending col:", code, err); }); return WA.browser.cancelEvent(event); } function creacoleccion(event) { var v = WA.toDOM("tools-collection-name").value; if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/createcol/"+KL.fixedEncodeURIComponent(v)+"/"+type+"/"+key); return; } WA.Managers.ajax.createPromiseRequest({ url: KL.graphdomains + '/v6/collection', method: 'post', send: false}) .then(function(request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('service', 'create'); request.addParameter('name', v); request.addParameter('type', type); request.addParameter('key', key); return request.send(); }) .then(function(response) { KL.Modules.modal.hidepopup(); var code = JSON.parse(response); if (code.status == 'ok') { KL.Modules.stat.registerEvent('tools', 'tools/createaddcol'); KL.Modules.stat.registerEventGA4('tools/createaddcol', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.notifica(KL.i18n.tools_collections_ok1+' '+KL.i18n.tools_collections_ok2+''); } else { KL.Modules.stat.registerEvent('tools', 'tools/errorcol'); KL.Modules.stat.registerEventGA4('tools/errorcol', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.alerta(code.message); } }) .catch(function(code, err) { if (code == 401) // not connected { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/col/"+KL.fixedEncodeURIComponent(v)+"/"+type+"/"+key); return; } // print error modal, send to server error KL.Modules.modal.alerta(code, err); console.log("Error sending col:", code, err); }); return WA.browser.cancelEvent(event); } function clickshoppinglist(event) { if (!KL.Modules.client.clientlogged) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/shoppinglist/"+key); return; } if (type != 'r') { KL.Modules.modal.alerta("Error, el objeto no es una receta para agregar a la lista del súper."); return; } WA.Managers.ajax.createPromiseRequest({ url: KL.graphdomains + '/v6/shoppinglist', method: 'post', send: false}) .then(function(request) { request.addParameter('language', KL.language); request.addParameter('device', KL.device); request.addParameter('service', 'addrecipe'); request.addParameter('key', key); return request.send(); }) .then(function(response){ var code = JSON.parse(response); if (code.status == 'ok') { KL.Modules.stat.registerEvent('tools', 'tools/addshoppinglist'); KL.Modules.stat.registerEventGA4('tools/addshoppinglist', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.notifica(KL.i18n.tools_listasuper_ok1+' '+KL.i18n.tools_listasuper_ok2+''); } else { KL.Modules.stat.registerEvent('tools', 'tools/errorshoppinglist'); KL.Modules.stat.registerEventGA4('tools/errorshoppinglist', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.alerta(code.message); } }) .catch(function(code, err) { if (code == 401) // not connected { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/shoppinglist/"+type+"/"+key); return; } // print error modal, send to server error KL.Modules.modal.alerta(code, err); console.log("Error sending shoppinglist:", code, err); }); return WA.browser.cancelEvent(event); } function getlistasuper(request) { // close tools // put heart filled var code = JSON.parse(request.responseText); if (code.estatus == 'OK') { KL.Modules.modal.hidepopup(); KL.Modules.stat.registerEvent('tools', 'tools/addsup'); KL.Modules.stat.registerEventGA4('tools/addsup', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.notifica(KL.i18n.tools_listasuper_ok1+' '+KL.i18n.tools_listasuper_ok2+''); } else { if (code.code == 1) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); KL.Modules.stat.registerEventGA4('tools/gologin', {'send_to': 'G-X0MHE23QYB'}); KL.loader.loadPage("/login/sup/"+type+"/"+key); } else { KL.Modules.stat.registerEvent('tools', 'tools/errorsup'); KL.Modules.stat.registerEventGA4('tools/errorsup', {'send_to': 'G-X0MHE23QYB'}); KL.Modules.modal.alerta(code.mensaje); } } } function clickmenuplanner(event) { if (!KL.Modules.client.clientpro) { KL.Modules.stat.registerEvent('tools', 'tools/gologin'); // KL.loader.loadPage("/pro/"+type+"/"+key); KL.loader.loadPage("/pro"); return; } // call PRO MENU PLANNER WA.browser.cancelEvent(event); } this.destroy = destroy; function destroy() { containernode = null; toolsshadow = null; toolsnode = null; buttons = null; self = null; } // Note: only 1 gallery per page if (containernode.scanned) return; containernode.scanned = true; toolsshadow = WA.createDomNode('div', null, 'tools-shadow'); toolsshadow.style.display = 'none'; containernode.appendChild(toolsshadow); toolsnode = WA.createDomNode('div', null, 'tools-container'); containernode.appendChild(toolsnode); // fill with the buttons template type = containernode.dataset.type; key = containernode.dataset.key; code = {t:type,k:key} // create buttons // close: always here var closebutton = WA.createDomNode('div', null, 'anim tools-close icon-k7-tools-close'); closebutton.setAttribute('alt', WA.i18n.getMessage('txt-tools-cerrar')); closebutton.setAttribute('title', WA.i18n.getMessage('txt-tools-cerrar')); closebutton.onclick = clickclose; toolsnode.appendChild(closebutton); buttons.push(closebutton); if (type == 'r') { // menu planner: recipe only /* var mpbutton = WA.createDomNode('div', null, 'anim tools-menuplanner icon-k7-tools-menuplanner'); mpbutton.setAttribute('alt', WA.i18n.getMessage('txt-tools-planeadormenu')); mpbutton.setAttribute('title', WA.i18n.getMessage('txt-tools-planeadormenu')); mpbutton.onclick = clickmenuplanner; toolsnode.appendChild(mpbutton); buttons.push(mpbutton); */ // Shopping list / only recipe var slbutton = WA.createDomNode('div', null, 'anim tools-shoppinglist icon-k7-tools-shoppinglist'); slbutton.setAttribute('alt', WA.i18n.getMessage('txt-tools-listasuper')); slbutton.setAttribute('title', WA.i18n.getMessage('txt-tools-listasuper')); slbutton.onclick = clickshoppinglist; toolsnode.appendChild(slbutton); buttons.push(slbutton); } var clbutton = WA.createDomNode('div', null, 'anim tools-collections icon-k7-tools-collections'); clbutton.setAttribute('alt', WA.i18n.getMessage('txt-tools-colecciones')); clbutton.setAttribute('title', WA.i18n.getMessage('txt-tools-colecciones')); clbutton.onclick = clickcollections; toolsnode.appendChild(clbutton); buttons.push(clbutton); var fvbutton = WA.createDomNode('div', null, 'anim tools-favorites icon-k7-tools-favorites-empty'); fvbutton.setAttribute('alt', WA.i18n.getMessage('txt-tools-favorito')); fvbutton.setAttribute('title', WA.i18n.getMessage('txt-tools-favorito')); fvbutton.onclick = clickfav; toolsnode.appendChild(fvbutton); buttons.push(fvbutton);}// toolsvar translation = { "txt-tools-favorito": "Add to my Favorites", "txt-tools-colecciones": "Add to my Collections", "txt-tools-listasuper": "Add to my Grocery List", "txt-tools-planeadormenu": "Add to Menu Planner", "txt-tools-cerrar": "Cerrar",};WA.i18n.loadMessages(translation);/* Funciones para manejar el feed *//* Escrito por: Phil Fecha: Julio 2016 Control de cambios: 26/02/2020: Wilmer, Ajuste a feed search/v6 10/07/2016: Phil, Creación*/KL.Modules.feed = new function(){ var self = this; function load() { } this.unload = unload; function unload() { } KL.loader.addHookLoad('feed', load); KL.loader.addHookPostLoad('feed', load); KL.loader.addHookUnload('feed', unload);}KL.Modules.feed.container = function(id, template, datos, q){ var self = this;}KL.Modules.slider = new function(){ var self = this; var sliders = {}; var counter = 1; function load() { var sliderNodes = document.getElementsByClassName('slider'); if (sliderNodes) { for (var i = 0; i < sliderNodes.length; i++) { id = sliderNodes[i].id; if (!id) { sliderNodes[i].id = id = "slider" + counter++; } sliders[id] = new KL.Modules.oneslider(sliderNodes[i]); } } } function unload() { for (var i = 0; i < sliders.length; i++) sliders[i].destroy(); sliders = {}; } KL.loader.addHookLoad('slider', load); //KL.loader.addHookPostLoad('slider', load); KL.loader.addHookUnload('slider', unload);}KL.Modules.oneslider = function(node){ var self = this; var slidernode = node; var containernode = null; var position = 0; //var percentmove = 0.9; var percentmove = 1; function clickprevious(event) { var width = WA.browser.getNodeWidth(slidernode); position += Math.round(width*percentmove); if (position > 0) position = 0; containernode.style.left = position + 'px'; //KL.loader.callHooksPostLoad(); KL.Modules.stat.registerEvent('slider', 'slider/previous'); KL.Modules.stat.registerEventGA4('slider/previous', {'send_to': 'G-X0MHE23QYB'}); // TODO(phil) // considerar enviar los IDs a analizar por la animacion // Se envía a analizar las imágenes DAG 11/08/2022 //KL.Modules.images.analyze(); } function clicknext(event) { var width = WA.browser.getNodeWidth(slidernode); position -= Math.round(width*percentmove); var size = getsize(); var min = -size+width; if (min > 0) min = 0; if (position < min) position = min; containernode.style.left = position + 'px'; KL.Modules.stat.registerEvent('slider', 'slider/next'); KL.Modules.stat.registerEventGA4('slider/next', {'send_to': 'G-X0MHE23QYB'}); setTimeout(() => { KL.loader.callHooksPostLoad(); }, 700); //600 // TODO(phil) // considerar enviar los IDs a analizar por la animacion // Se envía a analizar las imágenes DAG 11/08/2022 //KL.Modules.images.analyze(); } function getsize() { var width = 0; for (var i=0, l=containernode.childNodes.length; i${['call', 'breadcrumbs','article']}
${['call', 'article','article']}
${['cond', 'userkiwiproart>client>p','articuloproadtop']}
Most read
${['call', 'articleslist','articulosmasleidos']}
${['cond', 'userkiwiproart>client>p','articuloprohalfbanner']}
Advertisement
Home Nutrition Kitchen Tips Diets Vegan Food Tips and Advice Baking Beverages
Newest
Recommended
Most popular
${['loop', 'payload','feed_payload']}
See more
Advertisement
${['cond', 'status','estatusarticulopro']}
${['cond', 'status','estatuscalificaartpro']}`;WA.templates['social-share'] = WA.templater``;WA.templates['ssh-desc.none'] = WA.templater`${'metadescription'}`;WA.templates['quote'] = WA.templater` `;WA.templates['quote.none'] = WA.templater` `;WA.templates['ssh-path'] = WA.templater`${'path'}`;WA.templates['ssh-path.none'] = WA.templater`${'p'}`;WA.templates['ssh-name'] = WA.templater`${'name'}`;WA.templates['ssh-name.none'] = WA.templater`${'h1title'}`;WA.templates['ssh-desc'] = WA.templater`${'description'}`;WA.templates['estatuscalificaartpro.10'] = WA.templater` ${['cond', 'userkiwiproart>client>p','userprocalificaart']} `;WA.templates['userprocalificaart'] = WA.templater` ${['call', 'social-qualification','qualifications']} `;WA.templates['userprocalificaart.none'] = WA.templater``;WA.templates['estatuscalificaartpro.none'] = WA.templater``;WA.templates['src-imgarticle.none'] = WA.templater``;WA.templates['estatusarticulopro.10'] = WA.templater`${['cond', 'image','src-imgarticle']}
${'classificationname'}
${'metadescription'}
By ${'clientdata>firstname'} ${'clientdata>lastname'} - ${'modificationdate'}
${'description'}
`;WA.templates['userprodetalleart.none'] = WA.templater` ${['cond', 'userkiwiproart>client','userkiwiloggeado']} `;WA.templates['userkiwiloggeado'] = WA.templater`To keep reading this article, much more content and EXCLUSIVE experiences Subscribe here
`;WA.templates['userkiwiloggeado.none'] = WA.templater`To keep reading this article, much more content and EXCLUSIVE experiences Log in and get a KiwiPro subscription
${['cond', 'image','src-imgarticle']}
${'classificationname'}
By ${'clientdata>firstname'} ${'clientdata>lastname'} - ${'modificationdate'}
${'description'}
`;WA.templates['estatuscalificaartpro'] = WA.templater` ${['cond', 'siteorigin','article-origen-calificacion']} `;WA.templates['article-origen-calificacion.crafto'] = WA.templater``;WA.templates['article-origen-calificacion'] = WA.templater` ${['call', 'social-qualification','qualifications']} `;WA.templates['src-imgarticle'] = WA.templater``;WA.templates['social-qualification'] = WA.templater`Rate this recipe Rate this tip Rate this article Rate this quiz
${['cond', 'avatar','avatarimgchef']}
Ratings (${'total'})
${['loop', 'payload','calificador']}
${['cond', 'more','more']}
${'client>name'} ${'client>lastname'}
${'datestr'}
${'comment'}
Be the first to rate
`;WA.templates['more'] = WA.templater`See more
${['loop', 'payload','feed_payload']}
`;WA.templates['feed_clasificaciontip'] = WA.templater`Product
`;WA.templates['tipoconfoto.r'] = WA.templater`Recipe
`;WA.templates['tipoconfoto.t'] = WA.templater`Tip
`;WA.templates['tipoconfoto.a'] = WA.templater`Features
`;WA.templates['feedfichaeventoconfoto'] = WA.templater` ${['cond', 's','estatusficha']} `;WA.templates['estatusficha'] = WA.templater`${'fecha'}
${'titulo'}
${['cond', 'type','tipoconfoto']}
${['cond', 's','estatusfichapro']}
${'d'}
${'n'}
${'n'}
${'fecha'}
${'titulo'}
${'fecha'}
${'titulo'}
${'mensaje'}
${'fecha'}
${'titulo'}
Select a collection
${['loop', 'items','tools_collectionitem']}
or
${'nombre'}
`;WA.templates['tools_collectionitem.none'] = WA.templater`There are no collections yet`;WA.templates['feed_receta'] = WA.templater`${'n'}
${'n'}
`;WA.templates['imgcoleccion'] = WA.templater`/coleccionventa/${'k'}/${'i'}`;WA.templates['imgcoleccion.none'] = WA.templater``;WA.templates['portadacoleccion.none'] = WA.templater`
Sale Collection
${'n'}
${'n'}
`;WA.templates['src-tip'] = WA.templater`/ss_secreto/${'k'}/${'i'}`;WA.templates['src-tip.none'] = WA.templater`/img/static/logo-o-320x320.png`;WA.templates['feed_clientactivity'] = WA.templater`${['cond', 'tipoevento','feedfichaeventoclientactivity']}`;WA.templates['numeroseguidores'] = WA.templater`${'qs'} Followers
`;WA.templates['imgusuario.none'] = WA.templater``;WA.templates['imgusuariocrafto'] = WA.templater``;WA.templates['imgusuariocrafto.none'] = WA.templater``;WA.templates['numerotips'] = WA.templater`${'qt'} Tips
`;WA.templates['numerorecetas.none'] = WA.templater``;WA.templates['numerocolecciones.none'] = WA.templater``;WA.templates['feedfichaeventoclientactivity'] = WA.templater` ${['cond', 'siteorigin','clientorigensigue']} `;WA.templates['clientorigensigue'] = WA.templater` ${['cond', 's','estatusperfilchef']} `;WA.templates['estatusperfilchef.none'] = WA.templater`${'fecha'}
${'titulo'}
${'fecha'}
${'titulo'}
${['cond', 'siteorigen','origenimgusuario']}
${'fn'} ${'ln'}
${['cond', 'qr','numerorecetas']} ${['cond', 'qt','numerotips']} ${['cond', 'qc','numerocolecciones']} ${['cond', 'qs','numeroseguidores']} ${['cond', 'qg','numerosiguiendo']}
${'fecha'}
${'titulo'}
${['cond', 'siteorigen','origenimgusuario']}
${'fn'} ${'ln'}
${['cond', 'qr','numerorecetas']} ${['cond', 'qt','numerotips']} ${['cond', 'qc','numerocolecciones']} ${['cond', 'qs','numeroseguidores']} ${['cond', 'qg','numerosiguiendo']}
${'fecha'}
${'titulo'}
${'qc'} Collections
`;WA.templates['imgcolorfondo.none'] = WA.templater`#ffffff`;WA.templates['numerorecetas'] = WA.templater`${'qr'} Recipes
`;WA.templates['numerosiguiendo'] = WA.templater`${'qg'} Following
`;WA.templates['numerosiguiendo.none'] = WA.templater``;WA.templates['imgusuario'] = WA.templater``;WA.templates['imgcolorfondo'] = WA.templater`${'co'}`;WA.templates['feed_payload'] = WA.templater`${['call', '','t','feed_']}`;WA.templates['feed_articulo'] = WA.templater`5.0
${'n'}
${'ms'}
${'n'}
${'ms'}
${'vr'}
comidas
${'n'}
Sign up for the newsletter
and receive the best Kiwilimón recipes.
Subscribe
Compilation
`;WA.templates['clasifarticuloimg2.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['clasifarticuloimg2'] = WA.templater`/articuloimagen/${'ci2'}/${'i2'}`;WA.templates['feedfichaeventofotoclasificaciones'] = WA.templater`${'fecha'}
${'titulo'}
${'d'}
`;WA.templates['tipofichaactividad.ft'] = WA.templater`
`;WA.templates['tipofichaactividad.ct'] = WA.templater`
`;WA.templates['tipofichaactividad'] = WA.templater`
`;WA.templates['tipofotoclasificaciones.ca'] = WA.templater`
Rating
`;WA.templates['clasifarticuloimg4.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['tipofotoclasificaciones.ft'] = WA.templater`Family
`;WA.templates['clasifimg2.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['clasiftipimg1.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['clasifimg3.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['tipofotoclasificaciones.ct'] = WA.templater`Rating
`;WA.templates['tipofotoclasificaciones.cr'] = WA.templater`Rating
`;WA.templates['clasifimg1'] = WA.templater`/recetaimagen/${'ci1'}/${'i1'}`;WA.templates['clasifimg4.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['clasifimg4'] = WA.templater`/recetaimagen/${'ci4'}/${'i4'}`;WA.templates['tipofotoclasificaciones.fr'] = WA.templater`Family
`;WA.templates['clasiftipimg2.none'] = WA.templater`/img/static/logo_o-400x300.png`;WA.templates['feed_tipslider'] = WA.templater`${'n'}
${'n'}
`;WA.templates['feed_ad'] = WA.templater``;WA.templates['feed_chef'] = WA.templater`${['cond', 'qr','numrecetas']} ${['cond', 'qt','numtips']} ${['cond', 'qc','numcolecciones']}
Followers: ${'qs'}
Following: ${'qg'}
Collections: ${'qc'}
`;WA.templates['bgpersonalizado.none'] = WA.templater``;WA.templates['btnseguirchef.false'] = WA.templater` ${['cond', 'f','paysigochefsesionprochef']} `;WA.templates['avatarchef'] = WA.templater``;WA.templates['bgclassdefault'] = WA.templater``;WA.templates['bgpersonalizado'] = WA.templater`background-image: url('${'bg'}');`;WA.templates['bgclassdefault.none'] = WA.templater`imgfondochefdefault`;WA.templates['numrecetas'] = WA.templater`Recipes: ${'qr'}
`;WA.templates['numtips.none'] = WA.templater``;WA.templates['paysigochefsesionprochef.none'] = WA.templater` `;WA.templates['cheffondocolor.none'] = WA.templater`#ffffff`;WA.templates['btnseguirchef.true'] = WA.templater` ${['cond', 'f','paysigochefsesionprochef']} `;WA.templates['avatarchef.none'] = WA.templater``;WA.templates['cheffondocolor'] = WA.templater`${'co'}`;WA.templates['numrecetas.none'] = WA.templater``;WA.templates['numtips'] = WA.templater`Tips: ${'qt'}
`;WA.templates['numcolecciones.none'] = WA.templater``;WA.templates['paysigochefsesionprochef'] = WA.templater` `;WA.templates['btnseguirchef'] = WA.templater` `;WA.templates['feed_clasificacionreceta'] = WA.templater`
${'n'}
${'d'}
Descarga gratis`;WA.templates['productospro.none'] = WA.templater``;WA.templates['tipofeedrecetarios.probooks'] = WA.templater`
${['cond', 'myaccount','micuentabtnelimina']} ${['cond', 'myaccount','linkcoleccion']}
${['loop', 'el','coleccionelementos']}
${['cond', 'myaccount','micuentabtnupdate']}
${['cond', 'c','idelemento']}
`;WA.templates['idelemento'] = WA.templater`${['cond', 'i','imgelemento']}`;WA.templates['imgelemento.none'] = WA.templater` `;WA.templates['micuentabtnelimina'] = WA.templater` ${['cond', 'tipo','tipocoleccionemilina']} `;WA.templates['tipocoleccionemilina.8'] = WA.templater` `;WA.templates['tipocoleccionemilina'] = WA.templater`${'n'}
${'qt'} items