window.wwhatsappJs_new2=window.wwhatsappJs_new2||{},wwhatsappJs_new2.WhatsApp_new2=function(){var je=".pwapp-animated{-webkit-animation-duration:4s;animation-duration:4s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-delay:1s;animation-delay:1s}.pwapp-animated.pwapp-infinite{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.pwapp-animated.pwapp-onlyonce{-webkit-animation-iteration-count:1;animation-iteration-count:1}.pwapp-animated.pwapp-onlytwo{-webkit-animation-iteration-count:2;animation-iteration-count:2}.pwapp-animated.pwapp-onlythree{-webkit-animation-iteration-count:3;animation-iteration-count:3}.pwapp-animated.pwapp-onlyfour{-webkit-animation-iteration-count:4;animation-iteration-count:4}.pwapp-animated.pwapp-onlyfive{-webkit-animation-iteration-count:5;animation-iteration-count:5}.pwapp-animated.pwapp-onlysix{-webkit-animation-iteration-count:6;animation-iteration-count:6}";if(typeof jQuery>"u"){var Ae=document.getElementsByTagName("head")[0],st=document.createElement("script");st.type="text/javascript",st.src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js",st.onload=Mt,Ae.appendChild(st)}else setTimeout(Mt,100);var es=document.getElementsByTagName("head")[0],as=document.createElement("script");function Mt(){(e=>document.head.appendChild(document.createElement("style")).innerHTML=e)(""+je)}var t={id:"whatsapp",shop:null,settings:{style:{}},block:{},editor:{enabled:!1},selectors:{widget:"pushdaddy-widget",dashboard:"kdaddy-dashboard",category:"kdaddy-category",article:"kdaddy-article",search:"kdaddy-search",box:"pushdaddy-box",greeting:"pushdaddy-greeting",greeting_close:"pushdaddy-greeting-close",modal:"kdaddy-modal",modal_close:"kdaddy-modal-close"},host:{path:"https://cdn.shopify.com/s/files/1/0033/3538/9233/files/faq-",version:"1615391572"},emojis:{frequently:[["thumbs_up","👍"],["-1","👎"],["sob","😭"],["confused","😕"],["neutral_face","😐"],["blush","😊"],["heart_eyes","😍"]],people:[["smile","😄"],["smiley","😃"],["grinning","😀"],["blush","😊"],["wink","😉"],["heart_eyes","😍"]],nature:[["dog","🐶"],["wolf","🐺"],["cat","🐱"],["mouse","🐭"],["hamster","🐹"]],objects:[["bamboo","🎍"],["gift_heart","💝"],["dolls","🎎"],["school_satchel","🎒"],["mortar_board","🎓"]],places:[["house","🏠"],["house_with_garden","🏡"],["school","🏫"],["office","🏢"],["post_office","🏣"],["hospital","🏥"]],symbols:[["keycap_ten","🔟"],["1234","🔢"],["symbols","🔣"],["capital_abcd","🔠"],["abcd","🔡"],["abc","🔤"],["arrow_up_small","🔼"]]},patterns:{0:["#047c8d","#2ff289","#ffffff","#020610"],1:["#401dba","#825bf0","#ffffff","#401dba"],2:["#ff4e6f","#fb9168","#ffffff","#ff4e6f"],3:["#ace0f9","#fff1eb","#2f5680","#82b2c9"],4:["#29323c","#485563","#ffffff","#29323c"],5:["#4facfe","#00f2fe","#ffffff","#4facfe"],6:["#7c3ab7","#ff9aad","#ffffff","#7c3ab7"],7:["#a18cd1","#fbc2eb","#42265a","#9d4eec"],8:["#ff9a9e","#fad0c4","#843437","#ff74b7"],9:["#ff5858","#f09819","#ffffff","#ff5858"],10:["#fa709a","#febb40","#ffffff","#fa709a"],11:["#fda085","#f6d365","#784438","#ff9a4a"],12:["#daa475","#ffe0b9","#6b4b29","#daa475"],13:["#8a716d","#e8b794","#ffffff","#8a716d"],14:["#abecd6","#fbed96","#387861","#b1c71d"],15:["#3aa560","#b7e66c","#ffffff","#3aa560"],16:["#00c9ff","#92fe9d","#173e2b","#00c9ff"],17:["#13547a","#80d0c7","#ffffff","#13547a"],18:["#dfe9f3","#ffffff","#38425d","#9fbedd"],19:["#e9defa","#fbfcdb","#7d59a3","#e9defa"],20:["#accbee","#e7f0fd","#485195","#999bb4"],21:["#93a5cf","#e4efe9","#344973","#93a5cf"],22:["#09203f","#537895","#ffffff","#09203f"],23:["#000000","#434343","#ffffff","#000000"],24:["#0a0e88","#00b1ce","#ffffff","#020610"],25:["#19025c","#6e28bf","#ffffff","#020610"],26:["#31003e","#c3286e","#ffffff","#020610"],27:["#98033a","#f74f28","#ffffff","#020610"],28:["#2a27da","#00ccff","#ffffff","#004dff"],29:["#1ebea5","#01E677","#ffffff","#020610"],30:["#bdc3c7","#2c3e50","#ffffff","#020610"],31:["#ee9ca7","#ffdde1","#ffffff","#020610"],32:["#2193b0","#6dd5ed","#ffffff","#020610"],33:["#C6FFDD","#FBD786","#f7797d","#020610"],34:["#0F2027","#203A43","#2c5364","#020610"],35:["#12c2e9","#c471ed","#f64f59","#020610"],36:["#b92b27","#1565C0","#A5FECB","#020610"],37:["#373B44","#4286f4","#ffffff","#020610"],38:["#2980B9","#6DD5FA","#FFFFFF","#020610"],39:["#FF0099","#493240","#ffffff","#020610"],40:["#aa4b6b","#6b6b83","#3b8d99","#020610"],41:["#8E2DE2","#4A00E0","#ffffff","#020610"],42:["#1f4037","#99f2c8","#ffffff","#020610"],43:["#f953c6","#b91d73","#292E49","#020610"],44:["#7F7FD5","#86A8E7","#91EAE4","#020610"],45:["#c31432","#240b36","#ffffff","#020610"],46:["#f12711","#f5af19","#ffffff","#020610"],47:["#659999","#f4791f","#ffffff","#020610"],48:["#dd3e54","#6be585","#ffffff","#020610"],49:["#8360c3","#2ebf91","#ffffff","#020610"],50:["#544a7d","#ffd452","#ffffff","#020610"],51:["#009FFF","#ec2F4B","#ffffff","#020610"],52:["#654ea3","#eaafc8","#ffffff","#020610"],53:["#FF416C","#FF4B2B","#ffffff","#020610"],54:["#8A2387","#E94057","#F27121","#020610"],55:["#a8ff78","#78ffd6","#ffffff","#020610"],56:["#1E9600","#FFF200","#FF0000","#020610"],57:["#ED213A","#93291E","#ffffff","#020610"],58:["#FDC830","#F37335","#ffffff","#020610"],59:["#00B4DB","#0083B0","#ffffff","#020610"],60:["#FFEFBA","#FFFFFF","#ffffff","#020610"],61:["#59C173","#a17fe0","#5D26C1","#020610"],62:["#005AA7","#FFFDE4","#ffffff","#020610"],63:["#DA4453","#89216B","#ffffff","#020610"],64:["#636363","#a2ab58","#ffffff","#020610"],65:["#ad5389","#3c1053","#ffffff","#020610"],66:["#a8c0ff","#3f2b96","#ffffff","#020610"],67:["#333333","#dd1818","#7AA1D2","#020610"],68:["#4e54c8","#8f94fb","#ffffff","#020610"],69:["#355C7D","#6C5B7B","#C06C84","#020610"],70:["#bc4e9c","#f80759","#ffffff","#020610"],71:["#40E0D0","#FF8C00","#FF0080","#020610"],72:["#3E5151","#DECBA4","#ffffff","#020610"],73:["#11998e","#38ef7d","#ffffff","#020610"],74:["#108dc7","#ef8e38","#ffffff","#020610"],75:["#FC5C7D","#6A82FB","#ffffff","#020610"],76:["#FC466B","#3F5EFB","#A6FFCB","#020610"],77:["#c94b4b","#4b134f","#ffffff","#020610"],78:["#23074d","#cc5333","#ffffff","#020610"],79:["#fffbd5","#b20a2c","#ffffff","#020610"],80:["#0f0c29","#302b63","#24243e","#020610"],81:["#00b09b","#96c93d","#ffffff","#020610"],82:["#D3CCE3","#E9E4F0","#ffffff","#020610"],83:["#3C3B3F","#605C3C","#ffffff","#020610"],84:["#CAC531","#F3F9A7","#ffffff","#020610"],85:["#800080","#ffc0cb","#ffffff","#020610"],86:["#00F260","#0575E6","#ffffff","#020610"],87:["#fc4a1a","#f7b733","#ffffff","#020610"],88:["#74ebd5","#ACB6E5","#ffffff","#020610"],89:["#6D6027","#D3CBB8","#ffffff","#020610"],90:["#03001e","#7303c0","#ec38bc","#fdeff9"],91:["#667db6","#0082c8","#0082c8","#667db6"],92:["#ADA996","#F2F2F2","#dbdbdb","#eaeaea"],93:["#e1eec3","#f05053","#ffffff","#020610"],94:["#1a2a6c","#b21f1f","#fdbb2d","#020610"],95:["#22c1c3","#fdbb2d","#ffffff","#020610"],96:["#ff9966","#ff5e62","#ffffff","#020610"],97:["#7F00FF","#E100FF","#ffffff","#020610"],98:["#C9D6FF","#E2E2E2","#ffffff","#020610"],99:["#396afc","#2948ff","#ffffff","#020610"],101:["#d9a7c7","#fffcdc","#ffffff","#020610"],102:["#0cebeb","#20e3b2","#29ffc6","#020610"],103:["#06beb6","#48b1bf","#ffffff","#020610"],104:["#642B73","#C6426E","#ffffff","#020610"],105:["#1c92d2","#f2fcfe","#ffffff","#020610"],106:["#000000","#0f9b0f","#ffffff","#020610"],107:["#36D1DC","#5B86E5","#ffffff","#020610"],108:["#36D1DC","#5B86E5","#ffffff","#020610"],109:["#CB356B","#BD3F32","#ffffff","#020610"],110:["#3A1C71","#D76D77","#FFAF7B","#020610"],111:["#EF3B36","#FFFFFF","#ffffff","#020610"],112:["#c0392b","#8e44ad","#ffffff","#020610"],113:["#159957","#155799","#ffffff","#020610"],114:["#000046","#1CB5E0","#ffffff","#020610"],115:["#007991","#78ffd6","#ffffff","#020610"],116:["#56CCF2","#2F80ED","#ffffff","#020610"],117:["#F2994A","#F2C94C","#ffffff","#020610"],118:["#EB5757","#000000","#ffffff","#020610"],119:["#E44D26","#F16529","#ffffff","#020610"],120:["#4AC29A","#BDFFF3","#ffffff","#020610"],121:["#B2FEFA","#0ED2F7","#ffffff","#020610"],122:["#30E8BF","#FF8235","#ffffff","#020610"],123:["#D66D75","#E29587","#ffffff","#020610"],124:["#20002c","#cbb4d4","#ffffff","#020610"],125:["#C33764","#1D2671","#ffffff","#020610"],126:["#F7971E","#FFD200","#ffffff","#020610"],127:["#34e89e","#0f3443","#ffffff","#020610"],128:["#6190E8","#A7BFE8","#ffffff","#020610"],129:["#44A08D","#093637","#ffffff","#020610"],130:["#200122","#6f0000","#ffffff","#020610"],131:["#0575E6","#021B79","#ffffff","#020610"],132:["#4568DC","#B06AB3","#ffffff","#020610"],133:["#43C6AC","#191654","#ffffff","#020610"],134:["#093028","#237A57","#ffffff","#020610"],135:["#43C6AC","#F8FFAE","#ffffff","#020610"],136:["#FFAFBD","#ffc3a0","#ffffff","#020610"],137:["#F0F2F0","#000C40","#ffffff","#020610"],138:["#E8CBC0","#636FA4","#ffffff","#020610"],139:["#DCE35B","#45B649","#ffffff","#020610"],140:["#c0c0aa","#1cefff","#ffffff","#020610"],141:["#9CECFB","#65C7F7","#0052D4","#020610"],142:["#DBE6F6","#C5796D","#ffffff","#020610"],143:["#3494E6","#EC6EAD","#ffffff","#020610"],144:["#67B26F","#4ca2cd","#ffffff","#020610"],145:["#F3904F","#3B4371","#ffffff","#020610"],146:["#ee0979","#ff6a00","#ffffff","#020610"],147:["#A770EF","#CF8BF3","#FDB99B","#020610"],148:["#41295a","#2F0743","#ffffff","#020610"],149:["#f4c4f3","#fc67fa","#ffffff","#020610"],150:["#00c3ff","#ffff1c","#ffffff","#020610"],151:["#ff7e5f","#feb47b","#ffffff","#020610"],152:["#fffc00","#ffffff","#ffffff","#020610"],153:["#ff00cc","#333399","#ffffff","#020610"],154:["#de6161","#2657eb","#ffffff","#020610"],155:["#ef32d9","#89fffd","#ffffff","#020610"],156:["#3a6186","#89253e","#ffffff","#020610"],157:["#4ecdc4","#556270","#ffffff","#020610"],158:["#a1ffce","#faffd1","#ffffff","#020610"],159:["#be93c5","#7bc6cc","#4BC0C8","#020610"],160:["#bdc3c7","#2c3e50","#fcb045","#020610"],161:["#ffd89b","#19547b","#ffffff","#020610"],162:["#808080","#3fada8","#ffffff","#020610"],163:["#ffd89b","#19547b","#ffffff","#020610"],164:["#bdc3c7","#2c3e50","#ffffff","#020610"],165:["#BE93C5","#7BC6CC","#ffffff","#020610"],166:["#A1FFCE","#FAFFD1","#ffffff","#020610"],167:["#4ECDC4","#556270","#ffffff","#020610"],168:["#3a6186","#89253e","#ffffff","#020610"],169:["#ef32d9","#89fffd","#ffffff","#020610"],170:["#de6161","#2657eb","#ffffff","#020610"],171:["#115deg","#ff00cc","#333399","#020610"],172:["#fffc00","#ffffff","#ffffff","#020610"],173:["#ff7e5f","#feb47b","#ffffff","#020610"],174:["#00c3ff","#ffff1c","#ffffff","#020610"],175:["#f4c4f3","#fc67fa","#ffffff","#020610"],176:["#41295a","#2F0743","#ffffff","#020610"],177:["#A770EF","#CF8BF3","#FDB99B","#020610"],178:["#ee0979","#ff6a00","#ffffff","#020610"],179:["#F3904F","#3B4371","#ffffff","#020610"],180:["#67B26F","#4ca2cd","#ffffff","#020610"],181:["#3494E6","#EC6EAD","#ffffff","#020610"],182:["#DBE6F6","#C5796D","#ffffff","#020610"],183:["#9CECFB","#65C7F7","#0052D4","#020610"],184:["#c0c0aa","#1cefff","#ffffff","#020610"],185:["#DCE35B","#45B649","#ffffff","#020610"],186:["#E8CBC0","#636FA4","#ffffff","#020610"],187:["#F0F2F0","#000C40","#ffffff","#020610"],188:["#FFAFBD","#ffc3a0","#ffffff","#020610"],189:["#43C6AC","#F8FFAE","#ffffff","#020610"],190:["#093028","#237A57","#ffffff","#020610"],191:["#43C6AC","#191654","#ffffff","#020610"],192:["#4568DC","#B06AB3","#ffffff","#020610"],193:["#0575E6","#021B79","#ffffff","#020610"],194:["#200122","#6f0000","#ffffff","#020610"],195:["#44A08D","#093637","#ffffff","#020610"],196:["#6190E8","#A7BFE8","#ffffff","#020610"],197:["#34e89e","#0f3443","#ffffff","#020610"],198:["#F7971E","#FFD200","#ffffff","#020610"],199:["#C33764","#1D2671","#ffffff","#020610"],200:["#20002c","#cbb4d4","#ffffff","#020610"],201:["#D66D75","#E29587","#ffffff","#020610"],202:["#30E8BF","#FF8235","#ffffff","#020610"],203:["#B2FEFA","#0ED2F7","#ffffff","#020610"],204:["#B2FEFA","#0ED2F7","#ffffff","#020610"],205:["#4AC29A","#BDFFF3","#ffffff","#020610"],206:["#E44D26","#F16529","#ffffff","#020610"],207:["#EB5757","#000000","#ffffff","#020610"],208:["#F2994A","#F2C94C","#ffffff","#020610"],209:["#56CCF2","#2F80ED","#ffffff","#020610"],210:["#007991","#78ffd6","#ffffff","#020610"],211:["#000046","#1CB5E0","#ffffff","#020610"],212:["#159957","#155799","#ffffff","#020610"],213:["#c0392b","#8e44ad","#ffffff","#020610"],214:["#EF3B36","#FFFFFF","#ffffff","#020610"],215:["#283c86","#45a247","#ffffff","#020610"],216:["#3A1C71","#D76D77","#FFAF7B","#020610"],217:["#CB356B","#BD3F32","#ffffff","#020610"],218:["#36D1DC","#5B86E5","#ffffff","#020610"],219:["#000000","#0f9b0f","#ffffff","#020610"],220:["#1c92d2","#f2fcfe","#ffffff","#020610"],221:["#642B73","#C6426E","#ffffff","#020610"],222:["#06beb6","#48b1bf","#ffffff","#020610"],223:["#0cebeb","#20e3b2","#29ffc6","#020610"],224:["#d9a7c7","#fffcdc","#ffffff","#020610"],225:["#396afc","#2948ff","#ffffff","#020610"],226:["#C9D6FF","#E2E2E2","#ffffff","#020610"],227:["#7F00FF","#E100FF","#ffffff","#020610"],228:["#ff9966","#ff5e62","#ffffff","#020610"],229:["#22c1c3","#fdbb2d","#ffffff","#020610"],230:["#1a2a6c","#b21f1f","#fdbb2d","#020610"],231:["#e1eec3","#f05053","#ffffff","#020610"],232:["#ADA996","#F2F2F2","#DBDBDB","#EAEAEA"],233:["#667db6","#0082c8","#0082c8","#667db6"],234:["#03001e","#7303c0","#ec38bc","#fdeff9"],235:["#6D6027","#D3CBB8","#ffffff","#020610"],236:["#74ebd5","#ACB6E5","#ffffff","#020610"],237:["#fc4a1a","#f7b733","#ffffff","#020610"],238:["#00F260","#0575E6","#ffffff","#020610"],239:["#800080","#ffc0cb","#ffffff","#020610"],240:["#CAC531","#F3F9A7","#ffffff","#020610"],241:["#3C3B3F","#605C3C","#ffffff","#020610"],242:["#D3CCE3","#E9E4F0","#ffffff","#020610"],243:["#00b09b","#96c93d","#ffffff","#020610"],244:["#0f0c29","#302b63","#24243e","#020610"],245:["#fffbd5","#b20a2c","#ffffff","#020610"],246:["#23074d","#cc5333","#FDB99B","#020610"],247:["#c94b4b","#4b134f","#ffffff","#020610"],248:["#FC466B","#3F5EFB","#ffffff","#020610"],249:["#FC5C7D","#6A82FB","#ffffff","#020610"],250:["#108dc7","#ef8e38","#ffffff","#020610"],251:["#11998e","#38ef7d","#ffffff","#020610"],252:["#3E5151","#DECBA4","#0052D4","#020610"],253:["#40E0D0","#FF8C00","#FF0080","#020610"],254:["#bc4e9c","#f80759","#ffffff","#020610"],255:["#355C7D","#6C5B7B","#C06C84","#020610"],256:["#4e54c8","#8f94fb","#ffffff","#020610"],257:["#333333","#dd1818","#ffffff","#020610"],258:["#a8c0ff","#3f2b96","#ffffff","#020610"],259:["#ad5389","#3c1053","#ffffff","#020610"],260:["#636363","#a2ab58","#ffffff","#020610"],261:["#DA4453","#89216B","#ffffff","#020610"],262:["#005AA7","#FFFDE4","#ffffff","#020610"],263:["#59C173","#a17fe0","#5D26C1","#020610"],264:["#FFEFBA","#FFFFFF","#ffffff","#020610"],265:["#00B4DB","#0083B0","#ffffff","#020610"],266:["#FDC830","#F37335","#ffffff","#020610"],267:["#ED213A","#93291E","#ffffff","#020610"],268:["#1E9600","#FFF200","#FF0000","#020610"],269:["#a8ff78","#78ffd6","#ffffff","#020610"],270:["#8A2387","#E94057","#F27121","#020610"],271:["#FF416C","#FF4B2B","#ffffff","#020610"],272:["#654ea3","#eaafc8","#ffffff","#020610"],273:["#009FFF","#ec2F4B","#ffffff","#020610"],274:["#8360c3","#2ebf91","#ffffff","#020610"],275:["#dd3e54","#6be585","#ffffff","#020610"],276:["#659999","#f4791f","#ffffff","#020610"],277:["#f12711","#f5af19","#ffffff","#020610"],278:["#c31432","#240b36","#ffffff","#020610"],279:["#7F7FD5","#86A8E7","#91EAE4","#020610"],280:["#f953c6","#b91d73","#ffffff","#020610"],281:["#1f4037","#99f2c8","#ffffff","#020610"],282:["#8E2DE2","#4A00E0","#ffffff","#020610"],283:["#aa4b6b","#6b6b83","#3b8d99","#020610"],284:["#FF0099","#493240","#FFAF7B","#020610"],285:["#2980B9","#6DD5FA","#FFFFFF","#020610"],286:["#373B44","#4286f4","#ffffff","#020610"],287:["#b92b27","#1565C0","#ffffff","#020610"],288:["#12c2e9","#c471ed","#f64f59","#020610"],289:["#0F2027","#203A43","#2C5364","#020610"],290:["#C6FFDD","#FBD786","#f7797d","#020610"],291:["#2193b0","#6dd5ed","#29ffc6","#020610"],292:["#ee9ca7","#ffdde1","#ffffff","#020610"],293:["#bdc3c7","#2c3e50","#ffffff","#020610"]},cssUrl:"https://cdn.shopify.com/s/files/1/0033/3538/9233/files/pwhatsapp119ba1.scss.css"};function S(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function Me(){return Shopify.shop}function extractSubdomain(fullDomain){var parts=fullDomain.split(".");return parts[0]}function W(e,a){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),a=a||0;var s,i,n="#";for(i=0;i<3;i++)s=parseInt(e.substr(2*i,2),16),n+=("00"+(s=Math.round(Math.min(Math.max(0,s+s*a),255)).toString(16))).substr(s.length);return n}function pt(e,a){var s=new XMLHttpRequest;s.open("GET",e),a&&(s.onload=function(){s.readyState==4&&s.status==200||s.status==401||s.status==404?a(null,s.responseText):a(s.status,s.responseText)}),s.send()}function Se_old(){return new Promise(function(e,a){pt("/index.json?q="+t.id+"&view=pwhatsapp&cache=false",function(s,i){var n=!1;s==null&&(i=function(r){r=r.replace(//gm,"");try{return JSON.parse(r)}catch{var o="https://way2enjoy.com/shopify/1/whatsapp-chat/",d="",urlyy=o+"pushdaddy_get_chat1.php?shop="+Me(),xhr=new XMLHttpRequest;xhr.open("GET",urlyy,!1),xhr.onreadystatechange=function(){if(xhr.readyState===4)if(xhr.status!==404){var f=JSON.parse(xhr.responseText);d=JSON.stringify(f)}else console.log("Error")},xhr.send();var c="",c=d,m=c.replace(//gm,"");return JSON.parse(m)}}(i))&&(t.shop=i.metafields.shop,t.settings=i.metafields.settings,t.settings.charge==0&&(t.settings.block_order=t.settings.block_order.slice(0,1)),n=!0),e(n)})})}function Se(){return new Promise(function(resolve,reject){if(window.wwhatsappJs_new2a&&window.wwhatsappJs_new2a.WhatsApp_new2a)try{var settings=window.wwhatsappJs_new2a.WhatsApp_new2a.metafields.settings,shop=window.wwhatsappJs_new2a.WhatsApp_new2a.metafields.shop;t.shop=shop,t.settings=settings,resolve(settings)}catch(e){console.error("Error processing embedded settings:",e),fetchDataFromServer(resolve,reject)}else console.error("Embedded settings not found"),fetchDataFromServer(resolve,reject)})}function fetchDataFromServer(resolve,reject){var xhr=new XMLHttpRequest,urlyy="https://way2enjoy.com/shopify/1/whatsapp-chat/pushdaddy_get_chat1.php?shop="+Shopify.shop;xhr.open("GET",urlyy,!1),xhr.onreadystatechange=function(){if(xhr.readyState===4)if(xhr.status!==404)try{var f=JSON.parse(xhr.responseText),d=JSON.stringify(f),c=d.replace(//gm,"");t.shop=JSON.parse(c).metafields.shop,t.settings=JSON.parse(c).metafields.settings,t.settings.charge==0&&(t.settings.block_order=t.settings.block_order.slice(0,1)),resolve(!0)}catch(error){reject(error)}else reject(new Error("Error fetching data from PHP server"))},xhr.send()}function ss(){return t.settings.charge==0?'
by Pushdaddy
':""}function De(){if(setTimeout(function(){jQuery("#pushdaddy-share").addClass("hide_share")},t.settings.style.customized.auto_hide_share),t.settings.style.customized.share_icons_display!="Whatsapp"&&t.settings.style.customized.updown_share=="30")var e="60";else var e=t.settings.style.customized.updown_share;var a="#pushdaddy-share{bottom: "+e+"%;}";if(setTimeout(function(){jQuery("head").append("")},400),t.settings.style.customized.share_icons_display=="Whatsapp"){var s='<%= widget_share_label %>
<%= widget_whatsapp_icon %>
';return s=s.replace(/<%= widget_share_label %>/g,t.settings.share.texts.button.length?'
'+t.settings.share.texts.button+"
":"").replace(/<%= widget_whatsapp_icon %>/g,'')}else{if(t.settings.style.customized.share_trans!="1"&&t.settings.style.customized.share_trans!="")var i="";else var i="background-color: transparent;";var n=t.settings.style.customized.share_size+"px";if(t.settings.style.customized.share_radius!="")var r=t.settings.style.customized.share_radius;else var r="0";var o=t.settings.style.customized.share_icons_display,d='style="width:'+t.settings.style.customized.share_size+"px;height:"+t.settings.style.customized.share_size+"px;line-height:"+t.settings.style.customized.share_size+"px;border-radius: "+r+"%; "+i+'"',c=window.location;if(o.indexOf("Telegram")!==-1)var g="https://telegram.me/share/url?url="+c,m='
  • ';if(o.indexOf("Whatsapp")!==-1){var f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream,l=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;if(f==!0)if(l==!0)var u="https://api.whatsapp.com/send";else var u="https://api.whatsapp.com/send";else var u="https://web.whatsapp.com/send";var g=u+"?text="+c,b='
  • '}if(o.indexOf("Facebook")!==-1)var g="https://www.facebook.com/sharer/sharer.php?u="+c,v='
  • ';if(o.indexOf("Instagram")!==-1)var g="https://www.instagram.com/sharer.php?u="+c,h='
  • ';if(o.indexOf("Twitter")!==-1)var g="https://twitter.com/intent/tweet?url="+c,k='
  • ';if(o.indexOf("Pinterest")!==-1)var g="http://pinterest.com/pin/create/button/?url="+c,E='
  • ';if(o.indexOf("Reddit")!==-1)var g="https://reddit.com/submit?url="+c,D='
  • ';if(o.indexOf("VK")!==-1)var g="https://vk.com/share.php?act=count&url="+c,Y='
  • ';if(o.indexOf("Snapchat")!==-1)var g="https://snapchat.com/scan?attachmentUrl="+c,z='
  • ';if(o.indexOf("Wechat")!==-1)var g="https://web.whatsapp.com/send?text="+c,x='
  • ';var C='",s=C.replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","");return s}}function Qe(){if(setTimeout(function(){jQuery("#pushdaddy-lrchat").addClass("hide_share")},t.settings.style.customized.auto_hide_share),t.settings.style.customized.share_icons_display!="Whatsapp"&&t.settings.style.customized.updown_share=="30")var e="60";else var e=t.settings.style.customized.updown_share;var a="#pushdaddy-lrchat{bottom: "+e+"%;}",s='<%= widget_share_label %>
    <%= widget_whatsapp_icon %>
    ';return s=s.replace(/<%= widget_share_label %>/g,t.settings.texts.button.length?'
    '+t.settings.texts.button+"
    ":"").replace(/<%= widget_whatsapp_icon %>/g,'')}function X(){if(t.settings.style.customized.font_size=="")var e="font-size: 14px;";else var e="font-size: "+t.settings.style.customized.font_size+"px;";if(t.settings.style.pattern=="100")var a=t.settings.style.customized.secondary_button_tcolor;else var a="#FFFFFF";var s=t.settings.style.customized.background_img,i=t.settings.style.customized.background_img_main;if(t.settings.style.customized.icon_width<=70){var n=t.settings.style.customized.background_img_main;if(n.match("1905.png"))var r="70",o="70";else var o=t.settings.style.customized.icon_width;var d=t.settings.style.customized.icon_width*.6,x=t.settings.style.customized.icon_width*.3,c="50";if(S()==!0)if(t.settings.mobile.position!="left"){var m=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var f="right";else var f="left";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right";else var l="left";var u=t.settings.style.customized.final_leftright_second_position,b=""+u+": 100%;"}else{var m=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var f="left";else var f="right";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right";else var l="left";var u=t.settings.style.customized.final_leftright_second_position,b=""+u+": 100%;"}else if(t.settings.desktop.position!="left"){var m=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var f="right";else var f="left";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right";else var l="left";var u=t.settings.style.customized.final_leftright_second_position,b=""+u+": 100%;"}else{var m=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var f="left";else var f="right";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right";else var l="left";var u=t.settings.style.customized.final_leftright_second_position,b=""+u+": 100%;"}var v=";",h=t.settings.style.customized.icon_width/6,k=t.settings.style.customized.icon_width/4,E="background-color: "+t.settings.style.customized.label_bgcolor+";";if(t.settings.style.customized.remove_bg=="1")var D="background-color: transparent;color: "+a+";box-shadow:none;";else var D="background-color: "+t.settings.style.customized.secondary_button_bgcolor+";color: "+a+";box-shadow:none;";var Y="background-color: transparent;color: "+t.settings.style.customized.secondary_button_lcolor+";box-shadow:none;"}else{var r=t.settings.style.customized.icon_width;if(t.settings.style.customized.icon_width<=130){if(t.settings.style.customized.compact_normal=="0")var o=t.settings.style.customized.icon_width/3;else if(t.settings.style.customized.compact_normal=="1")var o=parseFloat(t.settings.style.customized.icon_width/3,10)-5;else if(t.settings.style.customized.compact_normal=="2")var o=parseFloat(t.settings.style.customized.icon_width/3,10)-10;else if(t.settings.style.customized.compact_normal=="3")var o=t.settings.style.customized.icon_width/2;else var o=t.settings.style.customized.icon_width/3;var d=t.settings.style.customized.icon_width*.2,x=t.settings.style.customized.icon_width*.1,c=t.settings.style.customized.icon_position;if(t.settings.desktop.position!="left"){if(t.settings.style.customized.leftt_rightt<=50)var v="right: unset;",f="right";else var v="right: unset;",f="left";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}else{if(t.settings.style.customized.leftt_rightt<=50)var v="left: unset;",f="left";else var v="left: unset;",f="right";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}var h="4",k="4",E="background-color: transparent;color: "+t.settings.style.customized.chatnow_color+";box-shadow:none;";if(t.settings.style.customized.remove_bg=="1")var D="background-color: transparent;color: "+a+";box-shadow:none;";else var D="background-color: "+t.settings.style.customized.secondary_button_bgcolor+";color: "+a+";box-shadow:none;";var Y="background-color: transparent;color: "+t.settings.style.customized.secondary_button_lcolor+";box-shadow:none;",m=parseFloat(t.settings.style.customized.icon_width*.3,10)-5}else{if(t.settings.style.customized.compact_normal=="0")var o=45;else if(t.settings.style.customized.compact_normal=="1")var o=35;else if(t.settings.style.customized.compact_normal=="2")var o=30;else if(t.settings.style.customized.compact_normal=="3")var o=55;else var o=t.settings.style.customized.icon_width/3;var d="26",x="13",c=t.settings.style.customized.icon_position;if(S()==!0)if(t.settings.mobile.position!="left"){if(t.settings.style.customized.leftt_rightt<=50)var v="right: unset;",f="right";else var v="right: unset;",f="left";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}else{if(t.settings.style.customized.leftt_rightt<=50)var v="left: unset;",f="left";else var v="left: unset;",f="right";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}else if(t.settings.desktop.position!="left"){if(t.settings.style.customized.leftt_rightt<=50)var v="right: unset;",f="right";else var v="right: unset;",f="left";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}else{if(t.settings.style.customized.leftt_rightt<=50)var v="left: unset;",f="left";else var v="left: unset;",f="right";if(t.settings.style.customized.leftt_rightt_sec<=50)var l="right",b="right: unset;";else var l="left",b="right: unset;";var u=t.settings.style.customized.final_leftright_second_position}var h="4",k="4",E="background-color: transparent;color: "+t.settings.style.customized.chatnow_color+";box-shadow:none;";if(t.settings.style.customized.remove_bg=="1")var D="background-color: transparent;color: "+a+";box-shadow:none;";else var D="background-color: "+t.settings.style.customized.secondary_button_bgcolor+";color: "+a+";box-shadow:none;";var Y="background-color: transparent;color: "+t.settings.style.customized.secondary_button_lcolor+";box-shadow:none;",m="34"}}if(t.settings.style.customized.leftright_label==""||t.settings.style.customized.leftright_label=="0"||t.settings.style.customized.leftright_label===void 0)var z=m;else var z=t.settings.style.customized.leftright_label;if(t.settings.style.customized.compact_normal=="3")if(t.settings.style.customized.icon_width>=70){var g=d*1.4;if(g<="25")var C="25";else var C=g;var P=parseFloat(z,10)+6,x=C/2,Q=x}else var C=d*1.4,P="10",x=C/2,Q=x;else if(t.settings.style.customized.compact_normal=="0")if(t.settings.style.customized.icon_width>=70){var g=d*1.2;if(g<="25")var C="25";else var C=g;var P=parseFloat(z,10),x=C/2,Q=x}else var C=d*1.2,P="10",x=C/2,Q=x;else if(t.settings.style.customized.compact_normal=="1")if(t.settings.style.customized.icon_width>=70){var g=d*1.1;if(g<="25")var C="25";else var C=g;var P=parseFloat(z,10),x=C/2,Q=x}else var C=d*1.1,P="10",x=C/2,Q=x;else if(t.settings.style.customized.compact_normal=="2")if(t.settings.style.customized.icon_width>=70){var g=d*1;if(g<="25")var C="25";else var C=g;var P=parseFloat(z,10),x=C/2,Q=x}else var C=d*1,P="10",x=C/2,Q=x;else var x=d/2,C=d,Q=x,P=z;if(t.settings.style.customized.font!="Helvetica"){var xt="https://fonts.googleapis.com/css?family="+t.settings.style.customized.font.replace(/ /g,"+"),T=document.createElement("link");T.rel="stylesheet",T.type="text/css",T.href=xt,document.head.appendChild(T)}if(setTimeout(function(){t.settings.style.customized.extend_header_img=="1"&&jQuery(".pushdaddy-note").css("background","transparent"),t.settings.style.customized.header_bg_color!=""&&t.settings.style.customized.header_bg_color!="#"&&jQuery(".pushdaddy-note").css("background","transparent")},1300),t.settings.style.customized.secondary_text.length=="0")var _t="display:none;";else var _t="display:inline;";var dt=t.settings.style.customized.secondary_button_link.replace("https://m.me/","");if(t.settings.style.customized.secondary_button=="0")var _="";else{if(t.settings.style.customized.secondary_button=="1"){var M='';setTimeout(function(){jQuery("body").append("
    ")},400);var I=t.block.chat.greeting.replace(/&/g,"&").replace(/>/g,">").replace(/';setTimeout(function(){jQuery(document).on("click",".pd-fb-logo",function(Ka){var Z=jQuery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");jQuery("#fb-root").css("display","block");let ts=jQuery(window).outerWidth();Z.css("max-height")==="0px"?FB.Event.subscribe("customerchat.dialogShow",Dt(Z)):FB.Event.subscribe("customerchat.dialogHide",Qt(Z))})},700)}else if(t.settings.style.customized.secondary_button=="2")var M='';else if(t.settings.style.customized.secondary_button=="3")var M='';else if(t.settings.style.customized.secondary_button=="4")var M='';else if(t.settings.style.customized.secondary_button=="5")var M='';else if(t.settings.style.customized.secondary_button=="6")var M='';else if(t.settings.style.customized.secondary_button=="7")var M='';else if(t.settings.style.customized.secondary_button=="8")var M='';else if(t.settings.style.customized.secondary_button=="9")var M='';else if(t.settings.style.customized.secondary_button=="10")var M='';else if(t.settings.style.customized.secondary_button=="11")var M='';else var M="";var ga=t.settings.style.customized.updown_bottom,ce=t.settings.style.customized.updown_bottom2;if(ce=="")var le="0";else var le=ce;var ua=parseFloat(ga,10)+parseFloat(le,10);if(t.settings.style.customized.secondary_button=="1"){var fe="",ha=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;if(ha==!0)var pe="display:none;";else var pe=";"}else var fe=`onclick=" window.open('`+t.settings.style.customized.secondary_button_link+`','_blank')"`;if(t.settings.style.customized.chatnow_color==""||t.settings.style.customized.chatnow_color==null)var V="black;";else var V=t.settings.style.customized.chatnow_color+";";if(V==null)var at="black;";else var at=V;if(typeof tt>"u")var jdjjs="";else var jdjjs=tt;var wa=t.settings.style.customized.icon_width,_=""+jdjjs+'
    "}if(t.settings.style.customized.background_img_main==""&&t.settings.style.customized.background_img=="")var me=";",ct="display:none;",Ct="",zt="",lt=";";else{if(t.settings.style.customized.icon_width<=70){var ct="display:none;",Ct="",zt=t.settings.style.customized.background_img_main;if(zt.match("1905.png"))var lt="--pushdaddy-background: transparent;--pushdaddy-box-shadow: none;background-size: 50px;";else var lt="--pushdaddy-background: transparent;--pushdaddy-box-shadow: none;background-size: contain;"}else var ct="display:inline;",Ct=t.settings.style.customized.background_img_main,zt="",lt=";";var me="display:none;"}var ya=t.settings.style.customized.pages_display,ba=ya.replace("/","/"),p=ba.split(",");if(window.location.pathname.match("(.*)/collections/(.*)")||window.location.pathname.match("(.*)/collections"))if(p[0]=="/collections/"||p[1]=="/collections/"||p[2]=="/collections/"||p[3]=="/collections/"||p[4]=="/collections/"||p[5]=="/collections/"||p[6]=="/collections/"||p[7]=="/collections/"||p[8]=="/collections/")var j=";";else var j="display:none;";if(window.location.pathname.match("(.*)/cart/(.*)")||window.location.pathname.match("(.*)/cart")||window.location.pathname.match("(.*)/orders/(.*)")||window.location.pathname.match("(.*)/orders"))if(p[0]=="/cart/"||p[1]=="/cart/"||p[2]=="/cart/"||p[3]=="/cart/"||p[4]=="/cart/"||p[5]=="/cart/"||p[6]=="/cart/"||p[7]=="/cart/"||p[8]=="/cart/"||p[0]=="/orders/"||p[1]=="/orders/"||p[2]=="/orders/"||p[3]=="/orders/"||p[4]=="/orders/"||p[5]=="/orders/"||p[6]=="/orders/"||p[7]=="/orders/"||p[8]=="/orders/")var j=";";else var j="display:none;";if(window.location.pathname.match("(.*)/products/(.*)")||window.location.pathname.match("(.*)/products"))if(p[0]=="/products/"||p[1]=="/products/"||p[2]=="/products/"||p[3]=="/products/"||p[4]=="/products/"||p[5]=="/products/"||p[6]=="/products/"||p[7]=="/products/"||p[8]=="/products/")var j=";";else var j="display:none;";if(window.location.pathname.match("(.*)/checkouts/(.*)")||window.location.pathname.match("(.*)/checkouts"))if(p[0]=="/checkouts/"||p[1]=="/checkouts/"||p[2]=="/checkouts/"||p[3]=="/checkouts/"||p[4]=="/checkouts/"||p[5]=="/checkouts/"||p[6]=="/checkouts/"||p[7]=="/checkouts/"||p[8]=="/checkouts/")var j=";";else var j="display:none;";if(window.location.pathname.match("(.*)/pages/(.*)")||window.location.pathname.match("(.*)/pages"))if(p[0]=="/pages/"||p[1]=="/pages/"||p[2]=="/pages/"||p[3]=="/pages/"||p[4]=="/pages/"||p[5]=="/pages/"||p[6]=="/pages/"||p[7]=="/pages/"||p[8]=="/pages/")var j=";";else var j="display:none;";if(window.location.pathname.match("(.*)/blogs/(.*)")||window.location.pathname.match("(.*)/blogs"))if(p[0]=="/blogs/"||p[1]=="/blogs/"||p[2]=="/blogs/"||p[3]=="/blogs/"||p[4]=="/blogs/"||p[5]=="/blogs/"||p[6]=="/blogs/"||p[7]=="/blogs/"||p[8]=="/blogs/")var j=";";else var j="display:none;";if(window.location.pathname==="/")if(p[0]=="/"||p[1]=="/"||p[2]=="/"||p[3]=="/"||p[4]=="/"||p[5]=="/"||p[6]=="/"||p[7]=="/"||p[8]=="/")var j=";";else window.location.pathname;if(window.location.pathname.match("(.*)/password/(.*)")||window.location.pathname.match("(.*)/password"))if(p[0]=="/password/"||p[1]=="/password/"||p[2]=="/password/"||p[3]=="/password/"||p[4]=="/password/"||p[5]=="/password/"||p[6]=="/password/"||p[7]=="/password/"||p[8]=="/password/")var j=";";else var j=";";if(j==null)var ge="";else var ge=j;if(t.settings.style.customized.icon_width<=70)var y=t.settings.style.customized.icon_width;else var y=50;if(t.settings.style.customized.merged_icons=="1"){var F=t.settings.style.customized.merged_icons_display,R="line-height: "+y+"px; width: "+y+"px; height: "+y+"px;margin-top: 4px;margin-bottom: 4px;",L="transform: rotate(0deg);margin-top: 4px;margin-bottom: 4px;";if(F.indexOf("Telegram")!==-1)var w=t.settings.style.customized.network_11,va='
    Telegram
    ';if(F.indexOf("Whatsapp")!==-1){var ka=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream,xa=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;if(ka==!0)if(xa==!0)var Et="https://api.whatsapp.com/send";else var Et="https://api.whatsapp.com/send";else var Et="https://web.whatsapp.com/send";var _a=Et+"?phone="+t.block.number+"&text="+t.block.message,Ca='
    Whatsapp
    '}if(F.indexOf("Facebook")!==-1)var w=t.settings.style.customized.network_2,za='';if(F.indexOf("Instagram")!==-1)var w=t.settings.style.customized.network_5,Ea='
    Instagram
    ';if(F.indexOf("Twitter")!==-1)var w=t.settings.style.customized.network_6,Fa='';if(F.indexOf("Pinterest")!==-1)var w=t.settings.style.customized.network_7,Ia='';if(F.indexOf("Slack")!==-1)var w=t.settings.style.customized.network_22,ds='
    Slack
    ';if(F.indexOf("Map")!==-1)var w=t.settings.style.customized.network_23,cs='
    Google Map
    ';if(F.indexOf("Reddit")!==-1)var w=t.settings.style.customized.network_8,Ba='';if(F.indexOf("VK")!==-1)var w=t.settings.style.customized.network_9,La='
    VK
    ';if(F.indexOf("Snapchat")!==-1)var w=t.settings.style.customized.network_10,ja='
    Snapchat
    ';if(F.indexOf("Wechat")!==-1)var w=t.settings.style.customized.network_11,Aa='
    WeChat
    ';if(F.indexOf("Email")!==-1)var w=t.settings.style.customized.network_12,Ma='';if(F.indexOf("Viber")!==-1)var w=t.settings.style.customized.network_20,Sa='
    Viber
    ';if(F.indexOf("Line")!==-1)var w=t.settings.style.customized.network_21,ls='
    Line
    ';if(F.indexOf("Call")!==-1)var w=t.settings.style.customized.network_13,Da='
    Call
    ';if(F.indexOf("Messenger")!==-1){var w=t.settings.style.customized.network_3,Qa=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;if(Qa==!0)var ue="",he='target="_blank" href="https://m.me/'+w+'"';else var ue="pd-fb-logoss",he="";jQuery("body").append("
    ");var I=t.block.chat.greeting.replace(/&/g,"&").replace(/>/g,">").replace(/';jQuery(document).on("click",".pd-fb-logoss",function(Ka){var Z=jQuery(".fb-customerchat.fb_invisible_flow.fb_iframe_widget iframe");jQuery("#fb-root").css("display","block");let ts=jQuery(window).outerWidth();Z.css("max-height")==="0px"?FB.Event.subscribe("customerchat.dialogShow",Dt(Z)):FB.Event.subscribe("customerchat.dialogHide",Qt(Z))});var Xa='
    Messenger
    '}if(F.indexOf("Skype")!==-1)var w=t.settings.style.customized.network_15,qa='
    Skype
    ';if(F.indexOf("Linkedin")!==-1)var w=t.settings.style.customized.network_16,Ya='
    Linkedin
    ';if(F.indexOf("Weibo")!==-1)var w=t.settings.style.customized.network_17,Ha='';if(F.indexOf("QQ")!==-1)var w=t.settings.style.customized.network_18,Na='';if(F.indexOf("Youtube")!==-1)var w=t.settings.style.customized.network_4,Ra='';if(F.indexOf("Twitch")!==-1)var w=t.settings.style.customized.network_19,Va='';if(F.indexOf("Tiktok")!==-1)var w=t.settings.style.customized.network_24,Za='
    TikTok
    ';var Wa=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;if(Wa==!0)if(t.settings.style.customized.mobile_label_yn=="0"&&t.settings.style.customized.icon_width<=70)var Ft="";else var Ft='data-tooltip="'+t.settings.texts.button+'";';else var Ft='data-tooltip="'+t.settings.texts.button+'";';if(S()==!0)var we=t.settings.style.customized.updown_bottom_m;else var we=t.settings.style.customized.updown_bottom;if(t.settings.style.pattern=="100")var ye=t.settings.style.customized.background;else var ye="var(--pushdaddyx-background);var(--pushdaddy-background)";var Ua='
    '+Oa+'
    '+qa+" "+Ya+" "+Ha+" "+Sa+" "+Na+" "+ja+" "+Aa+" "+va+" "+Va+" "+Ma+" "+Ra+" "+Da+" "+La+" "+Ba+" "+Ia+" "+Fa+" "+Za+" "+za+" "+Ea+" "+Xa+" "+Ca+'
    ',$a=Ua.replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined","").replace("undefined",""),be=$a,ve=";display:none;"}else var be="",ve=ge;if(t.settings.style.pattern=="100")if(s=="")if(t.settings.style.customized.icon_width<=70)var et="background-image:url("+i+")";else var et="";else if(t.settings.style.customized.icon_width<=70)var et="background-image:url("+s+")";else var et="";else var et="";if(t.settings.style.customized.whatsapp_yn=="1"||t.settings.style.customized.wallyn=="l"||t.settings.style.customized.wallyn=="r")var ke="display:none;";else var ke=";";if(t.settings.style.customized.mobile_label_yn=="0"&&t.settings.style.customized.icon_width<=70){var Ga=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;if(Ga==!0)var It="display:none;";else var It=";"}else var It=";";if(t.settings.style.customized.shadow_yn=="1")var Bt=";box-shadow: none;";else var Bt=";;";if(t.settings.style.customized.svg_yes_icon!="2")var stylrssvg="position: absolute;left: 50%;-webkit-transform: translateX(-50%); -ms-transform: translateX(-50%);transform: translateX(-50%);color:"+t.settings.style.customized.svg_color,widdhggghh="";else var stylrssvg="fill:"+t.settings.style.customized.svg_color,widdhggghh='width="18"';if(t.settings.style.customized.svg_yes=="0")var B='';else if(t.settings.style.customized.svg_yes=="1")var B='';else if(t.settings.style.customized.svg_yes=="2")var B='';else if(t.settings.style.customized.svg_yes=="3")var B='';else if(t.settings.style.customized.svg_yes=="4")var B='';else if(t.settings.style.customized.svg_yes=="5")var B='';else if(t.settings.style.customized.svg_yes=="6")var B='';else if(t.settings.style.customized.svg_yes=="7")var B='';else if(t.settings.style.customized.svg_yes=="8")var B='';else if(t.settings.style.customized.svg_yes=="9")var B='';else if(t.settings.style.customized.svg_yes=="10")var B='';else if(t.settings.style.customized.svg_yes=="11")var B='';else if(t.settings.style.customized.svg_yes=="12")var B='';else if(t.settings.style.customized.svg_yes=="13")var B='';else if(t.settings.style.customized.svg_yes=="14")var B='';else if(t.settings.style.customized.svg_yes=="15")var B='';else if(t.settings.style.customized.svg_yes==null)var B='';else var B="";var yafg=t.settings.style.customized.lang_support,pfgfg=yafg.split(","),langArray=pfgfg.filter(Boolean),enCount=langArray.filter(function(lang){return lang==="en"}).length,ghhnhreg=location.pathname.split("/")[1],langParamyy=location.host.split(".")[1],langParamLength=langParamyy.length;if(pfgfg[0]==ghhnhreg||pfgfg[1]==ghhnhreg||pfgfg[2]==ghhnhreg||pfgfg[3]==ghhnhreg||pfgfg[4]==ghhnhreg||pfgfg[0]==langParamyy||pfgfg[1]==langParamyy||pfgfg[2]==langParamyy||pfgfg[3]==langParamyy||pfgfg[4]==langParamyy)if(ghhnhreg!="en"||enCount>1){if(langParamLength=="2")var newtextdata=t.settings["texts_"+langParamyy].button;else var newtextdata=t.settings["texts_"+location.pathname.split("/")[1]].button;var finalbuttext=newtextdata}else if(S()==!0)var finalbuttext=t.settings.texts.button_m;else var finalbuttext=t.settings.texts.button;else if(S()==!0)var finalbuttext=t.settings.texts.button_m;else var finalbuttext=t.settings.texts.button;if(t.settings.style.customized.svg_yes_icon=="1")var Ja="pushdaddyx-clip-path",Lt="x",xe='';else var Ja="",Lt="",xe="";let _e="0";_e=Rt("pushaa_greeting");var ze="";if(t.settings.style.customized.ctaction_animation==="pwapp-slideInUp")var Ce="pwapp-animated2";else var Ce="pwapp-animated";if(t.settings.style.customized.clicktcart==="1"&&t.settings.style.customized.clicktcart_text.length>0&&_e!=="1")var ze='
    '+t.settings.style.customized.clicktcart_text+'
    ';var Ee=document.getElementById("pushdaddy-greetingcta-close");if(Ee&&Ee.addEventListener("click",function(){St()}),S()==!0)var Fe=t.settings.style.customized.updown_bottom_m;else var Fe=t.settings.style.customized.updown_bottom;var quotes_pd=new Array,quotes_pd=finalbuttext.split(","),counterlngth=quotes_pd.length-1,counterpd=0,finaltestxt=quotes_pd[0],kjkdkfkd="",kkdftryrkd=t.settings.style.customized.excl_urlss;if(kkdftryrkd){var excl_urlss=kkdftryrkd,excl_urls_array=excl_urlss.split(", "),currentPath=window.location.pathname;excl_urls_array.forEach(function(url){try{var pathname=new URL(url).pathname,lastSegment=pathname.substring(pathname.lastIndexOf("/"));currentPath.endsWith(lastSegment)&&(kjkdkfkd=";display:none;")}catch{kjkdkfkd=";display:block;"}})}if(S()==!0)var scanenjrkekedyykk=t.settings.style.customized.scaleicon_m;else var scanenjrkekedyykk=t.settings.style.customized.scaleicon;if(typeof scanenjrkekedyykk>"u")var scanenjrkeked="1";else var scanenjrkeked=scanenjrkekedyykk;if(t.settings.style.customized.svg_yes_icon!="2")var fjjddddd='
    <%= widget_button_label %><%= widget_whatsapp_icon %><%= widget_close_icon %>
    ',buttid="pushdaddy-button-label";else{var buttid="pushdaddy-button2";if(t.settings.style.customized.svg_yes!="1500")var neswwskks=B;else var neswwskks='';var fkkfkgvfdtytr=it();console.log(fkkfkgvfdtytr);var aiphone=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;const resulttyrr=t.block.number.split(",");var randomtert=Math.floor(Math.random()*resulttyrr.length),randomName=resulttyrr[randomtert],a=Xt(),s=randomName;if(aiphone==!0)var gfgdghfgfd=fkkfkgvfdtytr;else var gfgdghfgfd="javascript:void";var fjjddddd=""}var Ie=""+be+ze+" "+xe+fjjddddd+_;let Be="0";Be=Rt("pushaa_blink");var jt="";if(t.settings.style.customized.blink_circle==="1"&&Be!=="1")var jt='1';else var jt="";if(t.settings.style.customized.chatnow_color==""||t.settings.style.customized.chatnow_color==null)var V="black;";else var V=t.settings.style.customized.chatnow_color+";";if(V==null)var at="black;";else var at=V;if(ct=="display:none;")var At="0";else var At=C;if(t.settings.style.customized.labelradius!="8")var Le="border-radius:"+t.settings.style.customized.labelradius+"px;";else var Le="border-radius:8px;";return setTimeout(function(){function looppd(){counterpd>counterlngth&&(counterpd=0),document.getElementById(buttid).innerHTML=quotes_pd[counterpd],counterpd++,setTimeout(looppd,2e3)}quotes_pd.length>="2"&&looppd()},1e4),Ie=Ie.replace(/<%= widget_button_label %>/g,t.settings.texts.button.length?'
    '+finaltestxt+"
    ":"").replace(/<%= widget_whatsapp_icon %>/g,''+B).replace(/<%= widget_close_icon %>/g,''+jt)}function St(){const e=document.getElementById("pushdaddy-greetingcta");e!==null&&(e.classList.remove("pushdaddy-greetingcta--opened"),setTimeout(function(){e.remove()},200),Vt("pushaa_greeting","1"))}function Te(){var e=document.getElementById("pushy-pending");e!=null&&(document.getElementById("pushy-pending").style.visibility="hidden"),Vt("pushaa_blink","1")}function Dt(e){FB.CustomerChat.show(),e.css("max-height","100%"),e.removeClass("fb_customer_chat_bounce_out_v2").addClass("fb_customer_chat_bounce_in_v2")}function Qt(e){FB.CustomerChat.show(),e.css("max-height","0px"),e.removeClass("fb_customer_chat_bounce_in_v2").addClass("fb_customer_chat_bounce_out_v2")}function Pe(){var yafgpf=t.settings.style.customized.lang_support,pfgfgpf=yafgpf.split(","),pfgfgpfyy=pfgfgpf.filter(Boolean),enCount=pfgfgpfyy.filter(function(lang){return lang==="en"}).length,gdfhdvbt=location.pathname.split("/")[1],langParttt=location.host.split(".")[1],langParat5yt=langParttt.length;if(pfgfgpf[0]==gdfhdvbt||pfgfgpf[1]==gdfhdvbt||pfgfgpf[2]==gdfhdvbt||pfgfgpf[3]==gdfhdvbt||pfgfgpf[4]==gdfhdvbt||pfgfgpf[0]==langParttt||pfgfgpf[1]==langParttt||pfgfgpf[2]==langParttt||pfgfgpf[3]==langParttt||pfgfgpf[4]==langParttt)if(gdfhdvbt!="en"||enCount>1)if(langParat5yt=="2")var newa_title=t.settings["texts_"+langParttt].title,finagt_title=newa_title,finagt_note=t.settings["texts_"+langParttt].note,finggal_gree=t.block.chat["greeting_"+langParttt],fing_description=t.settings["texts_"+langParttt].description,fig_prefilledt=t.settings["texts_"+langParttt].prefilledt,finagt_placeholder=t.settings["texts_"+langParttt].placeholder;else var newa_title=t.settings["texts_"+location.pathname.split("/")[1]].title,finagt_title=newa_title,finagt_note=t.settings["texts_"+location.pathname.split("/")[1]].note,finggal_gree=t.block.chat["greeting_"+location.pathname.split("/")[1]],fing_description=t.settings["texts_"+location.pathname.split("/")[1]].description,fig_prefilledt=t.settings["texts_"+location.pathname.split("/")[1]].prefilledt,finagt_placeholder=t.settings["texts_"+location.pathname.split("/")[1]].placeholder;else var finagt_title=t.settings.texts.title,finagt_note=t.settings.texts.note,finggal_gree=t.block.chat.greeting,fing_description=t.settings.texts.description,fig_prefilledt=t.settings.texts.prefilledt,finagt_placeholder=t.settings.texts.placeholder;else var finagt_title=t.settings.texts.title,finagt_note=t.settings.texts.note,finggal_gree=t.block.chat.greeting,fing_description=t.settings.texts.description,fig_prefilledt=t.settings.texts.prefilledt,finagt_placeholder=t.settings.texts.placeholder;var e=t.settings.texts.title.length||t.settings.texts.description.length||t.settings.texts.note.length?'
    <%= widget_title %><%= widget_description %><%= widget_note %>
    ':"";if(t.settings.style.customized.extend_header_img=="1")var a=";background:transparent;";else var a=";";if(t.settings.style.customized.title_textsize!="24"&&t.settings.style.customized.title_textsize!="0"&&t.settings.style.customized.title_textsize!="")var s='style="color: var(--pushdaddy-color);text-transform: none;font-size: '+t.settings.style.customized.title_textsize+'px;"';else if(t.settings.style.customized.leftrightclose=="left")var s='style="color: var(--pushdaddy-color);text-transform: none;text-align: right;"';else var s='style="color: var(--pushdaddy-color);text-transform: none;text-align: left;"';if(t.settings.style.customized.waving_img!=""&&t.settings.style.customized.waving_img!=null)var i=t.settings.style.customized.title_textsize*.8,n=' ';else var n="";if(t.settings.mobile.layout=="newchat3"||t.settings.desktop.layout=="newchat3")var r=`
    `;else var r="";return e=e.replace(/<%= widget_title %>/g,t.settings.texts.title.length?""+r+'

    "+finagt_title+n+"

    ":"").replace(/<%= widget_description %>/g,t.settings.texts.description.length?'
    '+fing_description+"
    ":"").replace(/<%= widget_note %>/g,t.settings.texts.note.length?'
    '+finagt_note+"
    ":"")}function H(){var e=t.settings.style.customized.background_pic_header;if(e!="")var a="background-image:url("+e+");background-position: "+t.settings.style.customized.header_posit_img+";";else var a=";";if(t.settings.style.customized.header_text_color!=""&&t.settings.style.customized.header_text_color!="#")var s="color:"+t.settings.style.customized.header_text_color;if(t.settings.style.customized.background_pic_header=="")var i="background:"+t.settings.style.customized.header_bg_color;if(t.settings.style.customized.header_bg_color!="")if(t.settings.style.customized.header_bg_color!="#")var s="color:"+t.settings.style.customized.header_text_color,i="background:"+t.settings.style.customized.header_bg_color;else var s=";",i=";";if(t.settings.style.customized.what_bg!="")var n=";position: initial;";else var n=";";if(t.settings.style.customized.chatbox_radius!="8"&&t.settings.style.customized.chatbox_radius!="")var r=";border-radius:"+t.settings.style.customized.chatbox_radius+"px; "+t.settings.style.customized.chatbox_radius+"px; 0 0;";else var r=";";if(t.settings.style.customized.leftrightclose=="left")var o=";left: 12px;";else var o=";right: 12px;";if(t.settings.style.customized.header_flat=="0")var d="99";else var d="";var c='
    <%= widget_greeting %>
    ';return c=c.replace(/<%= widget_greeting %>/g,Pe())}function A(){var dggdk=t.settings.style.customized.lang_support,lpgrh=dggdk.split(","),lpgrhyy=lpgrh.filter(Boolean),enCount=lpgrhyy.filter(function(lang){return lang==="en"}).length,dgfghtyh=location.pathname.split("/")[1];if(lpgrh[0]==location.pathname.split("/")[1]||lpgrh[1]==location.pathname.split("/")[1]||lpgrh[2]==location.pathname.split("/")[1]||lpgrh[3]==location.pathname.split("/")[1]||lpgrh[4]==location.pathname.split("/")[1])if(dgfghtyh!=="en"||enCount>1)var finkjt_placeholder=t.settings["texts_"+location.pathname.split("/")[1]].placeholder;else var finkjt_placeholder=t.settings.texts.placeholder;else var finkjt_placeholder=t.settings.texts.placeholder;var ftrytyty=loadlivechatyy();if(ftrytyty!=2)var showjjfj="",addattachemnnrt="";else var showjjfj="display:none",addattachemnnrt='';var e='';return e=e.replace(/<%= widget_placeholder %>/g,Jt(finkjt_placeholder))}function ft(){return t.block.avatar.length?'
    '+t.block.name+"
    ":""}var selectedUploadFile=[];function triggerFileInput(){const fileInput=document.getElementById("file-upload-input");fileInput.removeEventListener("change",handleFileChange),fileInput.addEventListener("change",handleFileChange),fileInput.click()}function handleFileChange(event2){const files=event2.target.files;if(console.log("===>>>",files,"-->>>",files.length),files.length>0){let formData=new FormData;formData.append("files[]",files[0]);const fileInput=event2.target;fileInput.disabled=!0,$.ajax({url:"https://pushdaddy.xyz/chat/upload_attachments_users.php",type:"POST",data:formData,processData:!1,contentType:!1,success:function(response){console.log("response-->>",response[0].filepath),selectedUploadFile.push(response[0]);const imageUrl="https://pushdaddy.xyz/chat/"+response[0].filepath,responseMessage=document.getElementById("pushdaddy-response-message");responseMessage.value="Image attached. Press Enter to send.";const targetDiv=document.getElementById("input_box_pushdaddy");targetDiv.textContent+=imageUrl;const enterEvent=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13,charCode:13,which:13});responseMessage.dispatchEvent(enterEvent)},error:function(error){console.log("upload--error--->>>",error)},complete:function(){fileInput.disabled=!1}})}}function Tt(){var e='',a=t.block,s=a.label,i="pushdaddy-online";return function(){var n=t.block;if(n.online=="1"||t.settings.charge==0)return"online";var r={timeZone:n.timezone},o=new Date().toLocaleString([],r),d=new Date(o);if(d=="Invalid Date")var c=o.split(","),m=c[0],f=c[1],l=m.replace(".","/").replace(".","/"),u=Ot(l)+f,b=new Date(u);else var b=new Date(d);var v=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][b.getDay()],h=n[v];if(h==null)return"online";if(h.enabled=="1"){var k=h.range;k=k.split(",");var E=60*b.getHours()+b.getMinutes();if(k[0]'+a.offline),e=e.replace(/<%= account_id %>/g,a.id).replace(/<%= account_avatar %>/g,ft()).replace(/<%= account_name %>/g,a.name).replace(/<%= account_label %>/g,s).replace(/<%= account_status %>/g,i)}function Pt(){if(loadlivechatyy()==2)var peooeeotext="";else var peooeeotext=t.settings.texts.prefilledt;if(t.block.page_url=="1")var a=peooeeotext+` `+window.location.href;else var a=peooeeotext;a=a.trim().replace(/\n\r?/g,` `).replace("<","[").replace(">","]");var s=it();s+="&text="+encodeURIComponent(a);var e='
    ",a=t.block,s=a.label,i="pushdaddy-online";return function(){var n=t.block;if(n.online=="1"||t.settings.charge==0)return"online";var r={timeZone:n.timezone},o=new Date().toLocaleString([],r),d=new Date(o);if(d=="Invalid Date")var c=o.split(","),m=c[0],f=c[1],l=m.replace(".","/").replace(".","/"),u=Ot(l)+f,b=new Date(u);else var b=new Date(d);var v=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][b.getDay()],h=n[v];if(h.enabled=="1"||h==null){var k=h.range;k=k.split(",");var E=60*b.getHours()+b.getMinutes();if(k[0]'+a.offline),e=e.replace(/<%= account_id %>/g,a.id).replace(/<%= account_avatar %>/g,ft()).replace(/<%= account_name %>/g,a.name).replace(/<%= account_label %>/g,s).replace(/<%= account_status %>/g,i)}function Ptyy(){if(loadlivechatyy()==2)var peooeeotext="";else var peooeeotext=t.settings.texts.prefilledt;if(t.block.page_url=="1")var a=peooeeotext+` `+window.location.href;else var a=peooeeotext;a=a.trim().replace(/\n\r?/g,` `).replace("<","[").replace(">","]");var s=it();s+="&text="+encodeURIComponent(a);var e='",a=t.block,s=a.label,i="pushdaddy-online";return function(){var n=t.block;if(n.online=="1"||t.settings.charge==0)return"online";var r={timeZone:n.timezone},o=new Date().toLocaleString([],r),d=new Date(o);if(d=="Invalid Date")var c=o.split(","),m=c[0],f=c[1],l=m.replace(".","/").replace(".","/"),u=Ot(l)+f,b=new Date(u);else var b=new Date(d);var v=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][b.getDay()],h=n[v];if(h.enabled=="1"||h==null){var k=h.range;k=k.split(",");var E=60*b.getHours()+b.getMinutes();if(k[0]'+a.offline),e=e.replace(/<%= account_id %>/g,a.id).replace(/<%= account_avatar %>/g,ft()).replace(/<%= account_name %>/g,a.name).replace(/<%= account_label %>/g,s).replace(/<%= account_status %>/g,i)}function Ot(e){try{return e.split("/").reverse().join("/")}catch{return null}}function q(){var e=t.block.chat.greeting||"",khyfgt=t.settings.style.customized.lang_support,kuyih=khyfgt.split(","),kuyihyy=kuyih.filter(Boolean),enCount=kuyihyy.filter(function(lang){return lang==="en"}).length,ghrgfe=location.pathname.split("/")[1],langParamyytttt=location.host.split(".")[1],langParatytyt=langParamyytttt.length;if(kuyih[0]==ghrgfe||kuyih[1]==ghrgfe||kuyih[2]==ghrgfe||kuyih[3]==ghrgfe||kuyih[4]==ghrgfe||kuyih[0]==langParamyytttt||kuyih[1]==langParamyytttt||kuyih[2]==langParamyytttt||kuyih[3]==langParamyytttt||kuyih[4]==langParamyytttt)if(ghrgfe!="en"||enCount>1)if(langParatytyt=="2")var final_greeuy=t.block.chat["greeting_"+langParamyytttt];else var final_greeuy=t.block.chat["greeting_"+location.pathname.split("/")[1]];else var final_greeuy=t.block.chat.greeting;else var final_greeuy=t.block.chat.greeting;var dummtjej="";if(e.length==0||t.block.chat.enabled=="0")return"";if(S()==!0&&t.settings.mobile.layout=="baby")var a=" pushy-whatsapp-message";else if(S()!=!0&&t.settings.desktop.layout=="baby")var a=" pushy-whatsapp-message";else var a="";if(t.settings.style.customized.bot_yn=="1"&&t.settings.style.customized.advance_bot!="1")var s='";else if(t.settings.style.customized.bot_yn=="1"&&t.settings.style.customized.advance_bot=="1")var s='
    '+t.settings.style.customized.adddv_bott+"
    ";else var s="";if(t.settings.style.customized.faq_yn=="1")var i='
    <%= account_avatar %><%= chat_message %>
    '+sa()+" ";else if(t.settings.desktop.layout=="newchat3")var i='
    <%= chat_message %>
    '+s;else var i='
    <%= account_avatar %><%= chat_message %>
    '+s;return i=i.replace(/<%= chat_message %>/g,final_greeuy).replace(/<%= account_avatar %>/g,ft()).replace(/<%= faq_message %>/g,dummtjej)}function Xt(){var e="https://web.whatsapp.com/send",a=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,s=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;const resulttyrrtt=t.block.number.split(",");var randomterttt=Math.floor(Math.random()*resulttyrrtt.length),randomNameyy=resulttyrrtt[randomterttt];if(s==!0)if(a==!0)var i="https://wa.me/"+randomNameyy;else var i="https://api.whatsapp.com/send";else var i="https://web.whatsapp.com/send";return S()&&(e=""+i),e}function Xtshare(){var e="https://web.whatsapp.com/send",a=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,s=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/.test(navigator.userAgent)&&!window.MSStream;if(s==!0)if(a==!0)var i="https://wa.me/";else var i="https://api.whatsapp.com/send";else var i="https://web.whatsapp.com/send";return S()&&(e=""+i),e}function it(e){e=e||!1;var aiphone=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;const resulttyrr=t.block.number.split(",");var randomtert=Math.floor(Math.random()*resulttyrr.length),randomName=resulttyrr[randomtert],a=Xt(),s=randomName;if(aiphone==!0){var rjej="",makeiurll=a+="?text="+(e=J()),urlyyt=makeiurll.replace(/\u202C/g,""),aiphonee=a.replace(/\u202C/g,"").replace(/\u202D/g,"");return console.log(aiphonee),s.indexOf("chat.whatsapp.com")!==-1?aiphonee=s:aiphonee+=rjej&&(aiphonee+="?text="+(e=J())),encodeURI(aiphonee)}else return s.indexOf("chat.whatsapp.com")!==-1?a=s:a+="?phone="+s,e&&(a+="&text="+(e=J())),encodeURI(a)}function qt(){var e=window.location;return window!=window.top&&(e=window.top.location),e.origin+e.pathname}function J(){if(loadlivechatyy()==2){var peooeeotextyy="",xtyyrtyy=localStorage.getItem("email_customeer");xtyyrtyy!==null&&livechattcodes()}else var peooeeotextyy=t.block.message;var e=peooeeotextyy;return t.block.page_url=="1"&&(e=qt()+` `+e),e}function Yt(){var e=t.emojis,a="";for(var s in e){var i=e[s],n="emoji_"+s;a+='

    '+t.settings.texts[n]+"

    ";for(var r=0;r'+o[1]+""}a+="
    "}document.getElementById("pushdaddy-picker-groups").innerHTML=a,Gt()}function mt(e,a){var s=document.getElementsByClassName(e)[0],i=document.getElementsByClassName(a)[0];if(i==null||s==null)return!1;i.style.removeProperty("height"),i.style.height=s?s.offsetHeight+"px":"0px"}function Ht(){if(Object.keys(t.settings.style).length>0)if(t.settings.style.customized.remove_bg=="1")var e="transparent";else var e=t.settings.style.customized.background;if(t.settings.style.customized.svg_yes=="0")var a="";else var a="x";if(t.settings.style.customized.share_radius=="0")var finlradu="20";else var finlradu=t.settings.style.customized.share_radius;if(document.documentElement.style.setProperty("--pushdaddy-position-bottom",t.settings.style.customized.updown_bottom+"px"),document.documentElement.style.setProperty("--pushy-pending-color",t.settings.style.customized.blink_circle_color),document.documentElement.style.setProperty("--svg-bg-color",t.settings.style.customized.svg_color),document.documentElement.style.setProperty("--faq-bg-color",t.settings.style.customized.faq_color),document.documentElement.style.setProperty("--share_radius",finlradu+"px"),document.documentElement.style.setProperty("--pushy-pending-background",t.settings.style.customized.blink_circle_bg),t.settings.style.customized.enabled=="0"){var s=t.patterns[t.settings.style.pattern],i=function(n){var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}(s[3]);t.settings.style.customized.svg_yes=="0"?(document.documentElement.style.setProperty("--pushdaddy"+a+"-color",t.settings.style.customized.color),document.documentElement.style.setProperty("--pushdaddy"+a+"-background","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy"+a+"-background2","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-dark",s[0]),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-light",s[1]),document.documentElement.style.setProperty("--pushdaddy"+a+"-box-shadow","rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 0px 4px 24px")):(document.documentElement.style.setProperty("--pushdaddy"+a+"-color",s[2]),document.documentElement.style.setProperty("--pushdaddy"+a+"-background","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy"+a+"-background2","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-dark",s[0]),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-light",s[1]),document.documentElement.style.setProperty("--pushdaddy"+a+"-box-shadow","rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 0px 4px 24px"),document.documentElement.style.setProperty("--pushdaddy-color",s[2]),document.documentElement.style.setProperty("--pushdaddy-background","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy-background2","linear-gradient(115deg, "+s[0]+", "+s[1]+")"),document.documentElement.style.setProperty("--pushdaddy-background-dark",s[0]),document.documentElement.style.setProperty("--pushdaddy-background-light",s[1]),document.documentElement.style.setProperty("--pushdaddy-box-shadow","rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 0px 4px 24px"))}else t.settings.style.customized.svg_yes=="0"?(document.documentElement.style.setProperty("--pushdaddy"+a+"-color",t.settings.style.customized.color),document.documentElement.style.setProperty("--pushdaddy"+a+"-background",e),document.documentElement.style.setProperty("--pushdaddy"+a+"-background2",t.settings.style.customized.background),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-dark",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-light",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy"+a+"-box-shadow","rgba(0,0,0,0.06) 0 1px 6px 0, rgba(0,0,0,0.16) 0 2px 32px 0"),document.documentElement.style.setProperty("--pushdaddy"+a+"-share-color",t.settings.share.style.color),document.documentElement.style.setProperty("--pushdaddy"+a+"-share-background",t.settings.share.style.background)):(document.documentElement.style.setProperty("--pushdaddy"+a+"-color",t.settings.style.customized.color),document.documentElement.style.setProperty("--pushdaddy"+a+"-background",e),document.documentElement.style.setProperty("--pushdaddy"+a+"-background2",t.settings.style.customized.background),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-dark",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy"+a+"-background-light",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy"+a+"-box-shadow","rgba(0,0,0,0.06) 0 1px 6px 0, rgba(0,0,0,0.16) 0 2px 32px 0"),document.documentElement.style.setProperty("--pushdaddy"+a+"-share-color",t.settings.share.style.color),document.documentElement.style.setProperty("--pushdaddy"+a+"-share-background",t.settings.share.style.background),document.documentElement.style.setProperty("--pushdaddy-color",t.settings.style.customized.color),document.documentElement.style.setProperty("--pushdaddy-background",e),document.documentElement.style.setProperty("--pushdaddy-background2",t.settings.style.customized.background),document.documentElement.style.setProperty("--pushdaddy-background-dark",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy-background-light",W(e,.1)),document.documentElement.style.setProperty("--pushdaddy-box-shadow","rgba(0,0,0,0.06) 0 1px 6px 0, rgba(0,0,0,0.16) 0 2px 32px 0"),document.documentElement.style.setProperty("--pushdaddy-share-color",t.settings.share.style.color),document.documentElement.style.setProperty("--pushdaddy-share-background",t.settings.share.style.background))}var Oe=0;function Xe(){Oe+=1}var qe=setInterval(Xe,1e3),nt="VISIT_COUNTER";if(localStorage.getItem(nt)===null)localStorage.setItem(nt,1);else{var Nt=parseInt(localStorage.getItem(nt))+1;localStorage.setItem(nt,Nt)}function gt(e){if(t.settings.charge==0)return!1;var a=document.getElementById("pushdaddy-response-message").value,s=t.settings.track_url+"?shop="+t.shop+"&msgggg="+a+"&action="+e+"&chattimee="+qe+"&visited_count="+Nt+"&request_url="+window.location.pathname;e=="chat"&&(e=="chat"&&t.block.name!==void 0&&(s+="&operator="+t.block.cid),pt(s)),e=="share"&&(e=="share"&&t.block.name!==void 0&&(s+="&operator="+t.block.ciiid),pt(s));var s=window.ga;s&&s("send",{hitType:"event",eventCategory:t.settings.style.customized.google_ec,eventAction:t.settings.style.customized.google_ea,eventLabel:t.settings.style.customized.google_el});var i=window.fbq;i&&bt("track",t.settings.style.customized.fpixel_en,{})}function Rt(e){return window.sessionStorage.getItem(e)}function Vt(e,a){window.sessionStorage.setItem(e,a)}function N(){var e=localStorage.getItem("auto_start");return e>1||(localStorage.setItem("auto_start","99"),setTimeout(function(){jQuery("#pushdaddy-button,#pushdaddyx-button,#pushdaddy-button2").click()},t.settings.style.customized.auto_start)),t.settings.charge==0?'':""}function loadlivechatyy(){var livechattt="7";if(S()==!0&&t.settings.style.customized.live_whatsapp_mobile=="2")livechattt="2";else if(S()==!1&&t.settings.style.customized.live_whatsapp=="2")livechattt="2";else var livechattt="7";return livechattt}function ot(){if(document.getElementById("pushdaddy-box")!=null){var e=document.body,a=document.getElementById("pushdaddy-widget");a.classList.contains("pushdaddy-opened")?(a.classList.remove("pushdaddy-opened"),e.classList.remove("pushdaddy-overlay")):(a.classList.add("pushdaddy-opened"),e.classList.add("pushdaddy-overlay"),a.classList.contains("pushdaddy-button-chat")&&Kt()),jQuery("#pushdaddy-box").removeClass("bounceDown99")}else $t()}function Ye(){var e=function(){var a=qt()+` `+t.settings.share.texts.message,s=Xt();return encodeURI(s+="?text="+a)}();window.open(e,"_blank").focus(),gt("share")}function Yeshare(){var e=function(){var a=qt()+` `+t.settings.share.texts.message,s=Xtshare();return encodeURI(s+="?text="+a)}();window.open(e,"_blank").focus(),gt("share")}function Zt(e,a){if(a=a||"",document.selection)e.focus(),document.selection.createRange().text=a;else if(e.selectionStart||e.selectionStart===0){var s=e.selectionStart,i=e.selectionEnd;e.value=e.value.substring(0,s)+a+e.value.substring(i,e.value.length),e.selectionStart=s+a.length,e.selectionEnd=s+a.length}else e.value+=a;e.focus()}function Wt(e){var a=/([^\u0000-\u007F]|[\w-])+/g;return e.match(a).length}function He(e){return/\d/.test(e)}function Ut(){var aiphoneyyjjuyt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,e=document.getElementById("pushdaddy-response-message"),a=e.value;if(a)var s=Wt(a);else var s="25";var s=Wt(a),i=He(a),n=t.settings.style.customized.emailpop;if(n=="1"){var r=localStorage.getItem("emailpoppuupp");if(r!="99")var o="1";else var o="0"}else var o="0";if(a.length===0||!a.trim())return e.classList.add("pushdaddy-shake"),e.focus(),setTimeout(function(){e.classList.remove("pushdaddy-shake")},1e3),!1;a=a.trim().replace(/\n\r?/g,` `).replace("<","[").replace(">","]");var d=it(),livecchsh=loadlivechatyy();if(livecchsh!=2)if(s===1&&i==!0||a.indexOf("@")!=-1||o==1){if(o==1?jQuery("#imgreftransfer").css("display","block"):jQuery("#imgreftransfer").css("display","none"),o==0){if(t.settings.charge==0)return!1;var c=document.getElementById("pushdaddy-response-message").value.replace("#",""),m="https://way2enjoy.com/touch/1/tracking_with_bot6.php?shop="+t.shop+"&msgggg="+c+"&request_url="+t.block.cid,f=document.createElement("audio");f.setAttribute("autoplay","autoplay"),f.innerHTML='',jQuery("#pushdaddy-response-message").val(""),jQuery.get(""+m,function(l){if(f.play(),t.settings.mobile.layout=="baby"||t.settings.desktop.layout=="baby")var u=" pushy-whatsapp-message";else var u="";if(t.settings.desktop.layout=="button_list")var b="position: relative;";else var b="";jQuery(".pushdaddy-body, .conversation").append('
    '+t.block.name+"
    "+l.roboresp+"
    "),jQuery(".pushdaddy-body, .conversation").animate({scrollTop:jQuery(".pushdaddy-body, .conversation")[0].scrollHeight},2e3)},"json")}}else if(t.settings.style.customized.trackingon==1)if(aiphoneyyjjuyt==!0){d+="%0A%0A"+encodeURIComponent(a);var link=document.createElement("a");link.href=d,link.target="_blank",document.body.appendChild(link),link.click(),document.body.removeChild(link),ut()}else{d+="&text="+encodeURIComponent(a);var link=document.createElement("a");link.href=d,link.target="_blank",document.body.appendChild(link),link.click(),document.body.removeChild(link),ut()}else if(aiphoneyyjjuyt==!0){d+="%0A%0A"+encodeURIComponent(a);var link=document.createElement("a");link.href=d,link.target="_blank",document.body.appendChild(link),link.click(),document.body.removeChild(link),ut()}else{d+="&text="+encodeURIComponent(a);var link=document.createElement("a");link.href=d,link.target="_blank",document.body.appendChild(link),link.click(),document.body.removeChild(link),ut()}}function Utyy(){var aiphoneyyjjuyt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,e=document.getElementById("pushdaddy-response-message"),a=e.value,livecchshyryyyrr=loadlivechatyy(),n,s,i;if(console.log(livecchshyryyyrr),livecchshyryyyrr==2?(n="1",s="1",i="1"):(n=t.settings.style.customized.emailpop,s=a?Wt(a):"25",i=He(a)),console.log(i),console.log("7777777777"),console.log(s),n=="1"){var r=localStorage.getItem("emailpoppuupp");if(r!="99")var o="1";else var o="0"}else var o="0";if(livecchshyryyyrr==2&&(s===1&&i==!0||a.indexOf("@")!=-1||o==1)&&(console.log("fffff"),o==1?jQuery("#imgreftransfer").css("display","block"):jQuery("#imgreftransfer").css("display","none"),o==0)){if(console.log("fffff"),t.settings.charge==0)return!1;var c=document.getElementById("pushdaddy-response-message").value.replace("#",""),m="https://way2enjoy.com/touch/1/tracking_with_bot6.php?shop="+t.shop+"&msgggg="+c+"&request_url="+t.block.cid,f=document.createElement("audio");f.setAttribute("autoplay","autoplay"),f.innerHTML='',jQuery("#pushdaddy-response-message").val(""),jQuery.get(""+m,function(l){if(f.play(),t.settings.mobile.layout=="baby"||t.settings.desktop.layout=="baby")var u=" pushy-whatsapp-message";else var u="";if(t.settings.desktop.layout=="button_list")var b="position: relative;";else var b="";jQuery(".pushdaddy-body, .conversation").append('
    '+t.block.name+"
    "+l.roboresp+"
    "),jQuery(".pushdaddy-body, .conversation").animate({scrollTop:jQuery(".pushdaddy-body, .conversation")[0].scrollHeight},2e3)},"json")}}function Ne(){if(loadlivechatyy()==2)var peooeeotext="";else var peooeeotext=t.settings.texts.prefilledt;if(t.block.page_url=="1")var e=peooeeotext+` `+window.location.href;else var e=peooeeotext;e=e.trim().replace(/\n\r?/g,` `).replace("<","[").replace(">","]");var a=it(),aiphoneyyjj=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;aiphoneyyjj==!0?(a+="%0A%0A"+encodeURIComponent(e),window.open(a,"_blank"),ut()):(a+="&text="+encodeURIComponent(e),window.open(a,"_blank"),ut())}function $t(){var e=it(!0);window.open(e,"_blank").focus(),ut(),gt("chat")}function ut(){var e=document.body,a=document.getElementById("pushdaddy-widget"),s=document.getElementById("pushdaddy-response-message");e.classList.remove("pushdaddy-overlay"),a.classList.remove("pushdaddy-opened"),s!=null&&(s.value="")}function Gt(){for(var e=document.getElementById("pushdaddy-response-message"),a=document.getElementsByClassName("pushdaddy-picker-emoji"),s=0;s":">"},s=/[&<>"'/]/ig;return e.toString().replace(s,i=>a[i])}document.querySelectorAll(".ProductForm__BuyButtons,.ProductForm__AddToCart,.product-form__cart-submit,.btn,.button,.Button,.add-to-cart,.add_to_cart,.shop-button,.add-to-cart-btn,.action,button[type='submit'][name='add']").forEach(function(e){e.addEventListener("click",function(){t.settings.style.customized.icon_width<=70&&(document.getElementById("pushdaddy-button").classList.add("itemHidden"),document.getElementById("pushdaddy-button").style.width="30px",document.getElementById("pushdaddy-button").style.height="30px",document.getElementById("pushdaddy-button").style.backgroundSize="30px",t.settings.texts.button.length>=1&&(document.getElementById("pushdaddy-button-label").style.display="none"));let push_sub_id_pdaddy=localStorage.getItem("push_sub_id_pdaddy");if(push_sub_id_pdaddy&&!isNaN(push_sub_id_pdaddy)){let product_id;if(e.getAttribute("data-product-id"))product_id=e.getAttribute("data-product-id");else{let formElement=e.closest("form");formElement&&formElement.querySelector('input[name="id"]')&&(product_id=formElement.querySelector('input[name="id"]').value)}if(product_id){const data=new URLSearchParams;data.append("product_id",product_id),data.append("push_sub_id_pdaddy",push_sub_id_pdaddy);const productImage=document.querySelector('meta[property="og:image:secure_url"]');productImage?data.append("product_image",productImage.getAttribute("content")):console.error("Product image not found"),fetch("https://way2enjoy.com/shopify/1/whatsapp-chat/api/notifications/update_customer_pushdata.php",{method:"POST",body:data,headers:{"Content-Type":"application/x-www-form-urlencoded"}}).then(response=>response.json()).then(data2=>{console.log("Success:",data2)}).catch(error=>{console.error("Error:",error)})}else console.error("Product ID not found")}})});function Kt(){setTimeout(function(){try{document.getElementById("pushdaddy-response-message").focus()}catch(e){}},300)}function livechattcodes(){addCss("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/chat_window1.css"),addCss("https://pushdaddy.xyz/chat/css/chat_contact.css");var xtyyrt=localStorage.getItem("email_customeer");if(xtyyrt!==null)var idyrtytr=xtyyrt;var jdjjjdd=window.location.hostname,checkiddrttrr=jdjjjdd.replace(".myshopify.com",""),abboptrterrt=localStorage.getItem("livechatidd");if(console.log(abboptrterrt),abboptrterrt===null){localStorage.setItem("livechatidd",idyrtytr);var jjdjdf=idyrtytr}else var jjdjdf=abboptrterrt;console.log(jjdjdf);var InboxScript_disablee={_loaded_scripts:[],ownUserId:jjdjdf,firebase_messages:{},firebase_notification:{},add_script:function(src){var that=this;return new Promise(function(resolve,reject){if(that._loaded_scripts.includes(src)){resolve("already");return}jQuery.ajax({url:src,dataType:"script",success:function(){that._loaded_scripts.push(src),resolve("loaded")}})})}},InboxScript={_loaded_scripts:[],ownUserId:jjdjdf,firebase_messages:{},firebase_notification:{},add_script:function(src){var that=this;return new Promise(function(resolve,reject){if(that._loaded_scripts.includes(src)){resolve("already");return}var script=document.createElement("script");script.src=src,script.onload=function(){that._loaded_scripts.push(src),resolve("loaded")},script.onerror=function(){reject(new Error("Script load error: "+src))},document.head.appendChild(script)})}};setTimeout(function(){var storeenameme=Me().replace(".myshopify.com",""),storeid2=""+storeenameme+"@pushdaddy.xyz";console.log(storeid2);var userid=jjdjdf;storeid2=storeid2.trim(),InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-app.js").then(function(resp){return InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-analytics.js")}).then(function(resp){return InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-firestore.js")}).then(function(resp){return InboxScript.add_script("https://pushdaddy.xyz/chat/js/FirebaseConfig.js")}).then(function(resp){return InboxScript.add_script("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/chat_window_v2b_Working1c_new.js")}).then(function(resp){var name="customer";if(InboxScript.chat_controller!=null)InboxScript.chat_controller.add_window(storeid2,name).then(function(result){});else{var default_photo_link="https://cdn.shopify.com/s/files/1/0033/3538/9233/files/loderrr.gif?v=1722597102";InboxScript.chat_controller=new ChatWindowController(document.body,userid,default_photo_link),InboxScript.chat_controller.add_window(storeid2,name).then(function(result){})}})},500),InboxScript.ownUserId.length>0&&InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-app.js").then(function(resp){return InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-analytics.js")}).then(function(resp){return InboxScript.add_script("https://www.gstatic.com/firebasejs/7.15.0/firebase-firestore.js")}).then(function(resp){return InboxScript.add_script("https://pushdaddy.xyz/chat/js/FirebaseConfig.js")}).then(function(resp){return InboxScript.add_script("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/chat_window_v2b_Working1c_new.js")}).then(function(resp){InboxScript.firebase_messages={db,firebase,ownUserId:jjdjdf,check_unseen_message:function(){var unseen_messge_count_query=db.collection("/chat-message-collection/userChats/"+this.ownUserId).where("unseen_message",">",0)},get_recent_messages:function(){var that=this,recent_message_query=db.collection("/chat-message-collection/userChats/"+this.ownUserId).orderBy("lastupdatetime","desc").limit(10);return recent_message_query.get().then(function(querySnapshot){if(querySnapshot.docs.length<=0){recent_message_list_container_top_nav.innerHTML='
    No conversations to show
    ';return}return recent_message_list_container_top_nav.innerHTML="",querySnapshot.forEach(function(doc){var single_chat=doc,chat_item=$("").attr({class:"dropdown-item recent_message_item",id:"recent_message_item_"+doc.id}).appendTo("#recent_message_list_container_top_nav");chat_item.html(`
    `),chat_item.data("chatid",doc.id),chat_item.data("chat_meta_info",doc.data());var member_query=that.db.collection("chat-message-collection/chats/chats/").doc(doc.id);return member_query.get().then(function(snapshot){var chat_data=snapshot.data();chat_data.users.forEach(function(chat_participant){if(console.log(chat_participant),chat_participant=chat_participant.trim(),chat_participant!=that.ownUserId){chat_item.data("contact",chat_participant),console.log(that.firebase.firestore.FieldPath.documentId());var user_info_query=that.db.collection("chat-users").where(that.firebase.firestore.FieldPath.documentId(),"==",chat_participant);return user_info_query.get().then(function(snapshot2){snapshot2.forEach(function(doc2){var u_info=doc2.data();chat_item.data("contact_info",u_info);var last_message_query=that.db.collection("chat-message-collection/chatMessages/"+single_chat.id).orderBy("sentTime","desc").limit(1);last_message_query.onSnapshot(function(snapshot3){snapshot3.docChanges().forEach(function(change){if(change.type=="added"){var last_message=change.doc.data();chat_item.html(`
    ${u_info.name}
    ${last_message.message}
    `)}})})})})}})})})})}},InboxScript.firebase_messages.ownUserId.length>0&&InboxScript.firebase_messages.check_unseen_message()})}function listenForMessages(storeid2,chatId2){if(!storeid2||!chatId2){console.error("storeid or chatId is missing");return}inbox.db.collection("chat-message-collection/userChats/"+storeid2).doc(chatId2).onSnapshot(doc=>{doc.exists&&(doc.data().messages||[]).forEach(message=>{message.storeid&&message.storeid!==storeid2&&(storeid2=message.storeid,alert("Your chat has been transferred to a new agent. Please continue the conversation."))})},error=>{console.error("Error listening for messages: ",error)})}function closehandllers(){var isclddexssisrt=document.getElementsByClassName("pushdaddy-opened");console.log(isclddexssisrt.length);var nyy=t.settings.style.customized.background_img_main;t.settings.style.customized.icon_width<=70&&t.settings.style.customized.background_img_main!==""&&t.settings.desktop.layout!=="button"&&(document.getElementById("pushdaddy-button").style.backgroundImage="",document.getElementById("pushdaddy-button").style.backgroundColor="var(--pushdaddy-background2)",document.getElementById("svg-close").style.display="block",nyy.match("1905.png")&&(document.getElementById("pushdaddy-button").style.height="70px",document.getElementById("pushdaddy-button").style.width="60px"),isclddexssisrt.length==1?t.settings.mobile.layout=="button"?(document.getElementById("pushdaddy-button").style.backgroundImage='url("'+t.settings.style.customized.background_img_main+'")',document.getElementById("svg-close").style.display="none",document.getElementById("pushdaddy-button").style.backgroundColor="",nyy.match("1905.png")&&(document.getElementById("pushdaddy-button").style.height="70px",document.getElementById("pushdaddy-button").style.width="60px")):(document.getElementById("svg-close").style.display="block",document.getElementById("pushdaddy-button").style.backgroundColor="var(--pushdaddy-background2)",document.getElementById("pushdaddy-button").style.backgroundImage="",nyy.match("1905.png")&&(document.getElementById("pushdaddy-button").style.height="40px",document.getElementById("pushdaddy-button").style.width="60px")):(document.getElementById("svg-close").style.display="none",document.getElementById("pushdaddy-button").style.backgroundImage='url("'+t.settings.style.customized.background_img_main+'")',document.getElementById("pushdaddy-button").style.backgroundColor="",nyy.match("1905.png")&&(document.getElementById("pushdaddy-button").style.height="70px",document.getElementById("pushdaddy-button").style.width="60px"))),t.settings.style.customized.icon_width>=100&&(isclddexssisrt.length==1?(document.getElementById("pushdaddy-button").style.height="40px",document.getElementById("pushdaddy-button").style.width="60px",document.getElementById("imgiiidd").src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAAtJREFUGFdjYAACAAAFAAGq1chRAAAAAElFTkSuQmCC"):(document.getElementById("pushdaddy-button").style.height="30px",document.getElementById("pushdaddy-button").style.width=t.settings.style.customized.icon_width+"px",document.getElementById("imgiiidd").src=t.settings.style.customized.background_img_main)),typeof storeid<"u"&&storeid!==null&&listenForMessages(storeid,chatId)}function closehss(){if(S()==!0&&t.settings.mobile.layout=="button")var sjjfjyy="77";else if(S()==0&&t.settings.desktop.layout=="button")var sjjfjyy="88";else var sjjfjyy="0";if(sjjfjyy==0){var elementytrttt=document.getElementById("nettjer");if(elementytrttt!==null){console.log("trytryy");const computedStyle=window.getComputedStyle(elementytrttt);elementytrttt&&(computedStyle.display==="block"?(document.getElementById("nettjer").style.display="none",document.getElementById("svg-closetyt").style.display="block",document.getElementById("hidehreee").style.display="none"):(document.getElementById("nettjer").style.display="block",document.getElementById("svg-closetyt").style.display="none",document.getElementById("hidehreee").style.display="block"))}}}function te(){document.querySelectorAll("#closeflyer").forEach(function(e2){e2.addEventListener("click",function(){document.getElementById("flyMessage").style.display="none"})});var livecchshfff=loadlivechatyy();if(livecchshfff!=2)var jjdjf=["#pushdaddy-close","#svg-close","#pushy-close-button","#pushdaddy-reply"];else var jjdjf=["#pushdaddy-close","#svg-close","#pushy-close-button"];if(!isNaN(t.settings.style.customized.img_cntt)){var elementyytyuyryyu=document.getElementById("pushdaddy-widget");elementyytyuyryyu.style.zIndex=t.settings.style.customized.img_cntt}var aiphoneyyrt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;t.settings.style.customized.pushnotifiction!==0&&!aiphoneyyrt&&typeof Notification<"u"&&Notification.permission!=="denied"&&addJs("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/Pushnotify_pdaddy_script.js"),setTimeout(function(){var elements=document.querySelectorAll("#pushdaddy-greetingcta-close,#pushdaddy-button-label,#pushdaddy-button,#pushdaddyx-button,#messagebuttonfly,#openpushdaddy,#pushdaddy-button2");elements.forEach(function(r){r.addEventListener("click",function(){St(),t.settings.style.customized.blink_circle==="1"&&Te();var pushdaddyBox=document.querySelector("#pushdaddy-box"),moon=document.querySelector("#moon"),waChatBubble=document.querySelector("#wa-chat-bubble"),moontyt=document.querySelector(".hideeee");(pushdaddyBox||moon||waChatBubble)&&(pushdaddyBox.classList.contains("bounceDown99")||(pushdaddyBox.classList.contains("bounceUp99")?pushdaddyBox.classList.remove("bounceUp99"):waChatBubble?waChatBubble.classList.contains("bounceUp99")&&(waChatBubble.classList.remove("bounceUp99"),moon&&moon.classList.add("hideeee")):(pushdaddyBox.classList.add("bounceUp99"),pushdaddyBox.classList.remove("bounceDown99"),waChatBubble&&waChatBubble.classList.add("bounceUp99"),moon&&moon.classList.remove("hideeee"))))})});var pushdaddyBoxyy=document.getElementById("pushdaddy-box");jjdjf.forEach(function(selector){var elementyyy=document.querySelector(selector);elementyyy&&elementyyy.addEventListener("click",function(){pushdaddyBoxyy&&pushdaddyBoxyy.classList.remove("bounceUp99");var sjjfj="";S()?sjjfj=t.settings.mobile.layout==="button"?"77":"0":sjjfj=t.settings.desktop.layout==="button"?"88":"0";var elementytrt=document.getElementById("nettjer");elementytrt&&sjjfj==="0"&&(elementytrt.style.display="block",document.getElementById("svg-closetyt").style.display="none",document.getElementById("hidehreee").style.display="block"),closehandllers()})});var elementytrttrere=document.getElementById("ic_close");elementytrttrere&&document.getElementById("ic_close").addEventListener("click",function(){document.querySelector(".user-data-modal").style.display="none"});var i=S()?t.settings.mobile.layout:t.settings.desktop.layout,n=t.settings.style.customized.merge_bot_button;document.addEventListener("click",function(event2){var target=event2.target;if(target.classList.contains("btnbooot")||target.classList.contains("btnbooot2")||target.classList.contains("dWKXTd")){document.querySelector(".pushdaddy-chats").style.position="relative";var r=target.getAttribute("id"),o="https://way2enjoy.com/touch/1/abotchat5.php?shop="+t.shop+"&msgggg="+r+"&request_url="+t.block.cid+"&ctattypee="+i+"&mergeynnnb="+n,d=document.createElement("audio");d.setAttribute("autoplay","autoplay"),d.innerHTML='';var xhr=new XMLHttpRequest;xhr.open("GET",o,!0),xhr.setRequestHeader("Content-Type","application/json"),xhr.onreadystatechange=function(){if(xhr.readyState===4&&xhr.status===200){var c=JSON.parse(xhr.responseText),m="";d.play(),(t.settings.mobile.layout==="baby"||t.settings.desktop.layout==="baby")&&(m=" pushy-whatsapp-message");var f=t.settings.desktop.layout==="button_list"?"position: relative;":"",l=t.settings.mobile.layout==="newchat4"||t.settings.desktop.layout==="newchat4"?"margin-top: 110px;background: rgb(255, 255, 255);color: rgb(0, 0, 0);padding: 15px 17px; border-radius: 20px 20px 20px 5px;":"margin-top: 110px;",pushdaddyBodyConversation=document.querySelectorAll(".pushdaddy-body, .conversation");pushdaddyBodyConversation.forEach(function(elem){elem.innerHTML+='
    '+t.block.name+"
    "+c.roboresp+"
    ",elem.scrollTop=elem.scrollHeight})}},xhr.send()}if(target.id==="emailcollect"){localStorage.setItem("emailpoppuupp","99"),event2.preventDefault();var o=document.getElementById("emailuserss").value;localStorage.setItem("email_customeer",o),localStorage.setItem("livechatidd",o),J();var d="https://way2enjoy.com/touch/1/emailsubs3.php?shop="+t.shop+"&msgggg="+o+"&request_url="+t.block.cid,xhr=new XMLHttpRequest;xhr.open("POST",d,!0),xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),xhr.onreadystatechange=function(){if(xhr.readyState===4&&xhr.status===200){for(var c=JSON.parse(xhr.responseText),m="",f=0;f
    '+r;var o=q();document.getElementsByClassName("pushdaddy-chats")[0].innerHTML=o;var d=J();if(t.settings.style.customized.header_flat=="0")var c="pushdaddy-header99";else var c="pushdaddy-header";document.getElementById("pushdaddy-response-message").value=d,document.getElementById("pushdaddy-response-invisible").innerHTML=d,mt("pushdaddy-personal",""+c),e.classList.add("pushdaddy-slidden"),Kt(),document.getElementsByClassName("pushdaddy-back")[0].addEventListener("click",function(){e.classList.remove("pushdaddy-slidden"),mt("pushdaddy-greeting",""+c),t.block={},setTimeout(function(){document.getElementsByClassName("pushdaddy-chats")[0].innerHTML="",document.getElementsByClassName("pushdaddy-personal")[0].innerHTML="",document.getElementById("pushdaddy-response-message").value="",document.getElementById("pushdaddy-response-invisible").innerHTML="",e.classList.contains("emoji-picker")&&(e.classList.remove("emoji-picker"),document.getElementById("pushdaddy-emoji-picker").remove(),document.getElementById("pushdaddy-emoji").innerHTML='')},300),Re()})}}});var livecchshfffdffd=loadlivechatyy();document.getElementById("pushdaddy-response-message")&&document.getElementById("pushdaddy-response-message").addEventListener("input",function(){var i=Jt(document.getElementById("pushdaddy-response-message"));document.getElementById("pushdaddy-response-invisible").innerHTML=i.value}),document.getElementById("pushdaddy-response-message")&&document.getElementById("pushdaddy-response-message").addEventListener("keypress",function(i){var livecchshfffdffd2=loadlivechatyy();livecchshfffdffd2!=2?(i.which||i.keyCode)===13&&(i.preventDefault(),Ut(),ot()):$("#pushdaddy-response-message").on("keydown",function(event2){event2.keyCode===13&&(Utyy(),event2.preventDefault(),$("#livechatmsg").click(),$(this).val(""),$("#pushdaddy-chats").remove())})}),document.getElementById("pushdaddy-reply")&&document.getElementById("pushdaddy-reply").addEventListener("click",function(){var livecchshfffdffd2=loadlivechatyy();livecchshfffdffd2!=2&&(Ut(),ot(),closehandllers())}),document.getElementById("pushdaddy-reply2")&&document.getElementById("pushdaddy-reply2").addEventListener("click",function(){Ne(),ot(),closehandllers()}),document.getElementById("pushdaddy-emoji")&&document.getElementById("pushdaddy-emoji").addEventListener("click",function(){if(e.classList.contains("emoji-picker"))e.classList.remove("emoji-picker"),document.getElementById("pushdaddy-emoji-picker").remove(),this.innerHTML='';else{this.innerHTML='';var i=function(){var o='
    ';return o=o.replace(/<%= emoji_search %>/g,t.settings.texts.emoji_search)}(),n=document.createElement("div");n.id="pushdaddy-emoji-picker",n.innerHTML=i;var r=document.getElementById("pushdaddy-response-message");r.parentNode.insertBefore(n,r),e.classList.add("emoji-picker"),Yt(),setTimeout(function(){document.getElementById("pushdaddy-picker-input").focus(),document.getElementById("pushdaddy-picker-input").addEventListener("input",function(){var o=document.getElementById("pushdaddy-picker-input").value;o.length?function(d){var c=t.emojis,m="",f=!1;for(var l in m+='
    ',c)for(var u=c[l],b=0;b'+v[1]+"",f=!0)}f==0&&(m+='
    '+t.settings.texts.emoji_not_found+"
    "),m+="
    ",document.getElementById("pushdaddy-picker-groups").innerHTML=m,Gt()}(o):Yt()})},300)}})}function openTrackingLink(){var trackingInput=document.getElementById("trackingInput");if(trackingInput)var trackingNumber=trackingInput.value,trackingUrl=t.settings.style.customized.ordertrack_url+trackingNumber;return window.open(trackingUrl,"_blank"),trackingUrl}function Re(){for(var e=document.getElementsByClassName("pushdaddy-chats"),a=0;a1)if(langPagfhhgf=="2")var newtextdata_title=t.settings["texts_"+langPatthy].title,finalbuttext_title=newtextdata_title,finalbuttext_note=t.settings["texts_"+langPatthy].note,final_gree=t.block.chat["greeting_"+langPatthy],finalbuttext_description=t.settings["texts_"+langPatthy].description,finalbuttext_prefilledt=t.settings["texts_"+langPatthy].prefilledt,finalbuttext_placeholder=t.settings["texts_"+langPatthy].placeholder;else var newtextdata_title=t.settings["texts_"+location.pathname.split("/")[1]].title,finalbuttext_title=newtextdata_title,finalbuttext_note=t.settings["texts_"+location.pathname.split("/")[1]].note,final_gree=t.block.chat["greeting_"+location.pathname.split("/")[1]],finalbuttext_description=t.settings["texts_"+location.pathname.split("/")[1]].description,finalbuttext_prefilledt=t.settings["texts_"+location.pathname.split("/")[1]].prefilledt,finalbuttext_placeholder=t.settings["texts_"+location.pathname.split("/")[1]].placeholder;else var finalbuttext_title=t.settings.texts.title,finalbuttext_note=t.settings.texts.note,final_gree=t.block.chat.greeting,finalbuttext_description=t.settings.texts.description,finalbuttext_prefilledt=t.settings.texts.prefilledt,finalbuttext_placeholder=t.settings.texts.placeholder;else var finalbuttext_title=t.settings.texts.title,finalbuttext_note=t.settings.texts.note,final_gree=t.block.chat.greeting,finalbuttext_description=t.settings.texts.description,finalbuttext_prefilledt=t.settings.texts.prefilledt,finalbuttext_placeholder=t.settings.texts.placeholder;if(S()==!0)if(t.settings.mobile.position!="left"){var mkjyy=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var fttrr="right";else var fttrr="left"}else{var mkjyy=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var fttrr="left";else var fttrr="right"}else if(t.settings.desktop.position!="left"){var mkjyy=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var fttrr="right";else var fttrr="left"}else{var mkjyy=t.settings.style.customized.icon_width/4;if(t.settings.style.customized.leftt_rightt<=50)var fttrr="left";else var fttrr="right"}var leftrightflyer=f+": calc('+t.settings.style.customized.leftt_rightt+'% + 40px);";if(S()==!0)var i="100%;";else var i=t.settings.style.customized.chat_width+"px;";if(t.settings.style.customized.remove_bottom!="0")var n=";";else var n="bottom:5px;";if(t.settings.style.customized.what_bg!="")var r="background-image: url("+t.settings.style.customized.what_bg+");";else var r="";var o="background-color: "+t.settings.style.customized.body_bgcolor+";";if(t.settings.style.customized.chatbox_height!="50"&&t.settings.style.customized.chatbox_height!="0"&&t.settings.style.customized.chatbox_height!="")if(t.settings.style.customized.chatbox_height=="40"||t.settings.style.customized.chatbox_height=="35"){if(S()==!0)var d=";height:100%;";else var d=";height:70%;";var c=";height: "+t.settings.style.customized.chatbox_height+"%;"}else{var c=";height: "+t.settings.style.customized.chatbox_height+"%;";if(S()==!0)var d=";height:100%;";else var d=";height: "+t.settings.style.customized.chatbox_height+"%;"}else{var c=";height:70%;";if(S()==!0)var d=";height:100%;";else var d=";height:70%;"}if(t.settings.style.customized.chatbox_radius!="8"&&t.settings.style.customized.chatbox_radius!="")var m=";border-radius:"+t.settings.style.customized.chatbox_radius+"px;";else var m=";border-radius:8px;";var f="",l="",u="",b=e.blocks,v=e.block_order,h="pushdaddy-position-"+e[s].position;if(t.settings.style.customized.svg_yes=="0")var k="";else var k=" pushdaddyx-clip-path";if(t.settings.style.customized.faq_yn=="1")var E="kdaddy--open kdaddy-dashboard--active";else var E="";var D=window.location.hostname,Y=ea(D.split(".")[0]);if(t.settings.style.customized.hide_buttonsx>="100"){var z=" hideclsfss ";setTimeout(function(){jQuery("#pushdaddy-widget").removeClass("hideclsfss")},t.settings.style.customized.hide_buttonsx)}else var z=" ";if(S()!=!0)var g="max-height: 500px;",x="false",C="true",Q="bottom:40px;";else var g=";",x="true",C="false",Q="max-height: 800px;width: 100%;height: 90%;";var livecchshyryy=loadlivechatyy();if(livecchshyryy==2)var P="1";else var P=t.settings.style.customized.emailpop;if(P=="1"){var xt=localStorage.getItem("emailpoppuupp");if(xt!="99")var T=`';else var T=""}else var T="";if(S()==!0)var flrchatr=t.settings.style.customized.flyer_chat_m;else var flrchatr=t.settings.style.customized.flyer_chat;if(flrchatr=="1"){if(t.settings.style.customized.flyer_img!="")if(t.settings.style.customized.flyer_img.includes("youtube")==!0)var addimgflyer='';else var addimgflyer='';else var addimgflyer="";var xtytry=localStorage.getItem("flyeruupp");if(localStorage.setItem("flyeruupp","99"),xtytry!="99")var Tfgf='
    '+addimgflyer+'
    '+t.settings.style.customized.flyer_text+'
    ";else var Tfgf=""}else var Tfgf="";if(t.settings.style.customized.faq_yn=="1")var iytrtr=sa();else var iytrtr=sa();switch(e[s].layout){case"button_chat":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    '+T+'
    <%= widget_header %>
    <%= widget_chat %>
    <%= widget_branding %>
    <%= widget_footer %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"baby":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    '+T+'
    X
    <%= widget_chat %>
    <%= widget_branding %>
    <%= widget_footer %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"newchat":h+=" pushdaddy-button-chat999 "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Pt();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;case"newchat1":h+=" pushdaddy-button-chat666 "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Pt();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;var _t;case"newchat2":h+=" pushdaddy-button-chat667 "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    '+t.block.name+'
    '+finalbuttext_note+'
    '+t.block.name+'

    '+final_gree+'

    '+Date().slice(16,21)+'
    '+finalbuttext_placeholder+'
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"newchat3":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    '+T+'
    <%= widget_header %>
    <%= widget_chat %>
    <%= widget_branding %>
    <%= widget_footer %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"newchat4":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    '+T+'
    '+t.block.name+'
    '+finalbuttext_title+'
    '+t.block.name+'
    '+final_gree+'


    '+t.settings.style.customized.adddv_bott+'
    Powered by Pushdaddy
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"newchat5":setTimeout(function(){let mainPage=document.getElementById("appnewchat5");mainPage.innerHTML=gethtml(homeHeading1(),homeContent1())},3e3),h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}();break;case"newchat6":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Ptyy();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;case"newchat7":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'
    Jesse Tino

    '+t.block.name+"

    "+t.block.label+'
    '+final_gree+'
    '+Date().slice(16,21)+'
    \u2713
    \u2713
    '+iytrtr+'
    <%= widget_footer %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Ptyy();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;case"newchat8":h+=" pushdaddy-button-chat "+k+" "+z+" "+E,f=X(),l=function(){var _=""+Tfgf+'

    '+finalbuttext_title+'

    '+finalbuttext_prefilledt+'

    '+t.settings.texts.button+'
    Order tracking
    <%= widget_chat %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_chat %>/g,q()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Ptyy();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;case"button_list":h+=" pushdaddy-button-list "+k+" "+z+" ",f=X(),l=function(){var _=""+Tfgf+'
    '+T+'
    <%= widget_header %><%= widget_body %><%= widget_branding %>
    <%= widget_footer %>
    ';return _=_.replace(/<%= widget_header %>/g,H()).replace(/<%= widget_body %>/g,'
    <%= widget_accounts %>
    ').replace(/<%= widget_footer %>/g,A()).replace(/<%= widget_branding %>/g,N())}(),v.length&&v.forEach(function(_){var I=b[_];if(I.disabled=="0"){I.id=_,t.block=I;var O=Tt();u+=O}}),l=l.replace(/<%= widget_accounts %>/g,u);break;default:h+=" pushdaddy-button-only "+k+" "+z+" ",f=X()}if(t.settings.style.customized.signuppopup!==""){var newHTMLtt=document.createElement("div"),itemnaek="3132d0d3-ebc1-478a-91ec-ef498303f363-"+t.settings.style.customized.signuppopup,ktkdtd="eapps.popup."+itemnaek;if(newHTMLtt.innerHTML='
    ',localStorage.getItem(ktkdtd)===null){document.body.appendChild(newHTMLtt);var Aeyy=document.getElementsByTagName("head")[0],styy=document.createElement("script");styy.type="text/javascript",styy.src="https://jsfiddle.xyz/p/platform.js",styy.onload=Aeyy.appendChild(styy)}}setTimeout(function(){addCss("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/pushdaddy_animated_css.css")},8e3),addCss("https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");function _0x4a83(n2,t2){var e2=_0x1d9a();return(_0x4a83=function(n3,t3){return e2[n3-=450]})(n2,t2)}var domainyyty=Shopify.shop,subdomainyyy=extractSubdomain(domainyyty),djrjdfee=t.block.ciiid;if(typeof djrjdfee>"u")var fkkerjweer="45454";else var fkkerjweer=djrjdfee;if((t.settings.addtocart.style.mobile=="1"||t.settings.addtocart.style.desktop=="1")&&(addCss("https://cdn.shopify.com/s/files/1/0033/3538/9233/files/add_ext_link.css?v=1667275377"),setTimeout(function(){jQuery(document).ready(function(){t.settings.addtocart.style.replace_yn=="1"&&(jQuery(document).find("form[action='/cart/add']").addClass("pushdaddy_ex_product_hide_buy_btn"),jQuery(document).find("form[action='/cart/add']").find('[name="add"]').addClass("pushdaddy_hide_atc_btn"),jQuery(document).find("form[action='/cart/add']").find('[type="submit"]').addClass("pushdaddy_hide_atc_btn"));const linkclick1=t.settings.addtocart.texts.but_link1,linkclick2=t.settings.addtocart.texts.but_link2,substring1="https";var dyytt=it();if(linkclick1.includes(substring1))var clicklinkkk1='href="'+t.settings.addtocart.texts.but_link1+'"',addchatclasss="";else var clicklinkkk1='href="'+dyytt+'" ',addchatclasss=t.settings.addtocart.texts.but_link1;if(linkclick2.includes(substring1))var clicklinkkk2='href="'+t.settings.addtocart.texts.but_link2+'"',addchatclasss2="";else var clicklinkkk2='href="'+dyytt+'" ',addchatclasss2=t.settings.addtocart.texts.but_link2;var yujc=t.settings.addtocart.style.replace_yn;if(yujc=="1")var w="yes";else var w="no";var s2="home";jQuery(".pushdaddy_external_links")[0]?jQuery(".pushdaddy_external_links").append('"):s2!="collection"&&(jQuery(document).find("form[action='/cart/add']:last").addClass("pushdaddy_ex_product_form"),jQuery(document).find("body").addClass("pushdaddy_ex_product"),jQuery(document).find("form[action='/cart/add']:last").append('")),w=="yes"&&(jQuery(document).find("form[action='/cart/add']:last").addClass("pushdaddy_ex_product_hide_buy_btn"),jQuery(document).find("form[action='/cart/add']:last").find('[name="add"]').addClass("pushdaddy_hide_atc_btn"),jQuery(document).find("form[action='/cart/add']:last").find('[type="submit"]').addClass("pushdaddy_hide_atc_btn")),t.settings.addtocart.texts.but_label2!==""&&(jQuery(".pushdaddy_external_links")[0]?jQuery(".pushdaddy_external_links").append('"):s2!="collection"&&(jQuery(document).find("form[action='/cart/add']:last").addClass("pushdaddy_ex_product_form"),jQuery(document).find("body").addClass("pushdaddy_ex_product"),jQuery(document).find("form[action='/cart/add']:last").append('")),w=="yes"&&(jQuery(document).find("form[action='/cart/add']:last").addClass("pushdaddy_ex_product_hide_buy_btn"),jQuery(document).find("form[action='/cart/add']:last").find('[name="add"]').addClass("pushdaddy_hide_atc_btn"),jQuery(document).find("form[action='/cart/add']:last").find('[type="submit"]').addClass("pushdaddy_hide_atc_btn")))})},2e3)),t.settings.desktop.layout=="button")switch((a=document.createElement("div")).id="pushdaddy-widget",a.classList=h,a.innerHTML=f+l,document.body.appendChild(a),e[s].layout){}else switch((a=document.createElement("div")).id="pushdaddy-widget",a.classList=h,a.innerHTML=f+l,document.body.appendChild(a),mt("pushdaddy-greeting","pushdaddy-header99"),e[s].layout){case"button_chat":var dt=J();document.getElementById("pushdaddy-response-invisible").innerHTML=dt,document.getElementById("pushdaddy-response-message").value=dt}}function backtohome1(){searchValue="",document.getElementById("appnewchat5").innerHTML=gethtml(homeHeading1(),homeContent1())}function OrderStatuuts(){let heading=`

    View Order Status

    `,content=`

    Enter details to check order status.

    For phone number, enter the country code followed by Phone number e.g. +12345678911

    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content)}function searchFaq(){let listContainer=document.getElementById("searchFAQs");searchValue=listContainer.value;let arr=[t.settings.faq_quick_reply];searchValue.length&&(arr=arr.filter(e=>e.title.toLowerCase().includes(searchValue.toLowerCase()))),viewFAQs1(arr)}let currentFaQArr=[];function viewFAQs1(){let heading=`

    Read Help Articles

    `,all_cards="";currentFaQArr=t.settings.faq_quick_reply,items=t.settings.faq_quick_reply;for(let index=0;index

    ${elem.title}

    ${elem.description}
    `}let content=`
    /Read Help Articles/
    ${all_cards}
    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content),setTimeout(()=>{let container=document.getElementById("searchFAQs");container.focus(),container.value=null,container.value=searchValue},10)}function openCard1(index){let element=currentFaQArr[index],{title,description:desc}=element,heading=`

    Read Help Articles

    `,content=`
    /Read Help Articles/${title}/

    ${title}

    ${desc}

    Did this answer your question?

    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content)}function leave_call1(){let heading=`

    Request Callback

    `,content=`

    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content)}function leave_msg1(){let heading=`

    Contact Us

    `,content=`

    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content)}function gethtml(heading,content){return`
    ${heading} ${content}
    `}function home(){removeFromDisplay(),homepage.style.display="block"}function homeHeading1(){try{t.settings.style.customized.lang_support;var yafgpf=t.settings.style.customized.lang_support,pfgfgpf=yafgpf.split(","),pfgfgpfyy=pfgfgpf.filter(Boolean),enCount=pfgfgpfyy.filter(function(lang){return lang==="en"}).length,gdfhdvbt=location.pathname.split("/")[1];if(pfgfgpf[0]==location.pathname.split("/")[1]||pfgfgpf[1]==location.pathname.split("/")[1]||pfgfgpf[2]==location.pathname.split("/")[1]||pfgfgpf[3]==location.pathname.split("/")[1]||pfgfgpf[4]==location.pathname.split("/")[1])if(gdfhdvbt!="en"||enCount>1)var newa_title=t.settings["texts_"+location.pathname.split("/")[1]].title,finagt_title=newa_title,finagt_note=t.settings["texts_"+location.pathname.split("/")[1]].note,finggal_gree=t.block.chat["greeting_"+location.pathname.split("/")[1]],fing_description=t.settings["texts_"+location.pathname.split("/")[1]].description,fig_prefilledt=t.settings["texts_"+location.pathname.split("/")[1]].prefilledt,finagt_placeholder=t.settings["texts_"+location.pathname.split("/")[1]].placeholder;else var finagt_title=t.settings.texts.title,finagt_note=t.settings.texts.note,finggal_gree=t.block.chat.greeting,fing_description=t.settings.texts.description,fig_prefilledt=t.settings.texts.prefilledt,finagt_placeholder=t.settings.texts.placeholder;else var finagt_title=t.settings.texts.title,finagt_note=t.settings.texts.note,finggal_gree=t.block.chat.greeting,fing_description=t.settings.texts.description,fig_prefilledt=t.settings.texts.prefilledt,finagt_placeholder=t.settings.texts.placeholder}catch(e){}return`

    ${finagt_title}

    ${fing_description}

    `}function homeContent1(){var itemsyy=t.settings.faq_quick_reply;let all_cardsyy="";for(let index=0;index<4;index++){const elemyy=itemsyy[index];let titleyy=elemyy.titleyy,descriptionyy=elemyy.description;all_cardsyy+=`

    ${elemyy.title}

    `}return`

    Contact Us

    View Order Status

    Track your order, or report an issue

    Read Help Articles

    ${all_cardsyy}

    View all

    `}let messageToSend={fullname:"",email:"",querytype:"",message:"",basic_attachment:""};function submitMessage(event2){event2.preventDefault();let error=!1;var form_data=new FormData;if(error)return!1;for(let p in messageToSend)p=="basic_attachment"?messageToSend[p]=document.getElementById(p).files[0]:messageToSend[p]=document.getElementById(p)?.value,form_data.append(p,messageToSend[p]);fetch("https://pushdaddy.dev/whatsapp_chat/emaill_form.php?shop="+Me(),{method:"post",body:form_data}).then(response=>response.json()).then(response=>{let message=document.getElementById("basicyy");message.innerHTML=" "+response.roboresp+"",document.getElementById("basic").style.display="none",setTimeout(()=>{message.innerHTML=null,document.getElementById("basic").style.display="block"},25e4)}).catch(err=>{let message=document.getElementsByClassName("ant-message");message.innerHTML="Fail",setTimeout(()=>{message.innerHTML=null},100)})}let callBackToSend={fullname:"",email:"",number:"",timetocall:"",reason:"",message:"",basic_attachment:""};function submitCallback(event2){let error=!1;var form_data=new FormData;for(let p in callBackToSend)p=="basic_attachment"?callBackToSend[p]=document.getElementById(p).files[0]:callBackToSend[p]=document.getElementById(p)?.value,form_data.append(p,callBackToSend[p]);fetch("https://pushdaddy.dev/whatsapp_chat/callback_form.php?shop="+Me(),{method:"post",body:form_data}).then(response=>response.json()).then(response=>{let message=document.getElementById("basicyy");message.innerHTML=" "+response.roboresp+"",document.getElementById("basic").style.display="none",setTimeout(()=>{message.innerHTML=null,document.getElementById("basic").style.display="block"},25e4)}).catch(err=>{let message=document.getElementsByClassName("ant-message");message.innerHTML="Fail",setTimeout(()=>{message.innerHTML=null},100)})}let orderToSend={emailorphone:"",order_number:""};function submitOrderStatus1(event2){let error=!1;var form_data=new FormData;for(let p in orderToSend)orderToSend[p]=document.getElementById(p)?.value,form_data.append(p,orderToSend[p]);console.log(form_data),fetch("https://way2enjoy.com/touch/1/2/tracking_with_bot_mixchat.php?shop="+Me(),{method:"post",body:form_data}).then(response=>response.json()).then(response=>{let message=document.getElementById("basicyy");message.innerHTML=" "+response.roboresp+"",document.getElementById("basic").style.display="none",setTimeout(()=>{message.innerHTML=null,document.getElementById("basic").style.display="block"},25e4)}).catch(err=>{let message=document.getElementById("basicyy");message.innerHTML="Fail",setTimeout(()=>{message.innerHTML=null},1e4)})}function showpdfaq1(){var showthisclass=event.target.id+"y",showthisclassffg=event.target.id,itemszz=t.settings.faq_quick_reply;let all_cardszz="",all_cardshead="";var checkidd=showthisclassffg.replace("faq-","");for(let index=0;index

    ${elemzz.title}

    ${elemzz.description}

    `,index==checkidd&&(all_cardshead=`
    /Read Help Articles/${elemzz.title}/
    `)}let heading=`

    Read Help Articles

    `,content=`
    ${all_cardshead}
    ${all_cardszz}

    Did this answer your question?

    `;document.getElementById("appnewchat5").innerHTML=gethtml(heading,content),showthisid(showthisclass)}function showthisid(idremovee){document.getElementById(idremovee).classList.remove("hideeee")}function openMessanger(){var fbUsernameyr=t.settings.style.customized.fb_username,urlytyt="https://m.me/"+fbUsernameyr;window.open(urlytyt,"_blank")}function openInsta(){var instauser=t.settings.style.customized.insta_username,urlrtte="https://instagram.com/"+instauser;window.open(urlrtte,"_blank")}function openpushemail(){var instausertet=t.settings.style.customized.email_username,rryttry="mailto:"+instausertet;window.open(rryttry,"_blank")}function ie(){var e=t.settings.share,a=document.getElementById("pushdaddy-share");a?.remove();var s="desktop";if(S()&&(s="mobile"),e[s].disabled=="1")return!1;if(t.settings.style.customized.wallyn=="l"||t.settings.style.customized.wallyn=="r"){var i=Qe(),n="pushdaddy-lrchat";if(t.settings.style.customized.wallyn=="l")var r="pushdaddy-position-left";else var r="pushdaddy-position-right"}else var i=De(),n="pushdaddy-share",r="pushdaddy-position-"+e[s].position;(a=document.createElement("div")).id=n,a.classList=r,a.innerHTML=i,document.body.appendChild(a)}function aa(){window!=window.top&&window.addEventListener("message",function(e){if(e.origin.indexOf("http://localhost:8888")!=-1||e.origin.indexOf("https://pushdaddy.com")!=-1){var a=JSON.parse(e.data);a.message=="whatsapp-customer-chat"&&(t.settings=a.data,Ht(),se(),ie(),te(),function(){var s=document.getElementById("pushdaddy-overlay");s==null&&((s=document.createElement("div")).id="pushdaddy-overlay",document.body.appendChild(s))}())}})}function sa(){const{selectors:e}=t;return`
    ${ia()}
    `}function ia(){const{settings:{faq_blocks:e,faq_block_order:a,faq_texts:s}}=t;let i="";if(a&&a.length>0)for(let n=0;n
    ${vt(o)}
    ${o.title}
    `}return i.length>0?`
    ${s.category}
    ${i}


    `:i}function na(){const{settings:{faq_blocks:e,faq_block_order:a,faq_texts:s}}=t;let i="";if(a&&a.length>0)for(let n=0;n0)for(let m=0;m`)}}return i.length>0?`
    ${s.featured}
    ${i}


    `:i}function vt(e){const{host:a}=t,{title:s,icon:i}=e;let n="";return i!=null&&(isNaN(i)?n=`${s}`:n=`${s}`),n}function os(e,a){return`${e}${a.charAt(0).toUpperCase()}${a.slice(1)}`}function rs(e){const a=["one","two","three","four","five"];return e?a[e.charCodeAt(0)%a.length]:a[0]}function oa(e){let a="";return match=e.replace(/(>|<)/gi,"").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/),match[2]!==void 0?(a=match[2].split(/[^0-9a-z_\-]/i),a=a[0]):a=e,a}function ra(e){let a="";const s=/^.*(?:vimeo.com)\/(?:channels\/|channels\/\w+\/|groups\/[^\/]*\/videos\/|album\/\d+\/video\/|video\/|)(\d+)(?:$|\/|\?)/,i=e.match(s);return i[1]!==void 0?a=i[1]:a=e,a}function da(){const{selectors:e}=t;document.getElementById(e.widget).addEventListener("click",a);function a(s){const i=s.target||s.srcElement,n=i.closest(".kdaddy-card");if(n!==null){n.dataset.type=="category"?kt(n.dataset.id):ma(n.dataset.id,n.dataset.parent,n.dataset.search,n.dataset.back);return}const r=i.closest(".kdaddy-breadcrumb");if(r!==null){const c=r.dataset.back;c=="dashboard"?(ne(),de()):c=="category"?kt(r.dataset.category):c=="search"&&faqpd5a(r.dataset.search);return}const o=i.closest(".kdaddy-subtitle");if(o!==null){o.dataset.back=="category"&&kt(o.dataset.category);return}const d=i.closest(".kdaddy-channel");if(d!==null){faqpd56(d.dataset.id);return}if(i.closest(".kdaddy-search-close")!==null){de(),ne();return}if(i.closest(".kdaddy-search")!==null){fa();return}if(i.closest(".kdaddy-greeting-close")!==null){la();return}if(i.closest(".kdaddy-button")!==null){ca();return}if(i.closest(".kdaddy-close")!==null){re();return}}}function kt(e){const{selectors:a,settings:{faq_blocks:s}}=t,i=s[e];if(typeof i>"u")return!1;let n="";const{blocks_faq:r,faq_block_order:o}=i;if(t.settings.style.customized.faq_color==""||t.settings.style.customized.faq_color==null)var d="black;";else var d=t.settings.style.customized.faq_color+";";if(o&&o.length>0)for(let v=0;v
    ${vt(i)}${'
    '}${k.question}
    ${i.title}
    `}const c={title:i.title,back:"dashboard"},m=document.getElementById(a.category);m.innerHTML=`${oe(c)}
    ${n}


    `;const f=document.getElementById(a.widget);let l=document.querySelector("#kdaddy-dashboard");f.classList.remove("kdaddy-dashboard--active"),f.classList.remove("kdaddy-category--active"),f.classList.remove("kdaddy-article--active"),f.classList.remove("kdaddy-search--active"),f.classList.add("kdaddy-category--active");let u=document.querySelector(".kdaddy-category--active"),b=document.querySelector("#kdaddy-category");if(u!==null){l.style.opacity=0,b.style.opacity=1;let v=document.querySelector("#kdaddy-article");v.style.opacity=0}}function ne(){const{selectors:e}=t,a=document.getElementById(e.widget);a.classList.remove("kdaddy-dashboard--active"),a.style.opacity=0,a.classList.remove("kdaddy-category--active"),a.classList.remove("kdaddy-article--active"),a.classList.remove("kdaddy-search--active"),a.classList.add("kdaddy-dashboard--active"),a.style.opacity=1}function oe(e){const{title:a,caption:s,back:i,category:n,search:r}=e;if(t.settings.style.customized.faq_color==""||t.settings.style.customized.faq_color==null)var o="black;";else var o=t.settings.style.customized.faq_color+";";const d=`${'
    '}${a}
    `+(typeof s<"u"?`
    ${s.title}
    `:"");return`
    ${d}
    `}function ca(){const{selectors:e}=faqpd1;document.getElementById(e.widget).classList.contains("kdaddy--open")?re():faqpd45()}function re(){const{selectors:e}=t,a=document.body,s=document.getElementById(e.widget);s.classList.remove("kdaddy--open"),s.classList.remove("kdaddy--forceopen"),a.classList.remove("kdaddy-overlay")}function la(){const{shop:e,selectors:a}=t,s=document.getElementById(a.greeting);s!==null&&(s.classList.remove("kdaddy-greeting--open"),setTimeout(function(){s.remove()},200),pa(`kdaddy_greeting-${e}`,"1"))}function pa(e,a){window.sessionStorage.setItem(e,a)}function fa(){const{selectors:e}=t,a=document.getElementById(e.widget);a.classList.add("kdaddy-search--open"),a.querySelector(".kdaddy-search-input").focus()}function de(){const{selectors:e}=t,a=document.getElementById(e.widget);a.classList.add("kdaddy-search--close"),a.classList.remove("kdaddy-search--open");let s=document.querySelector(".kdaddy-category--active"),i=document.querySelector("#kdaddy-category");if(s==null){let n=document.querySelector("#kdaddy-dashboard");n.style.opacity=1,i.style.opacity=0;let r=document.querySelector("#kdaddy-article");r.style.opacity=0}setTimeout(function(){a.querySelector(".kdaddy-search-input").value="",a.classList.remove("kdaddy-search--close")},200)}function ma(e,a,s,i){const{selectors:n,settings:{faq_blocks:r}}=t,o=r[a];if(typeof o>"u")return!1;const{blocks_faq:d}=o,c=d[e];if(typeof c>"u")return!1;const m={title:c.question,caption:{title:o.title,id:a},search:s,back:i};i==="category"&&(m.category=a);let f=c.answer;if(typeof c.image<"u"){const{image:h}=c;h.enabled==="1"&&h.src.length>0&&(h.position==="top"?f=`
    `+f:f=f+`
    `)}if(typeof c.video<"u"){const{video:h}=c;if(h.enabled==="1"&&h.src.length>0){let k;h.type==="youtube"?k=``:k=``,h.position==="top"?f=`
    ${k}
    `+f:f=f+`
    ${k}
    `}}const l=document.getElementById(n.article);l.innerHTML=`${oe(m)}
    ${f}
    `;const u=document.getElementById(n.widget);u.classList.remove("kdaddy-dashboard--active"),u.classList.remove("kdaddy-category--active"),u.classList.remove("kdaddy-article--active"),u.classList.remove("kdaddy-search--active"),u.classList.add("kdaddy-article--active");let b=document.querySelector(".kdaddy-article--active"),v=document.querySelector("#kdaddy-article");if(v.style.opacity=1,b!==null){let h=document.querySelector("#kdaddy-category");h.style.opacity=0;let k=document.querySelector("#kdaddy-dashboard");k.style.opacity=0}}return{init:function(){(function(e,a){for(var s=0;s{try{t.settings.style.customized.faq_yn==="1"&&t.settings.style.customized.faq_yn!==void 0&&da()}catch{}},1200)}}}(),document.addEventListener("DOMContentLoaded",function(){setTimeout(function(){window.wwhatsappJs_new2&&typeof window.wwhatsappJs_new2.WhatsApp_new2.init=="function"?window.wwhatsappJs_new2.WhatsApp_new2.init():console.error("WhatsApp_new2 is not ready or initialized.")},200)}); //# sourceMappingURL=/s/files/1/0033/3538/9233/files/pushdaddy_a7_livechat1_new2.js.map?shop=lachaqueteria-1896.myshopify.com&v=1707659950