/*! For license information please see singleButtonRedirection.js.LICENSE.txt */ (()=>{"use strict";var t,e,r,n,o,i={8109:(t,e,r)=>{r.d(e,{Z:()=>C});var n=r(9748),o=(r(7473),r(3379)),i=r.n(o),a=r(7795),l=r.n(a),u=r(569),c=r.n(u),s=r(3565),f=r.n(s),d=r(9216),p=r.n(d),v=r(4589),h=r.n(v),y=r(8312),m={};m.styleTagTransform=h(),m.setAttributes=f(),m.insert=c().bind(null,"head"),m.domAPI=l(),m.insertStyleElement=p(),i()(y.Z,m);const b=y.Z&&y.Z.locals?y.Z.locals:void 0;var g=r(3467),A={};A.styleTagTransform=h(),A.setAttributes=f(),A.insert=c().bind(null,"head"),A.domAPI=l(),A.insertStyleElement=p(),i()(g.Z,A);const E=g.Z&&g.Z.locals?g.Z.locals:void 0;var L=r(8179),S=r(1149),w=r(7639);function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function N(t){for(var e=1;e t.length)&&(e=t.length);for(var r=0,n=new Array(e);r {r.d(e,{Z:()=>o});var n=r(9748);const o=function(t){var e,r,o;return n.default.createElement("svg",{width:null!==(e=t.height)&&void 0!==e?e:"40",height:null!==(r=t.height)&&void 0!==r?r:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.default.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M37.8791 2.1901C37.8679 2.17833 37.8566 2.16669 37.8451 2.15519C37.5521 1.86215 37.1771 1.70104 36.7939 1.67188C36.6897 1.66388 36.5844 1.66566 36.4795 1.67752C36.3442 1.69272 36.2103 1.72447 36.0813 1.77277L2.78272 13.4273C2.13772 13.653 1.69588 14.2496 1.66802 14.9324C1.64016 15.6152 2.03194 16.2459 2.6564 16.5234L17.0706 22.9297L23.4769 37.3439C23.7545 37.9684 24.3851 38.3602 25.0679 38.3323C25.7507 38.3045 26.3473 37.8626 26.5731 37.2176L38.2277 3.91874C38.2749 3.79236 38.3064 3.6614 38.3219 3.52893C38.379 3.0445 38.221 2.55253 37.8791 2.1901ZM30.3238 7.31949L7.85176 15.1847L17.9642 19.6791L30.3238 7.31949ZM20.3212 22.0361L32.6808 9.67651L24.8156 32.1486L20.3212 22.0361Z",fill:null!==(o=t.color)&&void 0!==o?o:"#fff"}))}},9145:(t,e,r)=>{r.d(e,{L:()=>n.Z});var n=r(8109)},3047:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(){o=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),l=new N(n||[]);return i(a,"_invoke",{value:S(t,r,l)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var p={};function v(){}function h(){}function y(){}var m={};s(m,l,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(_([])));g&&g!==e&&r.call(g,l)&&(m=g);var A=y.prototype=v.prototype=Object.create(m);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function o(i,a,l,u){var c=d(t[i],t,a);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,l,u)}),(function(t){o("throw",t,l,u)})):e.resolve(f).then((function(t){s.value=t,l(s)}),(function(t){return o("throw",t,l,u)}))}u(c.arg)}var a;i(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var l=w(a,r);if(l){if(l===p)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=d(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=d(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function U(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function N(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(U,this),this.reset(!0)}function _(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n =0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc <=this.prev){var l=r.call(i, "catchLoc"),u=r.call(i, "finallyLoc");if(l&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc <=this.prev&&r.call(o, "finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}function i(t,e,r,n,o,i,a){try{var l=t[i](a),u=l.value}catch(t){return void r(t)}l.done?e(u):Promise.resolve(u).then(n,o)}function a(t,e){for(var r=0;r h});var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n,l;return e=t,r=[{key:"sendWidgetEvent",value:(n=o().mark((function t(e,r,n,i){return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:fetch("".concat(r,"/publicApiFunctions-sendWidgetEvent"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({widgetId:n,event:e,eventProperties:i})}).then();case 1:case"end":return t.stop()}}),t)})),l=function(){var t=this,e=arguments;return new Promise((function(r,o){var a=n.apply(t,e);function l(t){i(a,r,o,l,u,"next",t)}function u(t){i(a,r,o,l,u,"throw",t)}l(void 0)}))},function(t,e,r,n){return l.apply(this,arguments)})}],r&&a(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e t.length)&&(e=t.length);for(var r=0,n=new Array(e);r {r.d(e,{M:()=>u});var n=r(1149);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,r){return(e=l(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r {r.d(e,{Z:()=>o});var n=r(9748);r(7473);const o=function(t){var e=document.createElement("div"),r=JSON.parse("{\"id\":\"JyuQaJq3ue0kHWUylsNb\",\"environment\":\"https://bikapi.bikayi.app/dm\",\"storeWidgetConfig\":{\"/*\":[{\"widgetId\":\"JyuQaJq3ue0kHWUylsNb\",\"fabPosition\":\"BOTTOM_RIGHT\"}]},\"countryCode\":\"IND\",\"widgetCustomisation\":{\"text\":\"Shop now\",\"iconColor\":\"#ffffff\",\"fabIconLink\":\"https://storage.googleapis.com/bik-widget-mfe/bap%2Ffab-assets%2Ficons%2Fbik%2Fwhatsapp.svg\",\"fabBackgroundColor\":\"#25D366\",\"fabMobileSize\":50,\"fabWebSize\":50,\"fabText\":\"\",\"fabPositioner\":{\"right\":\"30px\",\"bottom\":\"30px\"},\"whatsappMessage\":\"Hello ! I was browsing through your website and wanted to know more about your products\",\"fabPosition\":\"BOTTOM_RIGHT\",\"widgetName\":\"Whatsapp redirection Widget\",\"whatsapp\":\"919990085544\",\"previewLanguage\":\"en\"},\"visibility\":{\"visiblePages\":[\"/*\"]},\"leadGeneration\":{\"trackingCode\":\"#d7b7cc\",\"chatUrl\":\"https://api.whatsapp.com/send?phone=919990085544&text=Hello%20!%20I%20was%20browsing%20through%20your%20website%20and%20wanted%20to%20know%20more%20about%20your%20products%0AInquiry%20id%20%3A%20%23d7b7cc%20\",\"skipTracking\":false,\"appendSourceUrl\":true,\"chatFlowId\":\"\"},\"updatedAt\":1764156116,\"info\":{\"delete\":false,\"scriptPath\":\"bap/widget-single-button-redirection/singleButtonRedirection.js\",\"infra\":\"2.0\",\"storeId\":\"x4s6k6bQdUQuuuS1oCE1Uf2HtxY2\",\"templateId\":\"1ocTg6N2ARGZTN00EgCd\",\"widgetTypeId\":\"UXq0MWMp765My76Fk7p5\",\"templateName\":\"Whatsapp redirection\",\"id\":\"JyuQaJq3ue0kHWUylsNb\",\"status\":\"LIVE\",\"liveSince\":\"26/11/2025\"}}");e.id="bik-widget-wrapper-".concat(r.id),e.className="bik-widget__outer-wrapper",document.body.appendChild(e);var o=document.getElementById("bik-widget-wrapper-".concat(r.id));n.default.render(n.default.createElement(t,r),o)}},2354:(t,e,r)=>{var n,o;r.d(e,{G:()=>n,W:()=>o}),function(t){t.BIK_VISITOR="bikvisitor",t.STORY_VIEWED="storeviewed",t.COLLECTION_VIEWED="collectionviewed"}(n||(n={})),function(t){t.WIDGET_VISITED="WIDGET_VISITED",t.COLLECTION_VIEWED="COLLECTION_VIEWED",t.STORY_VIEWED="STORY_VIEWED"}(o||(o={}))},5712:(t,e,r)=>{function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e s}),function(t){t.BOTTOM_LEFT="BOTTOM_LEFT",t.BOTTOM_RIGHT="BOTTOM_RIGHT",t.CENTER_LEFT="CENTER_LEFT",t.CENTER_RIGHT="CENTER_RIGHT",t.POP_UP="POP_UP"}(c||(c={}));var s=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r;return e=t,(r=[{key:"isValidUrl",value:function(t){return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(t)}},{key:"isHomePage",value:function(t){return!!t.match(/^\/(\?.*)?$/)}},{key:"showWidget",value:function(t,e){var r=this;try{var o=function(){var o,a;if(!e&&function(){try{return window.self!==window.top}catch(t){return!0}}())return{v:!1};var l={};Object.keys(t.customUrls).forEach((function(e){if(r.isValidUrl(e)){var n=new URL(e),o=n.href.replace(n.origin,"");l[o]=t.customUrls[e]}else l[e]=t.customUrls[e]}));var u=i(i({},t),{},{customUrls:l}),c=null!==(o=u.customUrls["/"])&&void 0!==o?o:[];if(c.length&&c.filter((function(e){return e.widgetId==t.currentWidgetId})).length){if("/"==u.currentUrl)return{v:!0};if("/"==new URL("https://bik.ai"+u.currentUrl).pathname)return{v:!0}}var s=null!==(a=u.customUrls["/*"])&&void 0!==a?a:[];if(s.length){var f=s.filter((function(e){return e.widgetId==t.currentWidgetId}));if(f.length){var d=function(){for(var t=f[0].fabPosition,e=Object.keys(u.customUrls).filter((function(t){return"/*"!==t})),r=[],n=0;n l||(o==l?(null==i?void 0:i.path)==(null==n?void 0:n.path)&&u.push(n):null!=n&&n.query.length||null!=i&&i.path.includes(null==n?void 0:n.path)&&i.count>c.count&&(c=n))}))})),u.length)if(i&&i.query.length){var s=0,f=new Map;i.query.forEach((function(t){f.set(t,1)})),u.forEach((function(t){var e=0;t.query.forEach((function(t){f.has(t)&&e++}));var r=i?e/(t.query.length+i.query.length)*100:0;s {var n=r(9748),o=r(9145),i=r(7999),a=r(9247),l=r(5712),u=r(3047),c=r(2354);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e t.length)&&(e=t.length);for(var r=0,n=new Array(e);r {r.d(e,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([t.id,"@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap);"]),a.push([t.id,".HUdtpCK4{align-items:center;background:none;border-radius:25px;bottom:30px;display:flex;height:50px;justify-content:center;position:absolute;right:30px;width:50px}.J_TaX9bO{color:#fff;font-family:Inter;font-size:12px;font-weight:500;line-height:16px;margin:0 0 0 8px!important}.gH8IZC0G svg{margin:unset!important;padding:unset!important}",""]),a.locals={container:"HUdtpCK4",fabText:"J_TaX9bO",bikFabWrapper:"gH8IZC0G"};const l=a},3467:(t,e,r)=>{r.d(e,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([t.id,"@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700&display=swap);"]),a.push([t.id,".XVk4P4ha{align-items:center;background:none;border-radius:35px;bottom:30px;box-shadow:none!important;display:flex;height:70px;justify-content:center;margin:unset!important;min-width:unset!important;padding:unset!important;position:fixed;right:30px;width:70px;z-index:2147483646}.s3rzzL1D{color:#fff;font-family:Inter;font-size:12px;font-weight:500;line-height:16px;margin:0 0 0 8px!important}.DoqUJb3T svg{margin:unset!important;padding:unset!important;fill:none!important;stroke:none!important;height:unset!important;width:unset!important}",""]),a.locals={container:"XVk4P4ha",fabText:"s3rzzL1D",bikFabWrapper:"DoqUJb3T"};const l=a},6945:(t,e,r)=>{r.d(e,{Z:()=>l});var n=r(8081),o=r.n(n),i=r(3645),a=r.n(i)()(o());a.push([t.id,".cO2CREc6 p{box-sizing:border-box;color:unset;margin:0;padding:0}.cO2CREc6 strong,b{font-weight:600}",""]),a.locals={"bik-widget__outer-wrapper":"cO2CREc6"};const l=a},7473:(t,e,r)=>{var n=r(3379),o=r.n(n),i=r(7795),a=r.n(i),l=r(569),u=r.n(l),c=r(3565),s=r.n(c),f=r(9216),d=r.n(f),p=r(4589),v=r.n(p),h=r(6945),y={};y.styleTagTransform=v(),y.setAttributes=s(),y.insert=u().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),o()(h.Z,y),h.Z&&h.Z.locals&&h.Z.locals}},a={};function l(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,exports:{}};return i[t].call(r.exports,r,r.exports,l),r.exports}l.m=i,l.amdO={},t=[],l.O=(e,r,n,o)=>{if(!r){var i=1/0;for(s=0;s =o)&&Object.keys(l.O).every((t=>l.O[t](r[u])))?r.splice(u--,1):(a=!1,o 0&&t[s-1][2]>o;s--)t[s]=t[s-1];t[s]=[r,n,o]},l.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return l.d(e,{a:e}),e},r=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,l.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);l.r(o);var i={};e=e||[null,r({}),r([]),r(r)];for(var a=2&n&&t;"object"==typeof a&&!~e.indexOf(a);a=r(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>t[e]));return i.default=()=>t,l.d(o,i),o},l.d=(t,e)=>{for(var r in e)l.o(e,r)&&!l.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},l.f={},l.e=t=>Promise.all(Object.keys(l.f).reduce(((e,r)=>(l.f[r](t,e),e)),[])),l.u=t=>"chunks/"+t+".c2c34aa7161a03987853.js",l.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},o="preact-webpack:",l.l=(t,e,r,i)=>{if(n[t])n[t].push(e);else{var a,u;if(void 0!==r)for(var c=document.getElementsByTagName("script"),s=0;s {a.onerror=a.onload=null,clearTimeout(p);var o=n[t];if(delete n[t],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((t=>t(r))),e)return e(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),u&&document.head.appendChild(a)}},l.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},l.j="singleButtonRedirection",l.p="https://bikapi.bikayi.app/assets/bap/",(()=>{var t={singleButtonRedirection:0,src_widgets_SingleButtonRedirection_index_tsx:0,"src_utilities_cookie_ts-src_utilities_variables_ts":0};l.f.j=(e,r)=>{var n=l.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=t[e]=[r,o]));r.push(n[2]=o);var i=l.p+l.u(e),a=new Error;l.l(i,(r=>{if(l.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,n[1](a)}}),"chunk-"+e,e)}},l.O.j=e=>0===t[e];var e=(e,r)=>{var n,o,[i,a,u]=r,c=0;if(i.some((e=>0!==t[e]))){for(n in a)l.o(a,n)&&(l.m[n]=a[n]);if(u)var s=u(l)}for(e&&e(r);c l(5873)));u=l.O(u)})(); //# sourceMappingURL=https://bik-assets.storage.googleapis.com/bap/source-map/singleButtonRedirection.js.map