1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71089,e=>{e.v({active:"hero-module__nQTxnW__active",bottomLine:"hero-module__nQTxnW__bottomLine",button:"hero-module__nQTxnW__button",buttonText:"hero-module__nQTxnW__buttonText",buttons:"hero-module__nQTxnW__buttons",chatInputContainer:"hero-module__nQTxnW__chatInputContainer",chatInputTitle:"hero-module__nQTxnW__chatInputTitle",container:"hero-module__nQTxnW__container",content:"hero-module__nQTxnW__content",description:"hero-module__nQTxnW__description",descriptionText:"hero-module__nQTxnW__descriptionText",descriptionTextHighlight:"hero-module__nQTxnW__descriptionTextHighlight",divider:"hero-module__nQTxnW__divider",extraContent:"hero-module__nQTxnW__extraContent",extraContentItem:"hero-module__nQTxnW__extraContentItem",extraContentItemText:"hero-module__nQTxnW__extraContentItemText",header:"hero-module__nQTxnW__header",middleLine:"hero-module__nQTxnW__middleLine",rotateGradient:"hero-module__nQTxnW__rotateGradient",secondaryButtonText:"hero-module__nQTxnW__secondaryButtonText",staticText:"hero-module__nQTxnW__staticText",subDescription:"hero-module__nQTxnW__subDescription",textItem:"hero-module__nQTxnW__textItem",topLine:"hero-module__nQTxnW__topLine",videoContainer:"hero-module__nQTxnW__videoContainer"})},15504,e=>{e.v({chatContent:"chatModal-module__HJjMWW__chatContent",chatMessages:"chatModal-module__HJjMWW__chatMessages",closeButton:"chatModal-module__HJjMWW__closeButton",closeIcon:"chatModal-module__HJjMWW__closeIcon",content:"chatModal-module__HJjMWW__content",header:"chatModal-module__HJjMWW__header",input:"chatModal-module__HJjMWW__input",inputActions:"chatModal-module__HJjMWW__inputActions",inputBox:"chatModal-module__HJjMWW__inputBox",inputBoxActive:"chatModal-module__HJjMWW__inputBoxActive",inputBoxCollapsed:"chatModal-module__HJjMWW__inputBoxCollapsed",messageBot:"chatModal-module__HJjMWW__messageBot",messageSuggested:"chatModal-module__HJjMWW__messageSuggested",messageText:"chatModal-module__HJjMWW__messageText",messageUser:"chatModal-module__HJjMWW__messageUser",modal:"chatModal-module__HJjMWW__modal",overlay:"chatModal-module__HJjMWW__overlay",productCard:"chatModal-module__HJjMWW__productCard",productContent:"chatModal-module__HJjMWW__productContent",productHeader:"chatModal-module__HJjMWW__productHeader",productHeaderBackButton:"chatModal-module__HJjMWW__productHeaderBackButton",productHeaderContent:"chatModal-module__HJjMWW__productHeaderContent",productHeaderSubTitle:"chatModal-module__HJjMWW__productHeaderSubTitle",questionPrompt:"chatModal-module__HJjMWW__questionPrompt",questionSection:"chatModal-module__HJjMWW__questionSection",screenWrapper:"chatModal-module__HJjMWW__screenWrapper",screensContainer:"chatModal-module__HJjMWW__screensContainer",sendButton:"chatModal-module__HJjMWW__sendButton",sendButtonAbsolute:"chatModal-module__HJjMWW__sendButtonAbsolute",sendButtonActive:"chatModal-module__HJjMWW__sendButtonActive",sendIcon:"chatModal-module__HJjMWW__sendIcon",sendIconActive:"chatModal-module__HJjMWW__sendIconActive",subtitle:"chatModal-module__HJjMWW__subtitle",suggestionCard:"chatModal-module__HJjMWW__suggestionCard",suggestionCards:"chatModal-module__HJjMWW__suggestionCards",suggestionPill:"chatModal-module__HJjMWW__suggestionPill",suggestionText:"chatModal-module__HJjMWW__suggestionText",title:"chatModal-module__HJjMWW__title",typing:"chatModal-module__HJjMWW__typing",typingIndicator:"chatModal-module__HJjMWW__typingIndicator",welcomeContent:"chatModal-module__HJjMWW__welcomeContent",welcomeScreenContainer:"chatModal-module__HJjMWW__welcomeScreenContainer"})},16154,e=>{e.v({chatContent:"welcome-module__R1_umG__chatContent",chatMessages:"welcome-module__R1_umG__chatMessages",closeButton:"welcome-module__R1_umG__closeButton",closeIcon:"welcome-module__R1_umG__closeIcon",content:"welcome-module__R1_umG__content",errorMessageIcon:"welcome-module__R1_umG__errorMessageIcon",header:"welcome-module__R1_umG__header",hintText:"welcome-module__R1_umG__hintText",messageBot:"welcome-module__R1_umG__messageBot",messageContainer:"welcome-module__R1_umG__messageContainer",messageSuggested:"welcome-module__R1_umG__messageSuggested",messageText:"welcome-module__R1_umG__messageText",messageUser:"welcome-module__R1_umG__messageUser",modal:"welcome-module__R1_umG__modal",overlay:"welcome-module__R1_umG__overlay",productCard:"welcome-module__R1_umG__productCard",productC
1ontent:"welcome-module__R1_umG__productContent",productHeader:"welcome-module__R1_umG__productHeader",productHeaderBackButton:"welcome-module__R1_umG__productHeaderBackButton",productHeaderContent:"welcome-module__R1_umG__productHeaderContent",productHeaderSubTitle:"welcome-module__R1_umG__productHeaderSubTitle",questionPrompt:"welcome-module__R1_umG__questionPrompt",questionSection:"welcome-module__R1_umG__questionSection",screenWrapper:"welcome-module__R1_umG__screenWrapper",screensContainer:"welcome-module__R1_umG__screensContainer",subtitle:"welcome-module__R1_umG__subtitle",successMessageIcon:"welcome-module__R1_umG__successMessageIcon",suggestionCard:"welcome-module__R1_umG__suggestionCard",suggestionCards:"welcome-module__R1_umG__suggestionCards",suggestionPill:"welcome-module__R1_umG__suggestionPill",suggestionText:"welcome-module__R1_umG__suggestionText",title:"welcome-module__R1_umG__title",typing:"welcome-module__R1_umG__typing",typingIndicator:"welcome-module__R1_umG__typingIndicator",welcomeScreenContainer:"welcome-module__R1_umG__welcomeScreenContainer"})},20760,e=>{e.v({changeProductButton:"productCard-module__nDkZLW__changeProductButton",changeProductButtonIcon:"productCard-module__nDkZLW__changeProductButtonIcon",changeProductButtonText:"productCard-module__nDkZLW__changeProductButtonText",isChangeButtonAsIcon:"productCard-module__nDkZLW__isChangeButtonAsIcon",large:"productCard-module__nDkZLW__large",productBrand:"productCard-module__nDkZLW__productBrand",productCard:"productCard-module__nDkZLW__productCard",productCardContainer:"productCard-module__nDkZLW__productCardContainer",productDemo:"productCard-module__nDkZLW__productDemo",productImage:"productCard-module__nDkZLW__productImage",productImageWrapper:"productCard-module__nDkZLW__productImageWrapper",productInfo:"productCard-module__nDkZLW__productInfo",productName:"productCard-module__nDkZLW__productName",productRetailerLogo:"productCard-module__nDkZLW__productRetailerLogo",productRetailerLogoBottom:"productCard-module__nDkZLW__productRetailerLogoBottom",selectedProduct:"productCard-module__nDkZLW__selectedProduct"})},73958,e=>{e.v({shimmer:"Skeleton-module__EOrx7a__shimmer",skeleton:"Skeleton-module__EOrx7a__skeleton",skeletonButton:"Skeleton-module__EOrx7a__skeletonButton",skeletonContent:"Skeleton-module__EOrx7a__skeletonContent",skeletonImage:"Skeleton-module__EOrx7a__skeletonImage",skeletonText:"Skeleton-module__EOrx7a__skeletonText"})},29531,e=>{e.v({addAttributesButton:"ChatQuestionInput-module__yoQ3Ia__addAttributesButton",input:"ChatQuestionInput-module__yoQ3Ia__input",inputBox:"ChatQuestionInput-module__yoQ3Ia__inputBox",inputBoxAnimationOff:"ChatQuestionInput-module__yoQ3Ia__inputBoxAnimationOff",inputBoxBorderOff:"ChatQuestionInput-module__yoQ3Ia__inputBoxBorderOff",inputBoxCollapsed:"ChatQuestionInput-module__yoQ3Ia__inputBoxCollapsed",inputBoxWrapper:"ChatQuestionInput-module__yoQ3Ia__inputBoxWrapper",inputShimmer:"ChatQuestionInput-module__yoQ3Ia__inputShimmer",inputShimmerOverlay:"ChatQuestionInput-module__yoQ3Ia__inputShimmerOverlay",rotateGradient:"ChatQuestionInput-module__yoQ3Ia__rotateGradient",sendButton:"ChatQuestionInput-module__yoQ3Ia__sendButton",sendButtonAbsolute:"ChatQuestionInput-module__yoQ3Ia__sendButtonAbsolute",sendButtonActive:"ChatQuestionInput-module__yoQ3Ia__sendButtonActive",sendButtonCollapsed:"ChatQuestionInput-module__yoQ3Ia__sendButtonCollapsed",sendButtonExpanded:"ChatQuestionInput-module__yoQ3Ia__sendButtonExpanded",sendIcon:"ChatQuestionInput-module__yoQ3Ia__sendIcon",sendIconActive:"ChatQuestionInput-module__yoQ3Ia__sendIconActive"})},8178,e=>{e.v({bottom:"tooltip-module__kWrT7G__bottom",content:"tooltip-module__kWrT7G__content",left:"tooltip-module__kWrT7G__left",portalContent:"tooltip-module__kWrT7G__portalContent",right:"tooltip-module__kWrT7G__right",top:"tooltip-module__kWrT7G__top",wrap:"tooltip-module__kWrT7G__wrap"})},97059,e=>{e.v({addAttributes:"chat-module__UYAv6q__addAttributes",addAttributesContainer:"chat-module__UYAv6q__addAttributesContainer",addAttributesDescription:"chat-module__UYAv6q__addAttributesDescription",addAttributesHeader:"chat-module__UYAv6q__addAttributesHeader",addAttributesHeaderCloseButton:"chat-module__UYAv6q__addAttributesHeaderCloseButton",addAttributesHeaderCloseButtonHidden:"chat-module__UYAv6q__addAttributesHeaderCloseButtonHidden",addAttributesSuggestion:"chat-module__UYAv6q__addAttributesSuggestion",addAttributesSuggestions:"chat-module__UYAv6q__addAttributesSuggestions",addAttributesTitle:"chat-module__UYAv6q__addAttributesTitle",aiChatIcon:"chat-module__UYAv6q__aiChatIcon",aiChatIconText:"chat-module__UYAv6q__aiChatIconText",backButton:"chat-module__UYAv6q__backButton",backButtonTooltip:"chat-module__UYAv6q__backButtonTooltip",backButtonWrap:"chat-module__UYAv6q__backButtonWrap",chatContainer:"chat-module__UYAv6q__chatContainer",chatContent:"chat-module__UYAv6q__chatContent",chatMessages:"chat-module__UYAv6q__chatMessages",closeButton:"chat-module__UYAv6q__closeButton",closeIcon:"chat-module__UYAv6q__closeIcon",content:"chat-module__UYAv6q__content",errorContainer:"chat-module__UYAv6q__errorContainer",header:"chat-module__UYAv6q__header",headerContent:"chat-module__UYAv6q__headerContent",hintText:"chat-module__UYAv6q__hintText",inlineErrorContent:"chat-module__UYAv6q__inlineErrorContent",inlineErrorIcon:"chat-module__UYAv6q__inlineErrorIcon",inline
1ErrorRetryButton:"chat-module__UYAv6q__inlineErrorRetryButton",inlineErrorRetryIcon:"chat-module__UYAv6q__inlineErrorRetryIcon",inlineErrorRow:"chat-module__UYAv6q__inlineErrorRow",input:"chat-module__UYAv6q__input",inputActions:"chat-module__UYAv6q__inputActions",inputBox:"chat-module__UYAv6q__inputBox",inputBoxActive:"chat-module__UYAv6q__inputBoxActive",inputBoxCollapsed:"chat-module__UYAv6q__inputBoxCollapsed",inputBoxWrapper:"chat-module__UYAv6q__inputBoxWrapper",messageBot:"chat-module__UYAv6q__messageBot",messageBotAddAttributes:"chat-module__UYAv6q__messageBotAddAttributes",messageBotAddAttributesSuggestion:"chat-module__UYAv6q__messageBotAddAttributesSuggestion",messageBotColumn:"chat-module__UYAv6q__messageBotColumn",messageBotContainer:"chat-module__UYAv6q__messageBotContainer",messageBotRow:"chat-module__UYAv6q__messageBotRow",messageSuggested:"chat-module__UYAv6q__messageSuggested",messageSuggestedContainer:"chat-module__UYAv6q__messageSuggestedContainer",messageText:"chat-module__UYAv6q__messageText",messageUser:"chat-module__UYAv6q__messageUser",messageUserContainer:"chat-module__UYAv6q__messageUserContainer",messageUserContainerColumn:"chat-module__UYAv6q__messageUserContainerColumn",messageWrapper:"chat-module__UYAv6q__messageWrapper",modal:"chat-module__UYAv6q__modal",overlay:"chat-module__UYAv6q__overlay",productCard:"chat-module__UYAv6q__productCard",productContent:"chat-module__UYAv6q__productC
1ontent",productHeader:"chat-module__UYAv6q__productHeader",productHeaderBackButton:"chat-module__UYAv6q__productHeaderBackButton",productHeaderContent:"chat-module__UYAv6q__productHeaderContent",productHeaderSubTitle:"chat-module__UYAv6q__productHeaderSubTitle",questionSection:"chat-module__UYAv6q__questionSection",reachLimitText:"chat-module__UYAv6q__reachLimitText",screenWrapper:"chat-module__UYAv6q__screenWrapper",screensContainer:"chat-module__UYAv6q__screensContainer",sendButton:"chat-module__UYAv6q__sendButton",sendButtonAbsolute:"chat-module__UYAv6q__sendButtonAbsolute",sendButtonActive:"chat-module__UYAv6q__sendButtonActive",sendIcon:"chat-module__UYAv6q__sendIcon",sendIconActive:"chat-module__UYAv6q__sendIconActive",subtitle:"chat-module__UYAv6q__subtitle",suggestionCard:"chat-module__UYAv6q__suggestionCard",suggestionCards:"chat-module__UYAv6q__suggestionCards",suggestionPill:"chat-module__UYAv6q__suggestionPill",suggestionText:"chat-module__UYAv6q__suggestionText",title:"chat-module__UYAv6q__title",tryForFreeAddProduct:"chat-module__UYAv6q__tryForFreeAddProduct",tryForFreeAddProductButton:"chat-module__UYAv6q__tryForFreeAddProductButton",tryForFreeAddProductContainer:"chat-module__UYAv6q__tryForFreeAddProductContainer",tryForFreeAddProductMobile:"chat-module__UYAv6q__tryForFreeAddProductMobile",tryForFreeAddProductText:"chat-module__UYAv6q__tryForFreeAddProductText",tryForFreeButtonText:"chat-module__UYAv6q__tryForFreeButtonText",tryForFreeContainer:"chat-module__UYAv6q__tryForFreeContainer",tryForFreeContent:"chat-module__UYAv6q__tryForFreeContent",tryForFreeDescription:"chat-module__UYAv6q__tryForFreeDescription",tryForFreeHeader:"chat-module__UYAv6q__tryForFreeHeader",tryForFreeSection:"chat-module__UYAv6q__tryForFreeSection",tryForFreeTitle:"chat-module__UYAv6q__tryForFreeTitle",typingIndicator:"chat-module__UYAv6q__typingIndicator",typingShimmer:"chat-module__UYAv6q__typingShimmer",typingText:"chat-module__UYAv6q__typingText",yourProductInput:"chat-module__UYAv6q__yourProductInput",yourProductInputButton:"chat-module__UYAv6q__yourProductInputButton",yourProductInputContainer:"chat-module__UYAv6q__yourProductInputContainer"})},94214,e=>{e.v({addYourProduct:"addProductCard-module__dDIjeW__addYourProduct",addYourProductContainer:"addProductCard-module__dDIjeW__addYourProductContainer",addYourProductDescription:"addProductCard-module__dDIjeW__addYourProductDescription",addYourProductError:"addProductCard-module__dDIjeW__addYourProductError",addYourProductHeader:"addProductCard-module__dDIjeW__addYourProductHeader",addYourProductInput:"addProductCard-module__dDIjeW__addYourProductInput",addYourProductInputButton:"addProductCard-module__dDIjeW__addYourProductInputButton",addYourProductInputContainer:"addProductCard-module__dDIjeW__addYourProductInputContainer",addYourProductInputError:"addProductCard-module__dDIjeW__addYourProductInputError",addYourProductInputWrapper:"addProductCard-module__dDIjeW__addYourProductInputWrapper",addYourProductSuggestion:"addProductCard-module__dDIjeW__addYourProductSuggestion",addYourProductSuggestions:"addProductCard-module__dDIjeW__addYourProductSuggestions",addYourProductTitle:"addProductCard-module__dDIjeW__addYourProductTitle",addYourProductTitleClose:"addProductCard-module__dDIjeW__addYourProductTitleClose",addYourProductTitleText:"addProductCard-module__dDIjeW__addYourProductTitleText",aiChatIcon:"addProductCard-module__dDIjeW__aiChatIcon",aiChatIconText:"addProductCard-module__dDIjeW__aiChatIconText",infoIcon:"addProductCard-module__dDIjeW__infoIcon",infoTooltipContent:"addProductCard-module__dDIjeW__infoTooltipContent",infoTooltipWrap:"addProductCard-module__dDIjeW__infoTooltipWrap",infoTooltipWrapContainer:"addProductCard-module__dDIjeW__infoTooltipWrapContainer",tooltipContent:"addProductCard-module__dDIjeW__tooltipContent",tooltipContentBody:"addProductCard-module__dDIjeW__tooltipContentBody",tooltipContentTitle:"addProductCard-module__dDIjeW__tooltipContentTitle"})},86900,e=>{e.v({applyButton:"productList-module__ZD0XSW__applyButton",applyButtonContainer:"productList-module__ZD0XSW__applyButtonContainer",container:"productList-module__ZD0XSW__container",content:"productList-module__ZD0XSW__content",demoProductsTitle:"productList-module__ZD0XSW__demoProductsTitle",productC
1ontent:"productList-module__ZD0XSW__productContent",productHeader:"productList-module__ZD0XSW__productHeader",productHeaderBackButton:"productList-module__ZD0XSW__productHeaderBackButton",productHeaderBackButtonIcon:"productList-module__ZD0XSW__productHeaderBackButtonIcon",productHeaderBackButtonIconMobile:"productList-module__ZD0XSW__productHeaderBackButtonIconMobile",productHeaderContent:"productList-module__ZD0XSW__productHeaderContent",productHeaderSubTitle:"productList-module__ZD0XSW__productHeaderSubTitle",productsContainer:"productList-module__ZD0XSW__productsContainer",subtitle:"productList-module__ZD0XSW__subtitle",title:"productList-module__ZD0XSW__title",yourProductContainer:"productList-module__ZD0XSW__yourProductContainer",yourProductInput:"productList-module__ZD0XSW__yourProductInput",yourProductInputButton:"productList-module__ZD0XSW__yourProductInputButton",yourProductInputContainer:"productList-module__ZD0XSW__yourProductInputContainer",yourProductTitle:"productList-module__ZD0XSW__yourProductTitle"})},66763,e=>{e.v({content:"addProductStepByStep-module__Tx4eWW__content",errorText:"addProductStepByStep-module__Tx4eWW__errorText",header:"addProductStepByStep-module__Tx4eWW__header",headerContent:"addProductStepByStep-module__Tx4eWW__headerContent",hintText:"addProductStepByStep-module__Tx4eWW__hintText",input:"addProductStepByStep-module__Tx4eWW__input",inputActions:"addProductStepByStep-module__Tx4eWW__inputActions",inputBox:"addProductStepByStep-module__Tx4eWW__inputBox",inputBoxActive:"addProductStepByStep-module__Tx4eWW__inputBoxActive",inputBoxCollapsed:"addProductStepByStep-module__Tx4eWW__inputBoxCollapsed",inputBoxWrapper:"addProductStepByStep-module__Tx4eWW__inputBoxWrapper",loadingContainer:"addProductStepByStep-module__Tx4eWW__loadingContainer",loadingContainerContent:"addProductStepByStep-module__Tx4eWW__loadingContainerContent",loadingContainerWrapper:"addProductStepByStep-module__Tx4eWW__loadingContainerWrapper",loadingProductImageShimmer:"addProductStepByStep-module__Tx4eWW__loadingProductImageShimmer",loadingTitle:"addProductStepByStep-module__Tx4eWW__loadingTitle",loadingTitleWrapper:"addProductStepByStep-module__Tx4eWW__loadingTitleWrapper",sendButton:"addProductStepByStep-module__Tx4eWW__sendButton",sendButtonAbsolute:"addProductStepByStep-module__Tx4eWW__sendButtonAbsolute",sendButtonActive:"addProductStepByStep-module__Tx4eWW__sendButtonActive",sendIcon:"addProductStepByStep-module__Tx4eWW__sendIcon",sendIconActive:"addProductStepByStep-module__Tx4eWW__sendIconActive",shimmerImage:"addProductStepByStep-module__Tx4eWW__shimmerImage",skeletonShimmerContainer:"addProductStepByStep-module__Tx4eWW__skeletonShimmerContainer",stepDot:"addProductStepByStep-module__Tx4eWW__stepDot",stepDotActive:"addProductStepByStep-module__Tx4eWW__stepDotActive",stepDotCompleted:"addProductStepByStep-module__Tx4eWW__stepDotCompleted",stepDotLineWrap:"addProductStepByStep-module__Tx4eWW__stepDotLineWrap",stepItem:"addProductStepByStep-module__Tx4eWW__stepItem",stepLabel:"addProductStepByStep-module__Tx4eWW__stepLabel",stepLabelActive:"addProductStepByStep-module__Tx4eWW__stepLabelActive",stepLabelCompleted:"addProductStepByStep-module__Tx4eWW__stepLabelCompleted",stepLineFill:"addProductStepByStep-module__Tx4eWW__stepLineFill",stepLineTrack:"addProductStepByStep-module__Tx4eWW__stepLineTrack",stepList:"addProductStepByStep-module__Tx4eWW__stepList",subtitle:"addProductStepByStep-module__Tx4eWW__subtitle",title:"addProductStepByStep-module__Tx4eWW__title"})},74832,e=>{"use strict";let t,a,s,o;var n,r=e.i(43476),l=e.i(42756),i=e.i(71089),d=e.i(46932),u=e.i(71645),c=e.i(49652);let _={some:0,all:1};var m=e.i(57688),p=e.i(48148),h=e.i(18859),g=e.i(88653),f=e.i(15504),x=e.i(16154),v=e.i(20760),j=e.i(73958);function y({type:e="text",rowCount:t=1,className:a,styles:s}){return(0,r.jsxs)(r.Fragment,{children:["image"===e&&(0,r.jsx)("div",{className:`${j.default.skeletonImage} ${a}`,style:s?.body}),"text"===e&&(0,r.jsx)("div",{className:`${j.default.skeletonContent} ${a}`,style:s?.content,children:Array.from({length:t}).map((e,t)=>(0,r.jsx)("div",{className:j.default.skeletonText,style:s?.body},t))}),"button"===e&&(0,r.jsx)("div",{className:`${j.default.skeletonButton} ${a}`,style:s?.body})]})}let w=e=>{let t,a=new Set,s=(e,s)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=s?s:"object"!=typeof o||null===o)?o:Object.assign({},t,o),a.forEach(a=>a(t,e))}},o=()=>t,n={setState:s,getState:o,getInitialState:()=>r,subscribe:e=>(a.add(e),()=>a.delete(e))},r=t=e(s,o,n);return n},b=e=>t=>{try{let a=e(t);if(a instanceof Promise)return a;return{then:e=>b(e)(a),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>b(t)(e)}}};var T=e.i(95187);let S=(0,T.createServerReference)("40b605bd3380a3519a1124cacb11f11845c3cca14c",T.callServer,void 0,T.findSourceMapURL,"proxyToBacken
1d"),C={list_showcase_products:"list_showcase_products",create_answer:"create_answer",add_info:"add_info",scrape_new_product:"scrape_new_product",scrape_status:"scrape_status"},N={list_showcase_products:{method:"POST",body:{}},create_answer:{method:"POST",body:{}},add_info:{method:"POST",body:{}},scrape_new_product:{method:"POST",body:{}},scrape_status:{method:"GET"}},W=async(e,t,a)=>{let s=C[e];if(!s)throw Error(`Unknown trial endpoint: ${e}`);let o=N[e];return S({method:o.method,path:s,body:t||o.body||void 0,searchParams:a||void 0})},A=(e=21)=>{let t="",a=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&a[e]];return t},I="dot_assist_session_id",P="session_id";async function B(e){if("u">typeof crypto&&crypto.subtle){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}var t=e;let a=0;for(let e=0;e<t.length;e++)a=(a<<5)-a+t.charCodeAt(e)|0;return Math.abs(a).toString(16)+t.length.toString(16)}function k(e){let t=`${I}=${encodeURIComponent(e)}; path=/; max-age=31536000; SameSite=Lax`;if("u">typeof document){document.cookie=t;try{localStorage.setItem(P,e)}catch{}}}async function q(){let e=function(){if("u"<typeof document)return null;let e=document.cookie.split("; ").find(e=>e.startsWith(`${I}=`));return e?decodeURIComponent(e.split("=")[1]??""):null}();if(e&&e.length>0)return e;if("u">typeof localStorage){let e=localStorage.getItem(P);if(e&&e.length>0)return k(e),e}let t=A(24),a=await B(t);return k(a),a}let D="question_response",L=e=>{try{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>Array.isArray(e)));window.localStorage.setItem(D,JSON.stringify(t))}catch{}},H={listShowProducts:[],selectedProduct:null,isLoading:!1,error:null,screen:"welcome",questions:{},welcomePageQuestion:null,addingProductUrl:null,lastChatSession:null,featureAdditionCount:0,questionCount:0,sourceScreen:"welcome"},J=(s=(n=(t=(e,t)=>({...H,setListShowProducts:t=>e({listShowProducts:t}),addProduct:async a=>{let s=t().listShowProducts,o=s.findIndex(e=>e.uid===a.uid);if(o>=0){let t=[...s];t[o]={...t[o],...a},e({listShowProducts:t});return}e({listShowProducts:[a,...s]})},setSelectedProduct:t=>e({selectedProduct:t??null}),fetchListShowProducts:async()=>{if(!(t().listShowProducts.length>0)){e({isLoading:!0,error:null});try{let t=await q(),a=await W("list_showcase_products",{session_id:t});if(a?.length){e({listShowProducts:a});let t=a.filter(e=>e.is_scraped),s=t.length?t:a;e({selectedProduct:s[Math.floor(Math.random()*s.length)]})}else e({listShowProducts:[],selectedProduct:null})}catch(t){e({error:t instanceof Error?t:Error(String(t))})}finally{e({isLoading:!1})}}},setWelcomePageQuestion:t=>e({welcomePageQuestion:t}),setScreen:t=>{"welcome"===t&&e({welcomePageQuestion:null}),e({screen:t})},setQuestionResponse:(a,s,o)=>{let n=t().questions[a];if(!n)return;let r={...t().questions,[a]:n.map(e=>{if(e._id!==s)return e;let t=o?.trim()==="null",a=e.response?.trim()==="null";return{...e,response:o??null,responseAt:new Date().toISOString(),isError:!1,retryCount:t&&a?(e.retryCount??0)+1:e.retryCount??0}})};e({questions:r}),L(r)},setQuestionError:(a,s,o)=>{let n=t().questions[a];if(!n)return;let r={...t().questions,[a]:n.map(e=>e._id===s?{...e,isError:o,response:o?null:e.response??null,responseAt:new Date().toISOString()}:e)};e({questions:r}),L(r)},addQuestion:(a,s)=>{let o={...t().questions,[a]:[...t().questions[a]||[],s]};e({questions:o}),L(o)},setAddingProductUrl:t=>e({addingProductUrl:t}),setLastChatSession:t=>e({lastChatSession:t}),setFeatureAdditionCount:t=>e({featureAdditionCount:t}),setQuestionCount:t=>e({questionCount:t}),setSourceScreen:t=>e({sourceScreen:t})}),a={name:"dot-assist-chat-history",partialize:e=>({questions:e.questions}),merge:(e,t)=>{let a=e?.questions,s=(()=>{try{let e=window.localStorage.getItem(D);if(!e)return{};let t=JSON.parse(e);if(!t||"object"!=typeof t||Array.isArray(t))return{};return t}catch{return{}}})(),o=!!a&&Object.keys(a).length>0;return{...t,...e,questions:o?a:s}},skipHydration:!0},(e,s,o)=>{let n,r={storage:function(e,t){let a;try{a=e()}catch(e){return}return{getItem:e=>{var t;let s=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=a.getItem(e))?t:null;return o instanceof Promise?o.then(s):s(o)},setItem:(e,t)=>
1a.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>a.removeItem(e)}}(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...a},l=!1,i=0,d=new Set,u=new Set,c=r.storage;if(!c)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),e(...t)},s,o);let _=()=>{let e=r.partialize({...s()});return c.setItem(r.name,{state:e,version:r.version})},m=o.setState;o.setState=(e,t)=>(m(e,t),_());let p=t((...t)=>(e(...t),_()),s,o);o.getInitialState=()=>p;let h=()=>{var t,a;if(!c)return;let o=++i;l=!1,d.forEach(e=>{var t;return e(null!=(t=s())?t:p)});let m=(null==(a=r.onRehydrateStorage)?void 0:a.call(r,null!=(t=s())?t:p))||void 0;return b(c.getItem.bind(c))(r.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===r.version)return[!1,e.state];else{if(r.migrate){let t=r.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var a;if(o!==i)return;let[l,d]=t;if(e(n=r.merge(d,null!=(a=s())?a:p),!0),l)return _()}).then(()=>{o===i&&(null==m||m(n,void 0),n=s(),l=!0,u.forEach(e=>e(n)))}).catch(e=>{o===i&&(null==m||m(void 0,e))})};return o.persist={setOptions:e=>{r={...r,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},r.skipHydration||h(),n||p}))?w(n):w,Object.assign(o=e=>(function(e,t=e=>e){let a=u.default.useSyncExternalStore(e.subscribe,u.default.useCallback(()=>t(e.getState()),[e,t]),u.default.useCallback(()=>t(e.getInitialState()),[e,t]));return u.default.useDebugValue(a),a})(s,e),s),o),F=(e,t)=>{let a=e instanceof Map?e:new Map(e.entries()),s=t instanceof Map?t:new Map(t.entries());if(a.size!==s.size)return!1;for(let[e,t]of a)if(!s.has(e)||!Object.is(t,s.get(e)))return!1;return!0};function Y(e){let t=u.default.useRef(void 0);return a=>{let s=e(a);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return F(e,t);let a=e[Symbol.iterator](),s=t[Symbol.iterator](),o=a.next(),n=s.next();for(;!o.done&&!n.done;){if(!Object.is(o.value,n.value))return!1;o=a.next(),n=s.next()}return!!o.done&&!!n.done}return F({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,s)?t.current=s:t.current}}function R(e){let t=(0,p.useTranslations)("Chat"),{product:a,showChangeButton:s=!0,onFocusProduct:o,focusedProduct:n,isChangeButtonAsIcon:l=!1,sourceScreen:i}=e,{setScreen:u,selectedProduct:c,setSourceScreen:_}=J(Y(e=>({setScreen:e.setScreen,selectedProduct:e.selectedProduct,setSourceScreen:e.setSourceScreen})));if(!a)return(0,r.jsx)("div",{className:v.default.productCardContainer,children:(0,r.jsxs)("div",{className:v.default.productCard,children:[(0,r.jsx)(y,{type:"image",styles:{body:{width:"76px",height:"86px"}}}),(0,r.jsx)(y,{type:"text",rowCount:4,styles:{body:{width:"100%",height:"14px"}}})]})});let m=n?.uid===a?.uid;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{className:v.default.productCardContainer,onClick:()=>{_(i??"welcome"),s?u("product"):o?.(a)},children:(0,r.jsxs)(d.motion.div,{className:v.default.productCard,initial:!1,animate:{backgroundColor:m?"#ECF4FF":"#ffffff00"},transition:{duration:.35,ease:[.4,0,.2,1]},children:[(0,r.jsx)("div",{className:v.default.productImageWrapper,children:(0,r.jsx)("img",{src:a?.image_url||"/images/hero/g2.png",alt:a?.title,className:`${v.default.productImage} ${"chat"!==i?v.default.large:""}`})}),(0,r.jsxs)("div",{className:v.default.productInfo,children:[(0,r.jsxs)("p",{className:v.default.productName,children:[(0,r.jsx)("span",{className:v.default.productBrand,children:a.brand})," ",a.title]}),(0,r.jsx)("img",{src:a?.retailer?.logo,alt:a?.retailer?.name,width:52,className:v.default.productRetailerLogoBottom}),!a.is_scraped&&(0,r.jsx)("p",{className:v.default.productDemo,children:"*Demo ürünüdür."})]}),s&&(0,r.jsxs)("button",{className:v.default.changeProductButton,onClick:()=>u("product"),children:[(0,r.jsx)("div",{className:v.default.changeProductButtonIcon,children:(0,r.jsx)("img",{src:"/images/chat/arrow-down.svg",alt:"change-product",width:15,height:7})}),(0,r.jsx)("span",{className:v.default.changeProductButtonText,children:t("Select product")})]})]})},a.uid)})}var M=e.i(29531),$=e.i(74080),U=e.i(8178);function E({title:e,placement:t="bottom",className:a="",children:s,contentClassName:o="",usePortal:n=!1}
1){let l=[U.default.content,U.default[t]].filter(Boolean).join(" "),i=[U.default.wrap,a].filter(Boolean).join(" "),d=(0,u.useRef)(null),[c,_]=(0,u.useState)(!1),[m,p]=(0,u.useState)(null);(0,u.useLayoutEffect)(()=>{if(!n||!c||!d.current)return;let e=d.current,a=()=>{p(function(e,t){switch(e){case"top":return{left:t.left+t.width/2,top:t.top-8,transform:"translate(-50%, -100%)"};case"bottom":default:return{left:t.left+t.width/2,top:t.bottom+8,transform:"translate(-50%, 0)"};case"left":return{left:t.left-8,top:t.top+t.height/2,transform:"translate(-100%, -50%)"};case"right":return{left:t.right+8,top:t.top+t.height/2,transform:"translate(0, -50%)"}}}(t,e.getBoundingClientRect()))};return a(),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a),()=>{window.removeEventListener("scroll",a,!0),window.removeEventListener("resize",a)}},[n,c,t]);let h=n&&c&&m&&"u">typeof document?(0,$.createPortal)((0,r.jsx)("span",{className:`${l} ${o} ${U.default.portalContent}`,role:"tooltip",style:{position:"fixed",left:m.left,top:m.top,bottom:"auto",right:"auto",transform:m.transform,opacity:1,visibility:"visible",zIndex:99999},children:e}),document.body):null;return n?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{ref:d,className:i,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:s}),h]}):(0,r.jsxs)("div",{className:i,children:[(0,r.jsx)("span",{className:`${l} ${o}`,role:"tooltip",children:e}),s]})}function Z({isInputExpanded:e=!1,placeholder:t,value:a,onChange:s,onFocus:o,onBlur:n,onKeyPress:l,onSend:i,canSend:c,disabled:_=!1,loading:m=!1,wrapperClassName:h,addAttributes:g,showAnimation:f=!0,addAttributesDisabled:x=!1}){let v=(0,u.useRef)(null),j=h??M.default.inputBoxWrapper,w=(0,p.useTranslations)("Chat"),b=(0,u.useCallback)(()=>{let e=v.current;if(!e)return;e.style.height="auto";let t=Math.min(e.scrollHeight,72);e.style.height=`${t}px`,e.style.overflowY=e.scrollHeight>72?"auto":"hidden"},[]);(0,u.useEffect)(()=>{b()},[a,b]);let T=(0,u.useRef)(!1);return(0,u.useEffect)(()=>{T.current&&!_&&v.current?.focus(),T.current=_??!1},[_]),(0,r.jsx)("div",{className:j,children:(0,r.jsxs)(d.motion.div,{className:`${M.default.inputBox} ${m||_?M.default.inputBoxBorderOff:""} ${!f?M.default.inputBoxAnimationOff:""} ${e?M.default.inputBoxExpanded:M.default.inputBoxCollapsed}`,animate:{minHeight:e?122:68},transition:{type:"spring",stiffness:300,damping:30},children:[(0,r.jsx)("textarea",{ref:v,className:M.default.input,placeholder:_?"":t,value:a,onChange:s,onFocus:e=>{o(),setTimeout(()=>{e.target.scrollIntoView({behavior:"smooth",block:"end"})},350)},onBlur:n,onKeyPress:l,rows:1,style:{resize:"none",overflowY:"hidden"},disabled:_}),g&&(0,r.jsx)("button",{className:M.default.addAttributesButton,onClick:g,disabled:_||x,children:(0,r.jsx)(E,{title:w("Add attributes"),placement:"bottom",children:(0,r.jsx)("img",{src:"/images/chat/plus.svg",alt:"add-attributes",width:14,height:14})})}),(0,r.jsx)("button",{className:`${M.default.sendButton} ${M.default.sendButtonAbsolute} ${e?M.default.sendButtonExpanded:M.default.sendButtonCollapsed} ${c?M.default.sendButtonActive:""}`,onClick:i,disabled:!c,children:(0,r.jsx)("img",{className:M.default.sendIcon,src:"/images/chat/send-gray.svg",alt:"send",width:20,height:20})}),m&&(0,r.jsx)("div",{className:M.default.inputShimmerOverlay,children:(0,r.jsx)(y,{type:"text",rowCount:1,styles:{body:{width:"50%",margin:16,height:20,borderRadius:20}}})})]})})}function Q(e,t){let[a,s]=(0,u.useState)(""),[o,n]=(0,u.useState)(0),[r,l]=(0,u.useState)(!0),i=(0,u.useRef)(t),d=e.length>0?e:["Mesajınızı yazın..."],c=d[o]??"Mesajınızı yazın...";return i.current!==t&&(i.current=t,s(""),n(0),l(!0)),(0,u.useEffect)(()=>{if(0===c.length)return;if(r){if(a.length<c.length){let e=setTimeout(()=>{s(c.slice(0,a.length+1))},80);return()=>clearTimeout(e)}let e=setTimeout(()=>l(!1),2e3);return()=>clearTimeout(e)}if(a.length>0){let e=setTimeout(()=>{s(a.slice(0,-1))},50);return()=>clearTimeout(e)}let e=setTimeout(()=>{n(e=>(e+1)%d.length),l(!0)},500);return()=>clearTimeout(e)},[c,r,d.length,a,o]),a}function G(){let[e,t]=(0,u.useState)(""),[a,s]=(0,u.useState)(!0),[o,n]=(0,u.useState)(!1),l=(0,u.useRef)(null);(0,u.useRef)(null);let i=(0,p.useTranslations)("Chat"),{selectedProduct:d,setScreen:c,setWelcomePageQuestion:_,addQuestion:m,sourceScreen:h,setSourceScreen:g}=J(Y(e=>({selectedProduct:e.selectedProduct,setScreen:e.setScreen,setWelcomePageQuestion:e.setWelcomePageQuestion,addQuestion:e.addQuestion,sourceScreen:e.sourceScreen,setSourceScreen:e.setSourceScreen}))),f=Q((0,u.useMemo)(()=>d?.suggested_questions?.length?d.suggested_questions:[i("Write your message")],[d]),d?.uid),v=async()=>
1{if(!e.trim())return;let a=A(24),o=await q();m(d?.uid||"",{_id:a,question:e,session_id:o,created_at:new Date().toISOString(),base_product_uid:d?.uid||""}),_({_id:a,question:e,session_id:o,created_at:new Date().toISOString(),base_product_uid:d?.uid||""}),setTimeout(()=>{c("chat"),g("welcome")},100),t(""),s(!1),l.current&&setTimeout(()=>{l.current&&l.current.scrollTo({top:l.current.scrollHeight,behavior:"smooth"})},100)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:x.default.content,children:[(0,r.jsxs)("div",{className:x.default.welcomeScreenContainer,children:[(0,r.jsxs)("div",{className:x.default.header,children:[(0,r.jsxs)("h2",{className:x.default.title,children:[i("Welcome"),(0,r.jsx)("br",{}),i("Try Dot Assist")]}),(0,r.jsx)("p",{className:x.default.subtitle,children:d?.is_scraped&&"addProductStepByStep"===h?(0,r.jsxs)("div",{className:x.default.messageContainer,children:[(0,r.jsx)("img",{src:"/images/chat/check-circle.svg",alt:"success",width:12,height:12,className:x.default.successMessageIcon}),(0,r.jsx)("span",{children:i("Your product has been successfully installed You can start trying Dot Assist")})]}):d?.is_scraped&&"addProductStepByStepError"===h?(0,r.jsxs)("div",{className:x.default.messageContainer,children:[(0,r.jsx)("img",{src:"/images/chat/error-circle.svg",alt:"error",width:12,height:12,className:x.default.errorMessageIcon}),(0,r.jsx)("span",{children:i("Failed to scrape product Please check if the product URL is correct and try again")})]}):i("We have selected a product for you By clicking on the product card below you can add your own product or choose a different product and start asking questions")})]}),(0,r.jsx)(R,{product:d,sourceScreen:"welcome"})]}),(0,r.jsxs)("div",{className:x.default.questionSection,children:[(0,r.jsx)(Z,{isInputExpanded:a,placeholder:e.trim()||o?"":f,value:e,onChange:e=>{t(e.target.value),!a&&e.target.value.length>0&&s(!0)},onFocus:()=>n(!0),onBlur:()=>n(!1),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),v())},onSend:v,canSend:!!e.trim()}),(0,r.jsx)("div",{className:x.default.suggestionCards,children:d?.suggested_questions?.map((e,a)=>(0,r.jsx)("div",{className:x.default.suggestionCard,onClick:()=>{s(!0),t(e)},children:(0,r.jsx)("p",{className:x.default.suggestionText,children:e})},a))})]})]}),(0,r.jsx)("div",{className:x.default.hintText,children:i("Dot Assist produces automatic answers to product questions on Trendyol and Hepsiburada with artificial intelligence This area is a demo environment")})]})}var O=e.i(97059);let V=function({showAddProductButton:e=!0,style:t={}}){let a=(0,p.useTranslations)("Chat"),{setScreen:s,selectedProduct:o}=J(Y(e=>({setScreen:e.setScreen,selectedProduct:e.selectedProduct})));return(0,r.jsxs)("div",{className:O.default.tryForFreeSection,style:t,children:[(0,r.jsx)("div",{className:O.default.tryForFreeContainer,children:(0,r.jsxs)("div",{className:O.default.tryForFreeContent,children:[(0,r.jsxs)("div",{className:O.default.tryForFreeHeader,children:[(0,r.jsx)("div",{className:O.default.tryForFreeTitle,children:a("Do you want to try with your own store")}),(0,r.jsxs)("div",{className:O.default.tryForFreeDescription,children:[a("You can try Dot Assist with your own products and store rules"),(0,r.jsx)("br",{}),a("Add your store see how it answers real customer questions immediately")]})]}),(0,r.jsx)("div",{className:O.default.tryForFreeButton,children:(0,r.jsx)(l.Button,{type:"primary",size:"md",onClick:()=>{window.open("https://app.dotassist.ai/signup","_blank")},radius:50,children:(0,r.jsx)("span",{className:O.default.tryForFreeButtonText,children:a("Start for free")})})})]})}),e&&!o?.is_scraped&&(0,r.jsxs)("div",{className:O.default.tryForFreeAddProductContainer,children:[(0,r.jsxs)("div",{className:O.default.tryForFreeAddProduct,children:[(0,r.jsx)("span",{className:O.default.tryForFreeAddProductText,children:a("You can quickly try by adding the product you want to sell on the platform")}),(0,r.jsx)("button",{className:O.default.tryForFreeAddProductButton,onClick:()=>{s("product")},children:a("Add")})]}),(0,r.jsx)("div",{className:O.default.tryForFreeAddProductMobile,onClick:()=>{s("product")},children:(0,r.jsx)("span",{className:O.default.tryForFreeAddProductText,children:a("You can quickly try by adding the product you want to sell on the platform")})})]})]})},z=function({question:e,getQuestionResponse:t,setChatInputValue:a,suggestedTopic:s=null,suggestedAnswer:o,isNew:n=!1,retryCount:l=0,onClose:i}){let d=(0,p.useTranslations)("Chat"),[c,_]=(0,u.useState)(!1),[m,h]=(0,u.useState)(!1),[g,f]=(0,u.useState)(null),[x,v]=(0,u.useState)(""),j=Q(o?.length?o:[d("Write the product information")],s??void 0),{selectedProduct:y,questionsForProduct:w,featureAdditionCount:b,setFeatureAdditionCount:T}=J(Y(e=>({selectedProduct:e.selectedProduct,questionsForProduct:e.questions[e.selectedProduct?.uid??""],featureAdditionCount:e.featureAdditionCount,setFeatureAdditionCount:e.setFeatureAdditionCount}))),S=async s=>{if(s.trim()&&y?.uid&&!c&&!(s.trim()?.length<2)){_(!0);try{let o=await q();await W("add_info",{session_id:o,base_product_uid:y?.uid||"",notes:[s]}),T(b+1),_(!1),e&&(v(""),a(""),h(!0),await new Promise(e=>setTimeout(e,3e3)),h(!1),t(e))}catch(e){_(!1),e?.message.includes("limit exceeded")?(f(d("The daily feature addition limit has been reached Please try again tomorrow")),T(10)):f(d("We had an issue registering the feature Please try again"))}}};return b>=10?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:O.default.addAttributesContainer,children:(0,r.jsx)("p",{className:O.default.reachLimitText,children:d("The daily feature addition limit has been reached Please try again tomorrow")})}),(0,r.jsx)(V,{})]}):c?(0,r.jsx)("p",{className:O.default.messageText,children:d("Im saving the information you added")}):m&&!n?(0,r.jsx)("div",{className:O.default.typingIndicator,children:(0,r.jsx)("span",{className:O.default.typingText,children:d("I saved the information you added")})}):(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)("img",{src:"/images/chat/ai-icon.png",alt:"ai",width:24,height:24,style:{marginBottom:"10px",marginTop:"16px"}}),g&&(0,r.jsxs)("div",{className:O.default.errorContainer,children:[(0,r.jsx)("img",{src:"/images/chat/error-circle.svg",alt:"error",width:18,height:18}),(0,r.jsx)("span",{children:g})]}),(0,r.jsx)("div",{className:O.default.addAttributesContainer,children:(0,r.jsxs)("div",{className:O.default.addAttributes,children:[(0,r.jsxs)("div",{className:O.default.addAttributesHeader,children:[(0,r.jsx)("button",{className:`${O.default.closeButton} ${n?O.default.addAttributesHeaderCloseButton:O.default.addAttributesHeaderCloseButtonHidden}`,onClick:i,children:(0,r.jsx)("img",{src:"/images/chat/close.svg",alt:"close",width:12,height:12})}),(0,r.jsx)("div",{className:O.default.addAttributesTitle,children:n?d("Add attributes to your product"):l>0?d("The information you added seems insufficient"):d("I cant answer this question yet")}),!s&&(0,r.jsx)("div",{className:O.default.addAttributesDescription,children:n?d("The information you add is saved and Dot Assist generates automatic answers using this information when a question arises on this subject"):l>0?d("The content you added does not clearly explain the answer to the question Please enter more detailed and descriptive information about the product"):d("No information is attached for this product Once you add this information Dot Assist will automatically respond when similar questions come up")})]}),(0,r.jsxs)("div",{className:O.default.yourProductInputContainer,children:[(0,r.jsx)("input",{type:"text",placeholder:x.trim()?"":j,className:O.default.yourProductInput,value:x,onChange:e=>v(e.target.value),onKeyDown:e=>{"Enter"===e.key&&S(x)}}),(0,r.jsx)("button",{className:O.default.yourProductInputButton,onClick:()=>S(x),children:d("Add")})]})]})})]})};var X=e.i(94214);let K=function(){let e=(0,p.useTranslations)("Chat");return(0,r.jsxs)("div",{className:X.default.tooltipContent,children:[(0,r.jsx)("p",{className:X.default.tooltipContentTitle,children:e("How to add my own product")}),(0,r.jsx)("img",{src:"/images/chat/tooltip-info.png",alt:"add-product-tooltip",height:21}),(0,r.jsxs)("div",{className:X.default.tooltipContentBody,children:[(0,r.jsxs)("div",{children:[" ",e("1 Open the page of your own product on Trendyol or Hepsiburada")]}),(0,r.jsxs)("div",{children:[" ",e("2 Copy the link in the address bar at the top")]}),(0,r.jsxs)("div",{children:[" ",e("3 Paste it into this area and click the Try button")]})]})]})},ee=function(){let e=(0,p.useTranslations)("Chat"),[t,a]=(0,u.useState)(""),[s,o]=(0,u.useState)(null),{setAddingProductUrl:n,setScreen:l}=J(Y(e=>({setAddingProductUrl:e.setAddingProductUrl,setScreen:e.setScreen}))),i=Q([e("Enter Trendyol product link"),e("Enter Hepsiburada product link")],void 0);return(0,r.jsx)("div",{className:X.default.addYourProductInputContainer,children:(0,r.jsxs)("form",{onSubmit:a=>{a.preventDefault(),o(null);let s=t.trim();/^https?:\/\/[^\s\/]+\.[^\s\/]+(\/[^\s]*)?$/.test(s)?et.test(s)?(n(s),l("addProductStepByStep")):o(e("Please enter Trendyol or Hepsiburada product link")):o(e("The link you added is invali
1d Please enter a valid link"))},children:[(0,r.jsxs)("div",{className:X.default.addYourProductInputWrapper,children:[(0,r.jsx)("input",{required:!0,name:"url",type:"url",placeholder:i,className:`${X.default.addYourProductInput} ${s?X.default.addYourProductInputError:""}`,value:t,onChange:e=>{a(e.target.value),s&&o(null)},"aria-invalid":!!s,"aria-describedby":s?"url-error":void 0}),(0,r.jsx)("div",{className:X.default.infoTooltipWrapContainer,children:(0,r.jsx)(E,{contentClassName:X.default.infoTooltipContent,title:(0,r.jsx)(K,{}),className:X.default.infoTooltipWrap,placement:"top",usePortal:!0,children:(0,r.jsx)("div",{className:X.default.infoIcon,children:(0,r.jsx)("img",{src:s?"/images/chat/error-circle.svg":"/images/chat/question-circle.svg",alt:"info",width:15,height:15})})})}),(0,r.jsx)("button",{className:X.default.addYourProductInputButton,type:"submit",children:e("Try")})]}),s&&(0,r.jsx)("span",{id:"url-error",className:X.default.addYourProductError,children:s})]})})},et=/^https:\/\/www\.(trendyol\.com|hepsiburada\.com)\/.+/,ea=function({close:e,onClose:t}){let a=(0,p.useTranslations)("Chat");return e?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:X.default.addYourProductContainer,children:[(0,r.jsxs)("div",{className:X.default.aiChatIcon,children:[" ",(0,r.jsx)("img",{src:"/images/chat/ai-icon.png",alt:"ai",width:24,height:24})," ",(0,r.jsx)("span",{className:X.default.aiChatIconText,children:"Dot Assist"})]}),(0,r.jsxs)("div",{className:X.default.addYourProduct,children:[(0,r.jsxs)("div",{className:X.default.addYourProductHeader,children:[(0,r.jsxs)("div",{className:X.default.addYourProductTitle,children:[(0,r.jsxs)("span",{className:X.default.addYourProductTitleText,children:[a("Now its time to try your own product")," ð"]}),(0,r.jsx)("button",{className:X.default.addYourProductTitleClose,onClick:t,children:(0,r.jsx)("img",{src:"/images/chat/close.svg",alt:"close",width:12,height:12})})]}),(0,r.jsx)("div",{className:X.default.addYourProductDescription,children:a("You can quickly try by adding the product you want to sell on the platform")})]}),(0,r.jsx)(ee,{})]})]})})},es=(0,u.memo)(function({phrases:e,selectedProductUid:t,inputValue:a,isFocused:s,questionsLength:o,isTyping:n,onChange:l,onFocus:i,onBlur:d,onKeyPress:u,onSend:c,wrapperClassName:_,addAttributes:m,defaultPlaceholder:p,addAttributesDisabled:h}){let g=Q(e,t),f=!a.trim()&&!s&&o>0;return(0,r.jsx)(Z,{placeholder:p||(f?g:""),value:a,onChange:l,onFocus:i,onBlur:d,onKeyPress:u,onSend:c,canSend:!!a.trim(),disabled:n,loading:!1,wrapperClassName:_,addAttributes:m,showAnimation:!1})}),eo=(0,u.memo)(function({questionsForProduct:e,isTyping:t,addAttributesSuggestions:a,answeredCount:s,listShowProduct:o,addYourProductClose:n,selectedProduct:l,chatMessagesRef:i,handleSuggestionClick:c,getQuestionResponse:_,setInputValue:m,handleAddYourProductClose:h,addAttributesOpen:f,handleAddAttributesClose:x}){let v=(0,p.useTranslations)("Chat"),j=(0,u.useRef)(null),y=(0,u.useRef)(null),w=(0,u.useMemo)(()=>i.current?.clientHeight?i.current?.clientHeight-12-(j.current?.clientHeight??54)-(y.current?.clientHeight??0):0,[t,l?.is_scraped,e,s,i,j?.current?.clientHeight]);return(0,r.jsx)("div",{className:O.default.chatMessages,ref:i,children:(0,r.jsx)(g.AnimatePresence,{children:(()=>{let o=e??[],u=[];if(0===o.length)u.push((0,r.jsx)("div",{className:O.default.messageSuggestedContainer,children:l?.suggested_questions?.map((e,t)=>(0,r.jsx)(d.motion.div,{className:O.default.messageSuggested,initial:{opacity:0,y:20,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:500,damping:30,mass:.5},onClick:()=>c(e),children:(0,r.jsx)("p",{className:O.default.messageText,children:e})},`suggested-${t}-${String(e).slice(0,50)}`))},"suggested-container"));else{o.forEach((e,s)=>{let n=e._id||`msg-${s}`,l=s===o.length-1,c=!!e.isError&&!t;u.push((0,r.jsxs)("div",{"data-question-index":s,className:`${O.default.messageUserContainer} ${c?O.default.messageUserContainerColumn:""}`,ref:l?j:null,children:[(0,r.jsx)(d.motion.div,{className:O.default.messageUser,initial:{opacity:0,y:20,scale:.95}
1,animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.95},transition:{type:"spring",stiffness:500,damping:30,mass:.5},children:(0,r.jsx)("p",{className:O.default.messageText,children:e.question})}),c&&(0,r.jsxs)("div",{className:O.default.inlineErrorRow,children:[(0,r.jsxs)("div",{className:O.default.inlineErrorContent,children:[(0,r.jsx)("span",{className:O.default.inlineErrorIcon,children:(0,r.jsx)("img",{src:"/images/chat/error-circle.svg",alt:"error",width:18,height:18})}),(0,r.jsx)("span",{children:v("An error occurred Please try again")})]}),(0,r.jsxs)("button",{type:"button",className:O.default.inlineErrorRetryButton,onClick:()=>_(e),children:[(0,r.jsx)("span",{className:O.default.inlineErrorRetryIcon,children:(0,r.jsx)("img",{src:"/images/chat/refresh.svg",alt:"Tekrar Dene",width:18,height:18})}),(0,r.jsx)("span",{children:v("Try again")})]})]})]},`user-${n}`));let p=e.response?.trim()==="null",h=!!e.response&&!p;(e.response||l&&t)&&u.push((0,r.jsx)("div",{"data-bot-index":s,className:O.default.messageBotContainer,children:(0,r.jsx)(g.AnimatePresence,{mode:"wait",children:l&&t?(0,r.jsxs)(d.motion.div,{style:{scrollBehavior:"smooth",minHeight:i.current?.clientHeight?i.current?.clientHeight-12-(j.current?.clientHeight??54):0},className:O.default.messageBotColumn,initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[(0,r.jsxs)("div",{className:O.default.aiChatIcon,children:[" ",(0,r.jsx)("img",{src:"/images/chat/ai-chat.gif",alt:"ai",width:24,height:24})," ",(0,r.jsx)("span",{className:O.default.aiChatIconText,children:"Dot Assist"})]}),(0,r.jsx)("div",{className:O.default.typingIndicator,children:(0,r.jsx)("span",{className:O.default.typingText,children:v("Answer is being prepared")})})]},"typing"):e.response?(0,r.jsxs)(d.motion.div,{style:{scrollBehavior:"smooth"},className:O.default.messageBotColumn,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},ref:l?y:null,transition:{duration:.2},children:[(0,r.jsxs)("div",{className:O.default.aiChatIcon,children:[" ",(0,r.jsx)("img",{src:"/images/chat/ai-icon.png",alt:"ai",width:24,height:24})," ",(0,r.jsx)("span",{className:O.default.aiChatIconText,children:"Dot Assist"})]}),(0,r.jsx)("div",{className:h?O.default.messageBot:O.default.messageBotAddAttributes,style:{transform:"none"},children:h?(0,r.jsx)("p",{className:O.default.messageText,children:e.response}):(0,r.jsx)(z,{question:e,getQuestionResponse:_,setChatInputValue:m,suggestedAnswer:a,retryCount:e.retryCount??0})})]},"response"):null})},`${o.length==s+1?"last-bot":"bot"}-${n}`))});let c=!!e&&e[e?.length-1]?.response!="null",p=e?e?.filter(e=>"null"!==e.response)?.length:0;!t&&!l?.is_scraped&&e&&s>0&&p%3==0&&c?u.push((0,r.jsx)(ea,{close:n,onClose:h},"add-your-product")):!t&&s>0&&p%5==0&&c&&u.push((0,r.jsx)(V,{},"try-for-free")),f&&e?.[e.length-1]&&u.push((0,r.jsx)(z,{isNew:!0,question:e?.[e.length-1],getQuestionResponse:()=>{},setChatInputValue:()=>{},suggestedAnswer:[],onClose:x},"add-attributes"))}let p=["add-your-product","try-for-free","add-attributes"];return u.map((e,t)=>{if(u.length===t+1&&p.includes(e.key)){let a="try-for-free"===e.key?(w??0)-(s>0&&s%5==0&&s%3==0?300:32):"add-attributes"===e.key?(w??0)+64:(w??0)-16;return(0,r.jsx)("div",{style:{minHeight:Math.max(0,a)},children:e},`${t}-min-height-spacer`)}return u.length===t+1&&e.key.startsWith("last-bot")?(0,r.jsx)("div",{style:{minHeight:Math.max(0,i.current?.clientHeight?i.current?.clientHeight-12-(j.current?.clientHeight??54):0)},children:e},`last-bot-${t}-min-height-spacer`):e})})()})})});function en(){let[e,t]=(0,u.useState)(""),[a,s]=(0,u.useState)(!1),[o,n]=(0,u.useState)(!1),[l,i]=(0,u.useState)(null),[c,_]=(0,u.useState)(!1),[m,h]=(0,u.useState)(!1),g=(0,u.useRef)(null),f=(0,u.useRef)(null),x=(0,u.useRef)(null),v=(0,u.useRef)(null),j=(0,u.useRef)(0),y=(0,u.useRef)(!1),w=(0,p.useTranslations)("Chat"),{listShowProduct:b,selectedProduct:T,screen:S,setScreen:C,questionsForProduct:N,addQuestion:I,setQuestionResponse:P,setQuestionError:B,welcomePageQuestion:k,setWelcomePageQuestion:D,setQuestionCount:L,questionCount:H}=J(Y(e=>({listShowProduct:e.listShowProducts,selectedProduct:e.selectedProduct,screen:e.screen,setScreen:e.setScreen,questionsForProduct:e.questions[e.selectedProduct?.uid??""],addQuestion:e.addQuestion,setQuestionResponse:e.setQuestionResponse,setQuestionError:e.setQuestionError,welcomePageQuestion:e.welcomePageQuestion,setWelcomePageQuestion:e.setWelcomePageQuestion,setQuestionCount:e.setQuestionCount,questionCount:e.questionCount}))),F=(0,u.useMemo)(()=>T?.suggested_questions?.length?T.suggested_questions:["Mesajınızı yazın..."],[T]),M=(0,u.useMemo)(()=>l?.suggested_missing_answers??[],[l?.suggested_missing_answers]),$=(0,u.useMemo)(()=>N?.filter(e=>null!=e.response)?.length??0,[N]);(0,u.useEffect)(()=>{if(!N?.length)return;let e=(t=0)=>{let a=g.current;if(!a){t<15&&requestAnimationFrame(()=>e(t+1));return}a.scrollTo({top:a.scrollHeight,behavior:"instant"})};e()},[]);let U=(0,u.useCallback)(()=>{_(!1)},[]),Z=(0,u.useCallback)(e=>{s(!0);let t=T?.uid||"";B(t,e._id,!1);let a=(J.getState().questions[t]??[]).filter(e=>!!e.response).flatMap(e=>[{role:"user",content:e.question},{role:"assistant",content:e.response}]);return L(H+1),W("create_answer",{session_id:e.session_id,base_product_uid:e.base_product_uid,question:e.question,speech_tone:"friendly",suggest_new_questions:!1,chat_history:a}).then(a=>{s(!1),a?.answer?i(null):i(a),P(t,e._id,a?.answer||"null")}).catch(a=>{s(!1),i(null),B(t,e._id,!0)})},[T?.uid,P,B]);(0,u.useEffect)(()=>
1{if(y.current&&!a){let e=g.current;if(!e)return;let t=(N?.length??1)-1,a=e.querySelector(`[data-question-index="${t}"]`);a&&(e.scrollTop=a.offsetTop)}y.current=a},[a,N?.length]),(0,u.useEffect)(()=>{if(!m)return;let e=g.current;e&&requestAnimationFrame(()=>{e.scrollTo({top:e.scrollHeight,behavior:"smooth"})})},[m,N?.length]),(0,u.useEffect)(()=>{if(!k){v.current=null;return}v.current!==k._id&&(v.current=k._id,setTimeout(()=>{D(null),Z(k)},0))},[k,D,Z]);let Q=(0,u.useCallback)(async()=>{if(h(!1),!e.trim())return;let a=g.current;if(!a)return;let s={_id:A(24),question:e,session_id:await q(),created_at:new Date().toISOString(),base_product_uid:T?.uid||""},o=N?.length??0,n=Math.round(g.current?.clientHeight?g.current.clientHeight-96:0);j.current=n,I(T?.uid||"",s),t(""),Z(s);let r=(e=0)=>{let t=a.querySelector(`[data-question-index="${o}"]`);if(!t){e<25&&setTimeout(()=>r(e+1),40);return}f.current&&(f.current.style.height=`${n}px`),requestAnimationFrame(()=>{requestAnimationFrame(()=>{a.scrollTo({top:t.offsetTop,behavior:"smooth"})})})};r()},[e,T?.uid,N?.length,I,Z]),G=(0,u.useCallback)(e=>{t(e),setTimeout(()=>x.current?.focus(),200)},[]),V=(0,u.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),Q())},[Q]),z=(0,u.useCallback)(e=>{t(e.target.value)},[]),X=(0,u.useCallback)(()=>n(!0),[]),K=(0,u.useCallback)(()=>n(!1),[]);return T?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(d.motion.div,{className:O.default.header,initial:{y:"25%",opacity:0}
1,animate:{y:0,opacity:1},transition:{type:"spring",stiffness:300,damping:28,mass:.8},children:[(0,r.jsxs)("div",{className:O.default.headerContent,children:[(0,r.jsx)(E,{title:w("New chat"),placement:"bottom",className:O.default.backButtonWrap,children:(0,r.jsx)("button",{className:O.default.backButton,onClick:()=>C("welcome"),"aria-label":w("New chat"),children:(0,r.jsx)("img",{src:"/images/chat/new-chat.svg",alt:"back",width:20,height:20})})}),(0,r.jsx)("h2",{className:O.default.title,children:w("Try Dot Assist")})]}),(0,r.jsx)("div",{className:O.default.productContent,children:(0,r.jsx)(R,{product:T,isChangeButtonAsIcon:!0,sourceScreen:"chat"})})]}),(0,r.jsxs)("div",{className:`${O.default.content} ${O.default.chatContent}`,children:[(0,r.jsx)("div",{className:O.default.questionSection,children:(0,r.jsx)(eo,{questionsForProduct:N,isTyping:a,addAttributesSuggestions:M,answeredCount:$,listShowProduct:b,addYourProductClose:c,selectedProduct:T,chatMessagesRef:g,handleSuggestionClick:G,getQuestionResponse:Z,setInputValue:t,handleAddYourProductClose:U,addAttributesOpen:m,handleAddAttributesClose:()=>h(!1)})}),(0,r.jsx)(es,{defaultPlaceholder:l?w("Ask your question"):null,phrases:F,selectedProductUid:T.uid,inputValue:e,isFocused:o,questionsLength:N?.length??0,isTyping:a,onChange:z,onFocus:X,onBlur:K,onKeyPress:V,onSend:Q,wrapperClassName:O.default.inputBoxWrapper,addAttributesDisabled:N?.[N.length-1]?.response==="null",addAttributes:()=>N?.[N.length-1]?.response!=="null"?h(!m):null}),(0,r.jsx)("div",{className:O.default.hintText,children:w("Dot Assist produces automatic answers to product questions on Trendyol and Hepsiburada with artificial intelligence This area is a demo environment")})]})]}):null}var er=e.i(86900);let el=()=>{let e=(0,p.useTranslations)("Chat"),{listShowProducts:t,setScreen:a,setSelectedProduct:s,sourceScreen:o}=J(Y(e=>({listShowProducts:e.listShowProducts,setScreen:e.setScreen,setSelectedProduct:e.setSelectedProduct,sourceScreen:e.sourceScreen}))),[n,l]=(0,u.useState)(null);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:er.default.productHeader,children:[(0,r.jsxs)("button",{className:er.default.productHeaderBackButton,onClick:()=>"welcome"===o?a("welcome"):a("chat"),children:[(0,r.jsx)("img",{src:"/images/chat/arrow-left.svg",className:er.default.productHeaderBackButtonIcon,alt:"arrow-left",width:20,height:20}),(0,r.jsx)("img",{src:"/images/chat/new-chat.svg",className:er.default.productHeaderBackButtonIconMobile,alt:"new-chat",width:20,height:20})]}),(0,r.jsxs)("div",{className:er.default.productHeaderContent,children:[(0,r.jsx)("h2",{className:er.default.title,style:{fontSize:"24px",marginTop:0},children:e("Select Product")}),(0,r.jsx)("p",{className:er.default.productHeaderSubTitle,children:e("You can continue by adding the link of your own product or selecting one of the demo products we have selected")})]})]}),(0,r.jsx)("div",{className:`${er.default.content} ${er.default.productContent}`,children:(0,r.jsxs)("div",{className:er.default.container,children:[t.filter(e=>!!e.is_scraped).length<5?(0,r.jsxs)("div",{className:er.default.yourProductContainer,children:[(0,r.jsx)("p",{className:er.default.yourProductTitle,children:e("Try your own product")}),(0,r.jsx)(ee,{})]}):(0,r.jsx)(V,{showAddProductButton:!1,style:{margin:0}}),(0,r.jsxs)("div",{className:er.default.productsContainer,children:[t.filter(e=>!!e.is_scraped).length>0&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:er.default.demoProductsTitle,children:e("Your Products")})}),t.filter(e=>!!e.is_scraped).map(e=>(0,r.jsx)(R,{product:e,onFocusProduct:l,showChangeButton:!1,focusedProduct:n},e.uid))]}),t.filter(e=>!e.is_scraped).length>0&&(0,r.jsxs)(r.Fragment,{children:[" ",(0,r.jsx)("div",{children:(0,r.jsx)("p",{className:er.default.demoProductsTitle,children:e("Demo Products")})}),t.filter(e=>!e.is_scraped).map(e=>(0,r.jsx)(R,{product:e,onFocusProduct:l,showChangeButton:!1,focusedProduct:n},e.uid))]}),(0,r.jsx)("div",{className:er.default.applyButtonContainer,children:(0,r.jsx)("button",{className:er.default.applyButton,onClick:()=>{s(n),a("chat")},disabled:!n,children:e("Try the selected product")})})]})]})})]})};var ei=e.i(66763);let ed=null,eu=[];function ec(e){let t=eu.findIndex(t=>t.id===e);if(-1===t)return;let{element:a,timeoutId:s}=eu[t];s&&clearTimeout(s),a.style.animation="toastSlideOut 0.3s ease forwards",setTimeout(()=>{a.parentNode&&a.parentNode.removeChild(a),0===(eu=eu.filter(t=>
1t.id!==e)).length&&ed&&(document.body.removeChild(ed),ed=null)},300)}function e_(){let e=(0,p.useTranslations)("Chat"),t=[{key:1,title:e("Link is being validated"),image:"/images/chat/dot-1.svg"},{key:2,title:e("Product page is being read"),image:"/images/chat/dot-2.svg"},{key:3,title:e("Product information is being read"),image:"/images/chat/dot-3.svg"},{key:4,title:e("Previous question answers are being read"),image:"/images/chat/dot-4.svg"}];(0,u.useRef)(null);let[a,s]=(0,u.useState)(!1),[o,n]=(0,u.useState)(!1),[l,i]=(0,u.useState)(null),[c,_]=(0,u.useState)(localStorage.getItem("task_id")||null),[m,h]=(0,u.useState)(-1),g=(0,u.useRef)(!1),{selectedProduct:f,addingProductUrl:x,setScreen:v,addProduct:j,setSelectedProduct:w,setSourceScreen:b}=J(Y(e=>({selectedProduct:e.selectedProduct,addingProductUrl:e.addingProductUrl,setScreen:e.setScreen,addProduct:e.addProduct,setSelectedProduct:e.setSelectedProduct,setSourceScreen:e.setSourceScreen}))),T=(0,u.useCallback)(async t=>{!t.trim()||!f?.uid||o||g.current||(g.current=!0,s(!0),i(null),W("scrape_new_product",{session_id:await q(),product_url:t}).then(e=>{n(!0),localStorage.setItem("task_id",e?.task_id||""),_(e?.task_id||null)}).catch(t=>{t.message.includes("Daily scrape limit")&&i(e("Daily scrape limit reached Please try again tomorrow"))}).finally(()=>{s(!1)}))},[f?.uid,o]);(0,u.useEffect)(()=>{x&&!a&&T(x)},[x,a]);let S=(0,u.useCallback)(async()=>{if(!c)return;s(!0);let t=await W("scrape_status",{},{task_id:c});t?.result==="success"?(t?.product_info&&(j(t?.product_info),w(t?.product_info),v("welcome"),b("addProductStepByStep")),n(!0),localStorage.removeItem("task_id"),_(null),s(!1)):t?.result==="failed"&&(v("welcome"),localStorage.removeItem("task_id"),b("addProductStepByStepError"),_(null),s(!1),function(e,{message:t,title:a,duration:s=5e3}){let o=function(){if("u"<typeof document)return null;if(!ed){(ed=document.createElement("div")).style.position="fixed",ed.style.top="20px",ed.style.right="20px",ed.style.zIndex="9999",ed.style.display="flex",ed.style.flexDirection="column",ed.style.gap="10px",ed.style.maxWidth="320px",ed.style.fontFamily='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',document.body.appendChild(ed);let e=document.createElement("style");e.textContent=` 2 @keyframes toastSlideIn { 3 from { transform: translateX(100%); opacity: 0; } 4 to { transform: translateX(0); opacity: 1; } 5 } 6 @keyframes toastSlideOut { 7 from { transform: translateX(0); opacity: 1; } 8 to { transform: translateX(100%); opacity: 0; } 9 } 10 `,document.head.appendChild(e)}return ed}();if(!o)return;let n=document.createElement("div"),r=`toast-${Date.now()}-${Math.random().toString(36).substring(2,9)}`;n.id=r,n.style.padding="12px 16px",n.style.borderRadius="6px",n.style.boxShadow="0 4px 12px rgba(0, 0, 0, 0.15)",n.style.display="flex",n.style.alignItems="flex-start",n.style.gap="12px",n.style.animation="toastSlideIn 0.3s ease",n.style.backgroundColor="white",n.style.border="1px solid rgba(0, 0, 0, 0.1)",n.style.cursor="pointer",n.style.width="100%";let l=document.createElement("div");l.style.width="20px",l.style.height="20px",l.style.borderRadius="50%",l.style.display="flex",l.style.alignItems="center",l.style.justifyContent="center",l.style.flexShrink="0";let i=document.createElement("div");switch(i.style.flex="1",e){case"success":l.style.backgroundColor="#4CAF50",l.innerHTML="â",l.style.color="white",n.style.borderLeft="4px solid #4CAF50";break;case"error":l.style.backgroundColor="#F44336",l.innerHTML="â",l.style.color="white",n.style.borderLeft="4px solid #F44336";break;case"warning":l.style.backgroundColor="#FFC107",l.innerHTML="!",l.style.color="black",n.style.borderLeft="4px solid #FFC107";break;case"info":l.style.backgroundColor="#2196F3",l.innerHTML="i",l.style.color="white",n.style.borderLeft="4px solid #2196F3"}if(a){let e=document.createElement("div");e.textContent=a,e.style.fontWeight="bold",e.style.marginBottom="4px",i.appendChild(e)}let d=document.createElement("div");d.textContent=t,d.style.color="#333",d.style.fontSize="14px",i.appendChild(d);let u=document.createElement("div");u.innerHTML="â",u.style.cursor="pointer",u.style.marginLeft="auto",u.style.fontSize="14px",u.style.color="#999",u.style.flexShrink="0",u.addEventListener("click",e=>{e.stopPropagation(),ec(r)}),n.appendChild(l),n.appendChild(i),n.appendChild(u),n.addEventListener("click",()=>{ec(r)}),o.appendChild(n);let c=window.setTimeout(()=>{ec(r)},s);eu.push({id:r,element:n,timeoutId:c})}("error",{message:e("Failed to scrape product Please check if the product URL is correct and try again")}))},[c,v,j,w]);return((0,u.useEffect)(()=>
10{if(!c)return;let e=setInterval(()=>{S()},5e3);return()=>clearInterval(e)},[S,c]),(0,u.useEffect)(()=>{let e=setInterval(()=>{h(e=>e<t.length-1?e+1:e)},1e3);return()=>clearInterval(e)},[]),f)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.motion.div,{className:ei.default.header,initial:{y:"25%",opacity:0},animate:{y:0,opacity:1},transition:{type:"spring",stiffness:300,damping:28,mass:.8},children:(0,r.jsxs)("div",{className:ei.default.headerContent,children:[(0,r.jsx)("h2",{className:ei.default.title,style:{fontSize:"24px",marginTop:0},children:e("Try Dot Assist")}),(0,r.jsx)("span",{className:ei.default.subtitle,children:e("While importing the product we carefully examine all details When the process is complete Dot Assist will be ready to answer questions about this product")})]})}),(0,r.jsx)("div",{className:ei.default.content,children:(0,r.jsxs)("div",{className:ei.default.loadingContainerWrapper,children:[(0,r.jsx)("div",{className:ei.default.loadingContainer,children:(0,r.jsxs)("div",{className:ei.default.loadingProductImageShimmer,children:[(0,r.jsx)("div",{className:ei.default.skeletonShimmerContainer,children:(0,r.jsx)(y,{type:"text",rowCount:1,styles:{body:{width:"30%",height:20,borderRadius:20}}})}),(0,r.jsx)(y,{className:ei.default.shimmerImage,type:"image"}),(0,r.jsxs)("div",{className:ei.default.skeletonShimmerContainer,children:[(0,r.jsx)(y,{type:"text",rowCount:1,styles:{body:{width:"80%",height:20,borderRadius:20}}}),(0,r.jsx)(y,{type:"text",rowCount:1,styles:{body:{width:"80%",height:20,borderRadius:20}}})]})]})}),(0,r.jsxs)("div",{className:ei.default.loadingContainerContent,children:[(0,r.jsxs)("div",{className:ei.default.loadingTitleWrapper,children:[(0,r.jsx)("img",{src:"/images/chat/dot-1.svg",alt:"loading",className:ei.default.loadingTitleImage,width:20,height:20}),(0,r.jsxs)("span",{className:ei.default.loadingTitle,children:[e("Product is being loaded"),"..."]})]}),(0,r.jsx)("ul",{className:ei.default.stepList,children:t.filter((e,t)=>t<=m).map((e,t)=>{let a=t<m,s=t<=m;return(0,r.jsxs)("li",{className:ei.default.stepItem,children:[(0,r.jsxs)("div",{className:ei.default.stepDotLineWrap,children:[(0,r.jsx)("img",{src:e.key-1===m?e.image:"/images/chat/dot-0.png",alt:e.title,className:ei.default.stepDotImage,width:10,height:10}),t<m&&(0,r.jsx)("div",{className:ei.default.stepLineTrack,children:(0,r.jsx)(d.motion.div,{className:ei.default.stepLineFill,initial:{scaleY:0},animate:{scaleY:+!!a},transition:{duration:.4,ease:"easeOut"}})})]}),(0,r.jsx)(d.motion.div,{className:`${ei.default.stepLabel} ${s?ei.default.stepLabelActive:""} ${a?ei.default.stepLabelCompleted:""}`,initial:!1,animate:{opacity:+!!s},transition:{duration:.25,ease:"easeOut"},children:e.title})]},e.key)})})]})]})})]}):null}let em={opacity:0,scale:.97},ep={opacity:1,scale:1},eh={opacity:0,scale:.98},eg={duration:.26,ease:[.33,1,.68,1]};function ef({isOpen:e,onClose:t}){let{screen:a,setScreen:s,fetchListShowProducts:o,selectedProduct:n,lastChatSession:l,setLastChatSession:i,setSelectedProduct:c}=J(Y(e=>({screen:e.screen,setScreen:e.setScreen,fetchListShowProducts:e.fetchListShowProducts,selectedProduct:e.selectedProduct,lastChatSession:e.lastChatSession,setLastChatSession:e.setLastChatSession,setSelectedProduct:e.setSelectedProduct})));(0,u.useEffect)(()=>{o(),J.persist.rehydrate()},[]),(0,u.useEffect)(()=>{let e=()=>{let e=window.visualViewport?.height??window.innerHeight;document.documentElement.style.setProperty("--vvh",`${e}px`)};return e(),window.visualViewport?.addEventListener("resize",e),window.visualViewport?.addEventListener("scroll",e),window.addEventListener("resize",e),()=>{window.visualViewport?.removeEventListener("resize",e),window.visualViewport?.removeEventListener("scroll",e),window.removeEventListener("resize",e)}},[]);let _=(0,u.useRef)(!1);(0,u.useEffect)(()=>{e&&!_.current&&l&&(c(l.product),s("chat")),_.current=e},[e]);let m=()=>{"chat"===a&&n?i({product:n}):i(null),t(),document.body.style.overflow="auto",setTimeout(()=>{s("welcome")},300)};return(0,r.jsx)(g.AnimatePresence,{children:e&&(0,r.jsx)(d.motion.div,{className:f.default.overlay,onClick:m,initial:{opacity:0}
10,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:(0,r.jsxs)(d.motion.div,{className:f.default.modal,onClick:e=>e.stopPropagation(),initial:{scale:.9,opacity:0,y:20},animate:{scale:1,opacity:1,y:0},exit:{scale:.9,opacity:0,y:20},transition:{type:"spring",stiffness:400,damping:30,duration:.3},children:[(0,r.jsx)("button",{className:f.default.closeButton,onClick:m,"aria-label":"Close",children:(0,r.jsx)("svg",{className:f.default.closeIcon,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,r.jsx)("path",{d:"M18 6L6 18M6 6L18 18",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("div",{className:f.default.screensContainer,children:(0,r.jsx)(g.AnimatePresence,{mode:"wait",initial:!1,children:(0,r.jsx)(d.motion.div,{className:f.default.screenWrapper,initial:em,animate:ep,exit:eh,transition:eg,children:"welcome"===a?(0,r.jsx)(G,{}):"product"===a?(0,r.jsx)(el,{}):"addProductStepByStep"===a?(0,r.jsx)(e_,{}):(0,r.jsx)(en,{})},a)})})]})})})}var ex=e.i(38454);e.s(["default",0,()=>{let e=(0,p.useTranslations)("Hero"),t=e("tryDotAssist"),[a,s]=(0,u.useState)(!1),o=t.split(""),n=(0,u.useRef)(null),g=function(e,{root:t,margin:a,amount:s,once:o=!1,initial:n=!1}={}){let[r,l]=(0,u.useState)(n);return(0,u.useEffect)(()=>{if(!e.current||o&&r)return;let n={root:t&&t.current||void 0,margin:a,amount:s};return function(e,t,{root:a,margin:s,amount:o="some"}={}){let n=(0,c.resolveElements)(e),r=new WeakMap,l=new IntersectionObserver(e=>{e.forEach(e=>{let a=r.get(e.target);if(!!a!==e.isIntersecting)if(e.isIntersecting){let a=t(e.target,e);"function"==typeof a?r.set(e.target,a):l.unobserve(e.target)}else"function"==typeof a&&(a(e),r.delete(e.target))})},{root:a,rootMargin:s,threshold:"number"==typeof o?o:_[o]});return n.forEach(e=>l.observe(e)),()=>l.disconnect()}(e.current,()=>(l(!0),o?void 0:()=>l(!1)),n)},[t,e,a,o,s]),r}(n),f=[e("brand fit responses"),e("sales"),e("customer satisfaction")],[x,v]=(0,u.useState)(0),j=(0,u.useRef)(null);(0,u.useEffect)(()=>(j.current=setInterval(()=>{v(e=>(e+1)%f.length)},3e3),()=>{j.current&&clearInterval(j.current)}),[f.length]),(0,u.useEffect)(()=>{if(a){let e=window.scrollY;document.body.style.position="fixed",document.body.style.top=`-${e}px`,document.body.style.width="100%",document.body.style.overflow="hidden"}else{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,-1*parseInt(e||"0"))}return()=>{let e=document.body.style.top;document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",window.scrollTo(0,-1*parseInt(e||"0"))}},[a]);let y=o.length,w=.07*y,b=w+2+.07*y,T={hidden:{opacity:0},show:e=>{let t=.07*e,a=w+2+(y-1-e)*.07;return{opacity:[0,0,1,1,0,0],transition:{times:[0,t/b,(t+.01)/b,a/b,(a+.01)/b,1],duration:b,repeat:1/0,repeatDelay:.5}}}};return(0,r.jsxs)("div",{className:i.default.container,children:[(0,r.jsx)("div",{className:i.default.content,children:(0,r.jsx)("h1",{className:i.default.header,children:e("Smart Answer Generation Platform").toLocaleUpperCase()})}),(0,r.jsx)("div",{className:i.default.description,children:(0,r.jsxs)("div",{className:i.default.descriptionText,children:[(0,r.jsx)("div",{className:i.default.topLine,children:e("headTitle1")}),(0,r.jsx)("div",{className:i.default.middleLine,children:(0,r.jsx)("div",{className:i.default.descriptionTextHighlight,children:f.map((e,t)=>(0,r.jsx)("span",{className:`${i.default.textItem} ${t===x?i.default.active:""}`,children:e},t))})}),(0,r.jsx)("div",{className:i.default.bottomLine,children:(0,r.jsx)("span",{className:i.default.staticText,children:e("headTitle3")})})]})}),(0,r.jsxs)("div",{className:i.default.subDescription,children:[e("It understands your store products and brand language with AI powered learning")," ",(0,r.jsx)("br",{className:i.default.br}),e("It automatically answers product questions 24 7")]}),(0,r.jsx)("div",{className:i.default.chatInputContainer,onClick:()=>{s(!0),document.body.style.overflow="hidden"},style:{cursor:"pointer"},children:(0,r.jsx)(d.motion.h2,{ref:n,initial:"hidden",animate:g?"show":"",variants:T,className:i.default.chatInputTitle,children:o.map((e,t)=>(0,r.jsx)(d.motion.span,{variants:T,custom:t,children:e},`${e}-${t}`))})}),(0,r.jsxs)("div",{className:i.default.buttons,children:[(0,r.jsx)("div",{className:i.default.button,children:(0,r.jsx)(l.Button,{type:"secondary",size:"md",radius:50,href:"/contact-us",children:(0,r.jsx)("span",{className:i.default.secondaryButtonText,children:e("Contact")})})}),(0,r.jsx)("div",{className:i.default.button,children:(0,r.jsx)(l.Button,{type:"primary",size:"md",radius:50,target:"_blank",href:`https://app.dotassist.ai/signup?lang=${e("lang")}`,children:(0,r.jsx)("span",{className:i.default.buttonText,children:e("Start for Free")})})})]}),(0,r.jsxs)("div",{className:i.default.extraContent,children:[(0,r.jsx)("div",{className:i.default.extraContentItem,children:(0,r.jsx)("span",{className:i.default.extraContentItemText,children:e("No credit card required")})}),(0,r.jsx)("div",{className:i.default.divider}),(0,r.jsxs)("div",{className:i.default.extraContentItem,children:[(0,r.jsx)(m.default,{src:"/images/hero/g2.png",alt:"G2",width:28,height:28}),(0,r.jsx)("span",{className:i.default.extraContentItemText,children:e("G2Text")})]})]}),(0,r.jsx)(ex.default,{children:(0,r.jsx)("div",{className:i.default.videoContainer,children:(0,r.jsx)(h.default,{videoSrc:`/videos/header-video-${e("lang")}.mp4`,posterImage:"/images/backgrounds/header-video-placeholder.png",placeholderImage:"/images/backgrounds/header-video-placeholder.png"})})}),(0,r.jsx)(ef,{isOpen:a,onClose:()=>s(!1)})]})}],74832)},32308,e=>{e.v({featureContainer:"prefeatures-module__QQ0gNa__featureContainer",featureImage:"prefeatures-module__QQ0gNa__featureImage",imageSection:"prefeatures-module__QQ0gNa__imageSection",prefeaturesContainer:"prefeatures-module__QQ0gNa__prefeaturesContainer",prefeaturesTitle:"prefeatures-module__QQ0gNa__prefeaturesTitle",prefeaturesTitleContainer:"prefeatures-module__QQ0gNa__prefeaturesTitleContainer",reverse:"prefeatures-module__QQ0gNa__reverse",subTitle:"prefeatures-module__QQ0gNa__subTitle",title:"prefeatures-module__QQ0gNa__title",titleSection:"prefeatures-module__QQ0gNa__titleSection"})},22241,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(48148),o=e.i(32308),n=e.i(20137),r=e.i(38454);function l(){let e=(0,s.useTranslations)("Prefeatures"),l=[{title:e("preFeaturesTitle1"),subTitle:e("preFeaturesSubTitle1"),image:`/videos/what-is-1-${e("lang")}.mp4`,imageLeft:!1},{title:e("preFeaturesTitle2"),subTitle:e("preFeaturesSubTitle2"),image:`/videos/what-is-2-${e("lang")}.mp4`,imageLeft:!0},{title:e("preFeaturesTitle3"),subTitle:e("preFeaturesSubTitle3"),image:`/videos/what-is-3-${e("lang")}.mp4`,imageLeft:!1},{title:e("preFeaturesTitle4"),subTitle:e("preFeaturesSubTitle4"),image:`/videos/what-is-4-${e("lang")}.mp4`,imageLeft:!0}];return(0,t.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,t.jsxs)("div",{className:o.default.prefeaturesContainer,children:[(0,t.jsxs)("div",{className:o.default.prefeaturesTitleContainer,children:[(0,t.jsx)(n.Badge,{title:e("What Is It")}),(0,t.jsx)("span",{className:o.default.prefeaturesTitle,children:e("prefeaturesTitle")})]}),l.map((e,s)=>(0,t.jsx)(r.default,{children:(0,t.jsxs)("div",{className:e.imageLeft?[o.default.featureContainer,o.default.reverse].join(" "):o.default.featureContainer,children:[(0,t.jsxs)("div",{className:o.default.titleSection,children:[(0,t.jsx)("span",{className:o.default.title,children:e?.title}
10),(0,t.jsx)("span",{className:o.default.subTitle,children:e?.subTitle})]}),(0,t.jsx)("div",{className:o.default.imageSection,children:(0,a.createElement)("video",{className:o.default.featureImage,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"webkit-playsinline":"true",key:e?.image},(0,t.jsx)("source",{src:e?.image,type:"video/mp4"}))})]},"feature"+s)},"feature"+s))]})})}e.s(["default",()=>l])},48068,e=>{e.v({buttonText:"features-module__aVN-dq__buttonText",featureList:"features-module__aVN-dq__featureList",featureListMobile:"features-module__aVN-dq__featureListMobile",featureTitle:"features-module__aVN-dq__featureTitle",featureTitleContainer:"features-module__aVN-dq__featureTitleContainer",featureTitleLeft:"features-module__aVN-dq__featureTitleLeft",featureTitleRight:"features-module__aVN-dq__featureTitleRight",featuresContainer:"features-module__aVN-dq__featuresContainer"})},25606,e=>{e.v({cardBaseDesign:"featuresCard-module__X_yeYW__cardBaseDesign",description:"featuresCard-module__X_yeYW__description",horizontalImageSection:"featuresCard-module__X_yeYW__horizontalImageSection",horizontalTextSection:"featuresCard-module__X_yeYW__horizontalTextSection",reverse:"featuresCard-module__X_yeYW__reverse",title:"featuresCard-module__X_yeYW__title",verticalCardDesign:"featuresCard-module__X_yeYW__verticalCardDesign",verticalImageSection:"featuresCard-module__X_yeYW__verticalImageSection"})},73786,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(48068),o=e.i(42756),n=e.i(20137),r=e.i(57688),l=e.i(25606);let i=({title:e,subTitle:a,image:s,imageLeft:o})=>(0,t.jsxs)("div",{className:[l.default.cardBaseDesign,!o&&l.default.reverse].join(" "),children:[(0,t.jsx)(r.default,{className:l.default.horizontalImageSection,src:s,alt:e,width:1920,height:1080,quality:90}),(0,t.jsxs)("div",{className:l.default.horizontalTextSection,children:[(0,t.jsx)("span",{className:l.default.title,children:e}),(0,t.jsx)("span",{className:l.default.description,children:a})]})]}),d=({title:e,subTitle:a,image:s})=>(0,t.jsxs)("div",{className:[l.default.cardBaseDesign,l.default.verticalCardDesign].join(" "),children:[(0,t.jsx)(r.default,{className:l.default.verticalImageSection,src:s,alt:e,width:1920,height:1080,quality:90}),(0,t.jsxs)("div",{className:l.default.horizontalTextSection,children:[(0,t.jsx)("span",{className:l.default.title,children:e}),(0,t.jsx)("span",{className:l.default.description,children:a})]})]});function u(){let e=(0,a.useTranslations)("Features"),r=[{title:e("featuresTitle1"),subTitle:e("featuresSubTitle1"),image:`/images/features/features-${e("lang")}.png`,mobileImage:`/images/features/features-mobile-${e("lang")}.jpg`,cardType:"horizontal",imageLeft:!0},{title:e("featuresTitle2"),subTitle:e("featuresSubTitle2"),image:`/images/features/features2-${e("lang")}.png`,mobileImage:`/images/features/features2-mobile-${e("lang")}.jpg`,cardType:"vertical"},{title:e("featuresTitle3"),subTitle:e("featuresSubTitle3"),image:`/images/features/features3-${e("lang")}.png`,mobileImage:`/images/features/features3-mobile-${e("lang")}.jpg`,cardType:"vertical"},{title:e("featuresTitle4"),subTitle:e("featuresSubTitle4"),image:`/images/features/features4-${e("lang")}.png`,mobileImage:`/images/features/features4-mobile-${e("lang")}.jpg`,cardType:"horizontal",imageLeft:!1}];return(0,t.jsx)("div",{style:{width:"100%",display:"flex",justifyContent:"center"},children:(0,t.jsxs)("div",{className:s.default.featuresContainer,children:[(0,t.jsxs)("div",{className:s.default.featureTitleContainer,children:[(0,t.jsxs)("div",{className:s.default.featureTitleLeft,children:[(0,t.jsx)(n.Badge,{title:e("Features")}),(0,t.jsx)("span",{className:s.default.featureTitle,children:e("featuresTitle")})]}),(0,t.jsx)("div",{className:s.default.featureTitleRight,children:(0,t.jsx)(o.Button,{type:"primary",size:"md",radius:50,target:"_blank",href:`https://app.dotassist.ai/signup?lang=${e("lang")}`,children:(0,t.jsx)("span",{className:s.default.buttonText,children:e("Start for free")})})})]}),(0,t.jsx)("div",{className:s.default.featureList,children:r.map((e,a)=>e?.cardType=="horizontal"?(0,t.jsx)("div",{"data-card-type":"horizontal",children:(0,t.jsx)(i,{title:e.title,subTitle:e.subTitle,image:e.image,imageLeft:e?.imageLeft||!1})},a):(0,t.jsx)("div",{"data-card-type":"vertical",children:(0,t.jsx)(d,{title:e.title,subTitle:e.subTitle,image:e.image})},a))}),(0,t.jsx)("div",{className:s.default.featureListMobile,children:r.map((e,a)=>e?.cardType=="horizontal"?(0,t.jsx)("div",{"data-card-type":"horizontal",children:(0,t.jsx)(i,{title:e.title,subTitle:e.subTitle,image:e.mobileImage,imageLeft:e?.imageLeft||!1})},a):(0,t.jsx)("div",{"data-card-type":"vertical",children:(0,t.jsx)(d,{title:e.title,subTitle:e.subTitle,image:e.mobileImage})},a))})]})})}e.s(["default",()=>u],73786)},41892,e=>{e.v({activeItem:"integration-module__IoP3wG__activeItem",activeItemHeader:"integration-module__IoP3wG__activeItemHeader",badge:"integration-module__IoP3wG__badge",borderProgress:"integration-module__IoP3wG__borderProgress",container:"integration-module__IoP3wG__container",fadeInUp:"integration-module__IoP3wG__fadeInUp",head:"integration-module__IoP3wG__head",header:"integration-module__IoP3wG__header",integrationContainer:"integration-module__IoP3wG__integrationContainer",item:"integration-module__IoP3wG__item",itemContent:"integration-module__IoP3wG__itemContent",itemDesc:"integration-module__IoP3wG__itemDesc",itemHeader:"integration-module__IoP3wG__itemHeader",itemMobileDesc:"integration-module__IoP3wG__itemMobileDesc",itemNumber:"integration-module__IoP3wG__itemNumber",left:"integration-module__IoP3wG__left",right:"integration-module__IoP3wG__right",rightImageEnterDown:"integration-module__IoP3wG__rightImageEnterDown",rightImageEnterUp:"integration-module__IoP3wG__rightImageEnterUp",rightImageExitDown:"integration-module__IoP3wG__rightImageExitDown",rightImageExitUp:"integration-module__IoP3wG__rightImageExitUp",slideDownFromTop:"integration-module__IoP3wG__slideDownFromTop",slideDownToBottom:"integration-module__IoP3wG__slideDownToBottom",slideInFromTop:"integration-module__IoP3wG__slideInFromTop",slideUpFromBottom:"integration-module__IoP3wG__slideUpFromBottom",slideUpToTo
10p:"integration-module__IoP3wG__slideUpToTop",subContainer:"integration-module__IoP3wG__subContainer"})},85947,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(41892),o=e.i(48148),n=e.i(20137);e.s(["IntegrationSection",0,()=>{let e=(0,o.useTranslations)("Integration"),[r,l]=(0,a.useState)(0),[i,d]=(0,a.useState)(0),[u,c]=(0,a.useState)(!1),[_,m]=(0,a.useState)(null),[p,h]=(0,a.useState)("up"),[g,f]=(0,a.useState)(!1),x=(0,a.useRef)(null),v=(0,a.useRef)(null),j=(0,a.useRef)([]),y=[{title:e("integrateTitle"),description:[e("integrateDescription")],image:`/videos/start1-${e("lang")}.mp4`},{title:e("learnTitle"),description:[e("learnDescription")],image:`/videos/start2-${e("lang")}.mp4`},{title:e("enhanceTitle"),description:[e("enhanceDescription")],image:`/videos/start3-${e("lang")}.mp4`},{title:e("relaxTitle"),description:[e("relaxDescription")],image:`/videos/start4-${e("lang")}.mp4`}],w=e=>{let t=j.current[e],a=v.current;if(!t||!a)return;let s=t.offsetLeft,o=t.offsetWidth,n=a.offsetWidth;a.scrollTo({left:s-n/2+o/2,behavior:"smooth"})};return(0,a.useEffect)(()=>{let e=new IntersectionObserver(([t])=>{t.isIntersecting&&(f(!0),e.disconnect())},{threshold:.2});return x.current&&e.observe(x.current),()=>e.disconnect()},[]),(0,a.useEffect)(()=>{if(!g)return;let e=setInterval(()=>{d(e=>{let t=e+.67;return t>=100?100:t})},100);return()=>clearInterval(e)},[r,g]),(0,a.useEffect)(()=>{if(i>=99.9){let e=(r+1)%y.length;m(r),h("up"),d(0),c(!0),requestAnimationFrame(()=>{l(e),w(e),setTimeout(()=>{c(!1),m(null)},700)})}},[i,y.length,r]),(0,t.jsx)("div",{className:s.default.container,ref:x,children:(0,t.jsxs)("div",{className:s.default.subContainer,children:[(0,t.jsxs)("div",{className:s.default.head,children:[(0,t.jsx)(n.Badge,{title:e("letsGetStarted")}),(0,t.jsx)("h3",{className:s.default.header,children:e("buildStepByStep")})]}),(0,t.jsxs)("div",{className:s.default.integrationContainer,children:[(0,t.jsx)("div",{className:s.default.left,ref:v,children:y?.map((e,a)=>(0,t.jsxs)("div",{ref:e=>{j.current[a]=e},onClick:()=>{a===r||u||(m(r),h(a>r?"up":"down"),d(0),c(!0),requestAnimationFrame(()=>{l(a),w(a),setTimeout(()=>{c(!1),m(null)},700)}))},className:`${s.default.item} ${r===a?s.default.activeItem:""}`,style:{transition:"all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1)"},children:[(0,t.jsx)("div",{className:s.default.borderProgress,style:{"--progress":r===a?`${i}%`:"0%"}}),(0,t.jsxs)("div",{className:s.default.itemContent,children:[(0,t.jsx)("div",{className:s.default.itemNumber,children:(0,t.jsx)("span",{children:"0"+(1+a)})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:`${s.default.itemHeader} ${r===a?s.default.activeItemHeader:""}`,children:e.title}),r===a&&!u&&e.description.map((e,o)=>(0,t.jsx)("p",{className:s.default.itemDesc,children:e},`${a}-${o}`))]})]})]},a))}),(0,t.jsx)("p",{className:s.default.itemMobileDesc,children:y[r].description?.[0]},`mobile-${r}`),(0,t.jsxs)("div",{className:s.default.right,children:[null!==_&&(0,a.createElement)("video",{className:"up"===p?s.default.rightImageExitUp:s.default.rightImageExitDown,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"webkit-playsinline":"true",key:`exit-${y[_]?.image}`},(0,t.jsx)("source",{src:y[_]?.image,type:"video/mp4"})),(0,a.createElement)("video",{className:"up"===p?s.default.rightImageEnterUp:s.default.rightImageEnterDown,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,"webkit-playsinline":"true",key:y[r]?.image},(0,t.jsx)("source",{src:y[r]?.image,type:"video/mp4"}))]})]})]})})}])},78930,e=>{e.v({available:"askDotAssist-module__HTpAxW__available",background:"askDotAssist-module__HTpAxW__background",cardText:"askDotAssist-module__HTpAxW__cardText",cardTitle:"askDotAssist-module__HTpAxW__cardTitle",chatgpt:"askDotAssist-module__HTpAxW__chatgpt",chevron:"askDotAssist-module__HTpAxW__chevron",claude:"askDotAssist-module__HTpAxW__claude",container:"askDotAssist-module__HTpAxW__container",content:"askDotAssist-module__HTpAxW__content",inner:"askDotAssist-module__HTpAxW__inner",left:"askDotAssist-module__HTpAxW__left",leftSub:"askDotAssist-module__HTpAxW__leftSub",newBadge:"askDotAssist-module__HTpAxW__newBadge",newText:"askDotAssist-module__HTpAxW__newText",right:"askDotAssist-module__HTpAxW__right",soon:"askDotAssist-module__HTpAxW__soon",subtitle:"askDotAssist-module__HTpAxW__subtitle",title:"askDotAssist-module__HTpAxW__title"})},43876,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(57688),o=e.i(78930);let n=()=>{let e=(0,a.useTranslations)("AskDotAssist");return(0,t.jsx)("div",{className:o.default.container,children:(0,t.jsx)("div",{className:o.default.background,children:(0,t.jsx)("div",{className:o.default.inner,children:(0,t.jsxs)("div",{className:o.default.content,children:[(0,t.jsx)("div",{className:o.default.left,children:(0,t.jsxs)("div",{className:o.default.leftSub,children:[(0,t.jsx)("h2",{className:o.default.title,children:e("title")}),(0,t.jsx)("p",{className:o.default.subtitle,children:e("description")})]})}),(0,t.jsxs)("div",{className:o.default.right,children:[(0,t.jsxs)("a",{className:o.default.chatgpt,href:"https://chatgpt.com/g/g-696cd88aec908191afaf067155277098-dot-assist-content-tween",target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(s.default,{src:"/images/icon/open-ai.svg",alt:"ChatGPT",width:72,height:72}),(0,t.jsxs)("div",{className:o.default.cardText,children:[(0,t.jsx)("span",{className:o.default.cardTitle,children:e("chatgpt")}),(0,t.jsx)("span",{className:o.default.available,children:e("available")})]}),(0,t.jsx)(s.default,{src:"/images/icon/chevron-down-gray.svg",alt:"",width:24,height:24,className:o.default.chevron})]}),(0,t.jsxs)("div",{className:o.default.claude,children:[(0,t.jsx)(s.default,{src:"/images/icon/claude.svg",alt:"Claude",width:72,height:72}),(0,t.jsxs)("div",{className:o.default.cardText,children:[(0,t.jsx)("span",{className:o.default.cardTitle,children:e("claude")}),(0,t.jsx)("span",{className:o.default.soon,children:e("soon")})]})]})]})]})})})})};e.s(["AskDotAssistSection",0,n,"default",0,n])},28751,e=>{e.v({arrow:"pricing-module__uAR2Sq__arrow",button:"pricing-module__uAR2Sq__button",pricingCards:"pricing-module__uAR2Sq__pricingCards",pricingContainer:"pricing-module__uAR2Sq__pricingContainer",pricingDescription:"pricing-module__uAR2Sq__pricingDescription",pricingHead:"pricing-module__uAR2Sq__pricingHead",pricingHeadBadge:"pricing-module__uAR2Sq__pricingHeadBadge",pricingTitle:"pricing-module__uAR2Sq__pricingTitle",questionCountContainer:"pricing-module__uAR2Sq__questionCountContainer",questionCountTitle:"pricing-module__uAR2Sq__questionCountTitle",secondaryButtonText:"pricing-module__uAR2Sq__secondaryButtonText",select:"pricing-module__uAR2Sq__select",selectWrapper:"pricing-module__uAR2Sq__selectWrapper"})},25867,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(28751),o=e.i(20137),n=e.i(12595),r=e.i(66866),l=e.i(71645),i=e.i(57688),d=e.i(36435),u=e.i(42756);e.s(["PricingSection",0,()=>{let e=(0,a.useTranslations)("Pricing"),[c,_]=l.default.useState(0),[m,p]=l.default.useState(!1),{pricing:h}=(0,r.PricingValues)();return(0,t.jsxs)("div",{className:s.default.pricingContainer,children:[(0,t.jsxs)("div",{className:s.default.pricingHead,children:[(0,t.jsxs)("div",{className:s.default.pricingHeadBadge,children:[(0,t.jsx)(o.Badge,{title:e("Pricing")}),(0,t.jsx)("span",{className:s.default.pricingTitle,children:e("pricingTitle")})]}),(0,t.jsx)("span",{className:s.default.pricingDescription,children:e("pricingDescription")}),(0,t.jsx)("div",{className:s.default.button,children:(0,t.jsx)(u.Button,{type:"secondary",size:"xl",radiu
10s:50,href:"/contact-us",children:(0,t.jsx)("span",{className:s.default.secondaryButtonText,children:e("Contact")})})})]}),(0,t.jsxs)("div",{className:s.default.questionCountContainer,children:[(0,t.jsx)("span",{className:s.default.questionCountTitle,children:e("questionCountTitle")}),(0,t.jsxs)("div",{className:s.default.selectWrapper,children:[(0,t.jsx)("select",{className:s.default.select,value:c??"",onChange:e=>{_(Number(e.target.value))},children:r.pricesRange.map((e,a)=>(0,t.jsx)("option",{value:a,children:e},a))}),(0,t.jsx)(i.default,{alt:"dropdown icon",width:20,height:20,src:"/images/icon/chevron-down-gray.svg",className:s.default.arrow})]})]}),(0,t.jsx)("div",{className:s.default.pricingCards,children:h?.map((e,a)=>(0,t.jsx)(n.PricingCard,{plan:e.plan,prices:e.prices,style:{width:"100%"},subPlanTitle:e.subPlanTitle,selectedPriceIndex:c,price:e.price,steps:e.steps,featuresModalIndexes:e?.featuresModalIndexes,advancedText:e.advancedText,currency:e.currency,isPopular:e.isPopular,link:e.link,featuresIncludeTextAnother:e?.featuresIncludeTextAnother,featuresIncludeText:e.featuresIncludeText,features:e.features,setIsSupportModalOpen:p},"pricing-card-"+a))}),(0,t.jsx)(d.default,{isOpen:m,onClose:()=>p(!1)})]})}])},75185,e=>{e.v({bannerContainer:"banner-module__Eusu6a__bannerContainer",bannerLeft:"banner-module__Eusu6a__bannerLeft",bannerRight:"banner-module__Eusu6a__bannerRight",bannerSubContainer:"banner-module__Eusu6a__bannerSubContainer",mobileImage:"banner-module__Eusu6a__mobileImage",slideDownUp:"banner-module__Eusu6a__slideDownUp",subTitle:"banner-module__Eusu6a__subTitle",subTitleBold:"banner-module__Eusu6a__subTitleBold",title:"banner-module__Eusu6a__title"})},87188,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(75185),o=e.i(57688),n=e.i(38454);function r(){let e=(0,a.useTranslations)("Banner");return(0,t.jsx)(n.default,{children:(0,t.jsx)("div",{className:s.default.bannerContainer,children:(0,t.jsxs)("div",{className:s.default.bannerSubContainer,children:[(0,t.jsx)("div",{className:s.default.bannerLeft,style:{"--slide-image":`url('/images/banner/slide-${e("lang")}.png')`},children:(0,t.jsx)(o.default,{className:s.default.mobileImage,src:`/images/banner/mobile-slide-${e("lang")}.png`,alt:"dot assist mobile",loading:"lazy",width:300,height:260,quality:76})}),(0,t.jsxs)("div",{className:s.default.bannerRight,children:[(0,t.jsx)("div",{className:s.default.title,children:e("bannerTitle")}),(0,t.jsxs)("div",{className:s.default.subTitle,children:[e("bannerSubTitle1")," ",(0,t.jsx)("span",{className:s.default.subTitleBold,children:e("bannerSubTitle2")})," ",e("and")," ",(0,t.jsx)("span",{className:s.default.subTitleBold,children:e("bannerSubTitle3")})," ",e("bannerSubTitle4")]})]})]})})})}e.s(["default",()=>r])},71986,e=>{e.v({carouselSlide:"successStory-module__mbOawq__carouselSlide",carouselTrack:"successStory-module__mbOawq__carouselTrack",carouselWrapper:"successStory-module__mbOawq__carouselWrapper",container:"successStory-module__mbOawq__container",goToSuccessStories:"successStory-module__mbOawq__goToSuccessStories",header:"successStory-module__mbOawq__header",navButton:"successStory-module__mbOawq__navButton",navButtonLeft:"successStory-module__mbOawq__navButtonLeft",navButtonRight:"successStory-module__mbOawq__navButtonRight",sectionHeader:"successStory-module__mbOawq__sectionHeader",sectionSubHeader:"successStory-module__mbOawq__sectionSubHeader",storiesContainer:"successStory-module__mbOawq__storiesContainer"})},48237,e=>{e.v({cardBottom:"successStoriesCarouselCard-module__9c_hDW__cardBottom",cardContainer:"successStoriesCarouselCard-module__9c_hDW__cardContainer",cardHeader:"successStoriesCarouselCard-module__9c_hDW__cardHeader",cardTitle:"successStoriesCarouselCard-module__9c_hDW__cardTitle",customerDetailInfo:"successStoriesCarouselCard-module__9c_hDW__customerDetailInfo",customerInfo:"successStoriesCarouselCard-module__9c_hDW__customerInfo",customerPosition:"successStoriesCarouselCard-module__9c_hDW__customerPosition",customerTitle:"successStoriesCarouselCard-module__9c_hDW__customerTitle"})},89199,e=>{"use strict";var t=e.i(43476),a=e.i(71986),s=e.i(20137),o=e.i(48148),n=e.i(57688),r=e.i(71645),l=e.i(48237);function i(e){let{userImage:a,logo:s,title:o,customerName:r,customerPosition:i}=e;return(0,t.jsxs)("div",{className:l.default.cardContainer,style:{backgroundImage:"url(/images/backgrounds/testimonials-bg-new.jpg)",backgroundSize:"cover",backgroundPosition:"center"},children:[(0,t.jsx)("div",{className:l.default.cardHeader,children:(0,t.jsx)(n.default,{src:s,alt:o,width:180,height:72,style:{objectFit:"contain"}})}),(0,t.jsxs)("div",{className:l.default.cardBottom,children:[(0,t.jsx)("span",{className:l.default.cardTitle,children:o}),(0,t.jsxs)("div",{className:l.default.customerInfo,children:[(0,t.jsxs)("div",{className:l.default.customerDetailInfo,children:[(0,t.jsx)("span",{className:l.default.customerTitle,children:r}),(0,t.jsx)("span",{className:l.default.customerPosition,children:i})]}),(0,t.jsx)(n.default,{src:a,alt:o,width:80,height:80,style:{objectFit:"contain",borderRadius:"50%"}})]})]})]})}var d=e.i(22016);function u(){let e=(0,o.useTranslations)("SuccessStory"),[l,u]=(0,r.useState)(0),[c,_]=(0,r.useState)(!1),m=(0,r.useRef)(null),p=(0,r.useRef)(null),[h,g]=(0,r.useState)(!1),f=(0,r.useRef)(!1),x=(0,r.useRef)(0),v=(0,r.useRef)(0),j=(0,r.useRef)(0),y=(0,r.useRef)(0),w=[{userImage:"/images/successStories/ecommerce-eczacibasi.jpg",logo:"/images/successStories/eczacibasi-icon.png",title:e("eczacibasiTitle"),customerName:"Murat Ergün",customerPosition:e("eczacibasiPosition")},{userImage:"/images/successStories/ecommerce-altinyildiz.jpg",logo:"/images/successStories/altinyildiz-icon.png",title:e("altinyildizTitle"),customerName:"Enis Habif",customerPosition:e("altinyildizPosition")},{userImage:"/images/successStories/ecommerce-karaca.jpg",logo:"/images/successStories/karaca-icon.png",title:e("karacaTitle"),customerName:"Sinem Kerti",customerPosition:e("karacaPosition")},{userImage:"/images/successStories/ecommerce-the-purest.jpg",logo:"/images/successStories/the-purest-icon.png",title:e("thePurestTitle"),customerName:"Alim Ozan EvliyaoÄlu",customerPosition:e("thePurestPosition")},{userImage:"/images/successStories/ecommerce-madamecoco.jpg",logo:"/images/successStories/madamecoco-icon.png",title:e("madameCocoTitle"),customerName:"Firdevs ÃalıÅkan",customerPosition:e("madameCocoPosition")},{userImage:"/images/successStories/ecommerce-kiko.jpg",logo:"/images/successStories/kiko-icon.png",title:e("kikoTitle"),customerName:"Orhan Åentürk",customerPosition:e("kikoPosition")},{userImage:"/images/successStories/ecommerce-flormar.jpg",logo:"/images/successStories/flormar-icon.png",title:e("flormarTitle"),customerName:"Sedat Fırat",customerPosition:e("flormarPosition")},{userImage:"/images/successStories/ecommerce-yatas.jpg",logo:"/images/successStories/yatas-icon.png",title:e("yatasTitle"),customerName:"Gülse KuÅ Erol",customerPosition:e("yatasPosition")}],b=[...w,...w,...w],T=w.length,S=(0,r.useCallback)(()=>
10{if(!m.current||!p.current)return 0;let e=m.current.children;return 0===e.length?0:e[0].offsetWidth+(parseFloat(getComputedStyle(m.current).gap)||24)},[]),C=(0,r.useCallback)(e=>{if(!m.current||!p.current)return 0;let t=p.current.offsetWidth,a=m.current.children;if(0===a.length)return 0;let s=a[0].offsetWidth;return t/2-s/2-e*(s+(parseFloat(getComputedStyle(m.current).gap)||24))},[]),N=(0,r.useCallback)((e,t=!0)=>{if(!m.current||!p.current)return;let a=C(e);y.current=a,m.current.style.transition=t?"transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)":"none",m.current.style.transform=`translateX(${a}px)`},[C]),W=(0,r.useCallback)(()=>{c||(_(!0),u(e=>e+1))},[c]),A=(0,r.useCallback)(()=>{c||(_(!0),u(e=>e-1))},[c]),I=(0,r.useCallback)(e=>{!c&&(f.current=!0,x.current=e,v.current=e,j.current=Date.now(),m.current&&(m.current.style.transition="none"))},[c]),P=(0,r.useCallback)(e=>{if(!f.current||!m.current)return;v.current=e;let t=e-x.current;m.current.style.transform=`translateX(${y.current+t}px)`},[]),B=(0,r.useCallback)(()=>{if(!f.current)return;f.current=!1;let e=v.current-x.current,t=Math.abs(e)/(Date.now()-j.current),a=S(),s=0;a>0&&(t>.3||Math.abs(e)>.3*a)&&(s=Math.max(1,Math.round(Math.abs(e)/a))),s>0?(_(!0),e<0?u(e=>e+s):u(e=>e-s)):m.current&&(m.current.style.transition="transform 0.3s cubic-bezier(0.4, 0, 0.2, 1)",m.current.style.transform=`translateX(${y.current}px)`)},[S]),k=(0,r.useCallback)(e=>{e.preventDefault(),I(e.clientX)},[I]);(0,r.useEffect)(()=>{let e=e=>P(e.clientX),t=()=>B();return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}},[P,B]);let q=(0,r.useCallback)(e=>{I(e.touches[0].clientX)},[I]),D=(0,r.useCallback)(e=>{P(e.touches[0].clientX)},[P]),L=(0,r.useCallback)(()=>{B()},[B]);return(0,r.useEffect)(()=>{if(!h||(N(l,!0),!c))return;let e=setTimeout(()=>{_(!1),l>=2*T?requestAnimationFrame(()=>{N(T,!1),u(T)}):l<=0&&requestAnimationFrame(()=>{N(T,!1),u(T)})},500);return()=>clearTimeout(e)},[l,c,T,N,h]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{u(T),N(T,!1),g(!0)},0);return()=>clearTimeout(e)},[T,N]),(0,r.useEffect)(()=>{let e,t=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{N(l,!1)})};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),cancelAnimationFrame(e)}},[l,N]),(0,t.jsxs)("div",{className:a.default.container,children:[(0,t.jsxs)("div",{className:a.default.sectionHeader,children:[(0,t.jsx)(s.Badge,{title:e("Success Stories")}),(0,t.jsxs)("div",{className:a.default.sectionSubHeader,children:[(0,t.jsx)("span",{className:a.default.header,children:e("header")}),(0,t.jsxs)(d.default,{className:a.default.goToSuccessStories,href:"/success-stories",children:[(0,t.jsx)("span",{children:e("See all success stories")}),(0,t.jsx)(n.default,{src:"/images/icon/arrow-right.svg",width:14,height:14,alt:"arrow right"})]})]})]}),(0,t.jsxs)("div",{className:a.default.carouselWrapper,ref:p,children:[(0,t.jsx)("button",{className:`${a.default.navButton} ${a.default.navButtonLeft}`,onClick:A,"aria-label":"Previous slide",disabled:c,children:(0,t.jsx)(n.default,{src:"/images/icon/arrow-left-gray.svg",width:16,height:16,alt:"previous"})}),(0,t.jsx)("div",{className:a.default.storiesContainer,children:(0,t.jsx)("div",{ref:m,className:a.default.carouselTrack,onMouseDown:k,onTouchStart:q,onTouchMove:D,onTouchEnd:L,style:{cursor:f.current?"grabbing":"grab"},children:b.map((e,s)=>(0,t.jsx)("div",{className:a.default.carouselSlide,children:(0,t.jsx)(i,{...e})},s))})}),(0,t.jsx)("button",{className:`${a.default.navButton} ${a.default.navButtonRight}`,onClick:W,"aria-label":"Next slide",disabled:c,children:(0,t.jsx)(n.default,{src:"/images/icon/arrow-right-gray.svg",width:16,height:16,alt:"next"})})]})]})}e.s(["default",()=>u],89199)},25580,e=>{e.v({carouselSlide:"realQuestion-module__jcnWiW__carouselSlide",carouselTrack:"realQuestion-module__jcnWiW__carouselTrack",carouselWrapper:"realQuestion-module__jcnWiW__carouselWrapper",container:"realQuestion-module__jcnWiW__container",goToSuccessStories:"realQuestion-module__jcnWiW__goToSuccessStories",header:"realQuestion-module__jcnWiW__header",navButton:"realQuestion-module__jcnWiW__navButton",navButtonLeft:"realQuestion-module__jcnWiW__navButtonLeft",navButtonRight:"realQuestion-module__jcnWiW__navButtonRight",sectionContainer:"realQuestion-module__jcnWiW__sectionContainer",sectionHeader:"realQuestion-module__jcnWiW__sectionHeader",sectionSubHeader:"realQuestion-module__jcnWiW__sectionSubHeader",storiesContainer:"realQuestion-module__jcnWiW__storiesContainer",subContainer:"realQuestion-module__jcnWiW__subContainer"})},43805,e=>{e.v({answerBubble:"realQuestionCard-module__KLVAoq__answerBubble",answerInfo:"realQuestionCard-module__KLVAoq__answerInfo",answerTimeContainer:"realQuestionCard-module__KLVAoq__answerTimeContainer",answerTimeHeader:"realQuestionCard-module__KLVAoq__answerTimeHeader",answerTitle:"realQuestionCard-module__KLVAoq__answerTitle",answeredText:"realQuestionCard-module__KLVAoq__answeredText",answeredTime:"realQuestionCard-module__KLVAoq__answeredTime",cardBottom:"realQuestionCard-module__KLVAoq__cardBottom",cardContainer:"realQuestionCard-module__KLVAoq__cardContainer",cardHeader:"realQuestionCard-module__KLVAoq__cardHeader",cardTitle:"realQuestionCard-module__KLVAoq__cardTitle",customerPosition:"realQuestionCard-module__KLVAoq__customerPosition",customerTitle:"realQuestionCard-module__KLVAoq__customerTitle",dot:"realQuestionCard-module__KLVAoq__dot",dotAssistText:"realQuestionCard-module__KLVAoq__dotAssistText",image:"realQuestionCard-module__KLVAoq__image",learnDetail:"realQuestionCard-module__KLVAoq__learnDetail",learnDetailBold:"realQuestionCard-module__KLVAoq__learnDetailBold",rightBubble:"realQuestionCard-module__KLVAoq__rightBubble"})},98278,e=>{"use strict";var t=e.i(43476),a=e.i(25580),s=e.i(20137),o=e.i(48148),n=e.i(57688),r=e.i(71645),l=e.i(43805);function i(e){let a=(0,o.useTranslations)("RealQuestion"),{productImage:s,question:r,answeredTime:i,answer:d,learnDetail:u}=e;return(0,t.jsxs)("div",{className:l.default.cardContainer,children:[(0,t.jsx)("div",{className:l.default.cardHeader,children:(0,t.jsx)(n.default,{className:l.default.image,src:s,alt:r,width:100,height:100,style:{objectFit:"contain"}})}),(0,t.jsxs)("div",{className:l.default.cardBottom,children:[(0,t.jsx)("span",{className:l.default.cardTitle,children:r}),(0,t.jsxs)("div",{className:l.default.answerInfo,children:[(0,t.jsxs)("div",{className:l.default.answerBubble,children:[(0,t.jsx)(n.default,{src:"/images/icon/ai-icon.svg",alt:"Dot assist ai",width:34,he
10ight:34,style:{objectFit:"contain"}}),(0,t.jsxs)("div",{className:l.default.rightBubble,children:[(0,t.jsxs)("div",{className:l.default.answerTimeContainer,children:[(0,t.jsxs)("div",{className:l.default.answerTimeHeader,children:[(0,t.jsx)("span",{className:l.default.dotAssistText,children:a("Dot Assist")}),(0,t.jsx)("span",{className:l.default.answeredText,children:a("answered")})]}),(0,t.jsx)("div",{className:l.default.dot}),(0,t.jsx)("span",{className:l.default.answeredTime,children:a("answered in {time} seconds",{time:i})})]}),(0,t.jsx)("span",{className:l.default.answerTitle,children:d})]})]}),(0,t.jsxs)("span",{className:l.default.learnDetail,children:[a("DotAssitDetailFirst")," ",(0,t.jsx)("span",{className:l.default.learnDetailBold,children:u})," ",a("DotAssitDetailLast")]})]})]})]})}function d(){let e=(0,o.useTranslations)("RealQuestion"),[l,d]=(0,r.useState)(0),[u,c]=(0,r.useState)(!1),_=(0,r.useRef)(null),m=(0,r.useRef)(null),[p,h]=(0,r.useState)(!1),g=(0,r.useRef)(!1),f=(0,r.useRef)(0),x=[{productImage:"/images/realQuestion/product-1.jpg",question:e("question1"),answeredTime:5,answer:e("answer1"),learnDetail:e("learnDetail1")},{productImage:"/images/realQuestion/product-2.jpg",question:e("question2"),answeredTime:3,answer:e("answer2"),learnDetail:e("learnDetail2")},{productImage:"/images/realQuestion/product-3.jpg",question:e("question3"),answeredTime:3,answer:e("answer3"),learnDetail:e("learnDetail3")},{productImage:"/images/realQuestion/product-4.jpg",question:e("question4"),answeredTime:4,answer:e("answer4"),learnDetail:e("learnDetail4")},{productImage:"/images/realQuestion/product-5.jpg",question:e("question5"),answeredTime:2,answer:e("answer5"),learnDetail:e("learnDetail5")},{productImage:"/images/realQuestion/product-6.jpg",question:e("question6"),answeredTime:2,answer:e("answer6"),learnDetail:e("learnDetail6")},{productImage:"/images/realQuestion/product-7.jpg",question:e("question7"),answeredTime:2,answer:e("answer7"),learn
10Detail:e("learnDetail7")}],v=[...x,...x,...x],j=x.length,y=(0,r.useCallback)((e,t=!0)=>{if(!_.current||!m.current)return;let a=m.current.offsetWidth,s=_.current.children;if(0===s.length)return;let o=s[0].offsetWidth,n=parseFloat(getComputedStyle(_.current).gap)||24;_.current&&(_.current.style.transition=t?"transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)":"none",_.current.style.transform=`translateX(${a/2-o/2-e*(o+n)}px)`)},[]),w=(0,r.useCallback)(()=>{u||(c(!0),d(e=>e+1))},[u]),b=(0,r.useCallback)(()=>{u||(c(!0),d(e=>e-1))},[u]),T=(0,r.useCallback)(e=>{!u&&(g.current=!0,f.current=e,_.current&&(_.current.style.transition="none"))},[u]),S=(0,r.useCallback)(e=>{if(!g.current||!_.current||!m.current)return;let t=e-f.current,a=m.current.offsetWidth,s=_.current.children;if(0===s.length)return;let o=s[0].offsetWidth,n=a/2-o/2-l*(o+(parseFloat(getComputedStyle(_.current).gap)||24));_.current.style.transform=`translateX(${n+t}px)`},[l]),C=(0,r.useCallback)(e=>{if(!g.current)return;g.current=!1;let t=e-f.current;t<-50?w():t>50?b():y(l,!0)},[l,w,b,y]);(0,r.useEffect)(()=>{if(!p||(y(l,!0),!u))return;let e=setTimeout(()=>{c(!1),l>=2*j?requestAnimationFrame(()=>{y(j,!1),d(j)}):l<=0&&requestAnimationFrame(()=>{y(j,!1),d(j)})},500);return()=>clearTimeout(e)},[l,u,j,y,p]),(0,r.useEffect)(()=>{let e=setTimeout(()=>{d(j),y(j,!1),h(!0)},0);return()=>clearTimeout(e)},[j,y]);let N=(0,r.useCallback)(()=>{if(!_.current)return;let e=_.current.querySelectorAll(`.${a.default.carouselSlide} > *`);e.forEach(e=>{e.style.height="auto"}),requestAnimationFrame(()=>{let t=Math.max(...Array.from(e).map(e=>e.offsetHeight));e.forEach(e=>{e.style.height=`${t}px`})})},[a.default.carouselSlide]);return(0,r.useEffect)(()=>{p&&N()},[p,N]),(0,r.useEffect)(()=>{let e,t=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{y(l,!1),N()})};return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),cancelAnimationFrame(e)}},[l,y,N]),(0,t.jsx)("div",{className:a.default.container,children:(0,t.jsxs)("div",{className:a.default.subContainer,children:[(0,t.jsx)("div",{className:a.default.sectionContainer,children:(0,t.jsxs)("div",{className:a.default.sectionHeader,children:[(0,t.jsx)(s.Badge,{title:e("Real questions and answers")}),(0,t.jsx)("div",{className:a.default.sectionSubHeader,children:(0,t.jsx)("span",{className:a.default.header,children:e("Your customers are asking Dot Assist is answering")})})]})}),(0,t.jsxs)("div",{className:a.default.carouselWrapper,ref:m,onMouseDown:e=>T(e.clientX),onMouseMove:e=>S(e.clientX),onMouseUp:e=>C(e.clientX),onMouseLeave:e=>{g.current&&C(e.clientX)},onTouchStart:e=>T(e.touches[0].clientX),onTouchMove:e=>{e.preventDefault(),S(e.touches[0].clientX)},onTouchEnd:e=>C(e.changedTouches[0].clientX),children:[(0,t.jsx)("button",{className:`${a.default.navButton} ${a.default.navButtonLeft}`,onClick:b,"aria-label":"Previous slide",disabled:u,children:(0,t.jsx)(n.default,{src:"/images/icon/arrow-left-gray.svg",width:16,height:16,alt:"previous"})}),(0,t.jsx)("div",{className:a.default.storiesContainer,children:(0,t.jsx)("div",{ref:_,className:a.default.carouselTrack,children:v.map((e,s)=>(0,t.jsx)("div",{className:a.default.carouselSlide,children:(0,t.jsx)(i,{...e})},s))})}),(0,t.jsx)("button",{className:`${a.default.navButton} ${a.default.navButtonRight}`,onClick:w,"aria-label":"Next slide",disabled:u,children:(0,t.jsx)(n.default,{src:"/images/icon/arrow-right-gray.svg",width:16,height:16,alt:"next"})})]})]})})}e.s(["default",()=>d],98278)},42373,e=>{e.v({bottomContainer:"partnerVideo-module__o1YlJW__bottomContainer",card:"partnerVideo-module__o1YlJW__card",cardBg:"partnerVideo-module__o1YlJW__cardBg",cardContent:"partnerVideo-module__o1YlJW__cardContent",cardVideo:"partnerVideo-module__o1YlJW__cardVideo",cardVideoVisible:"partnerVideo-module__o1YlJW__cardVideoVisible",closeButton:"partnerVideo-module__o1YlJW__closeButton",container:"partnerVideo-module__o1YlJW__container",g2Container:"partnerVideo-module__o1YlJW__g2Container",g2Icon:"partnerVideo-module__o1YlJW__g2Icon",g2Logo:"partnerVideo-module__o1YlJW__g2Logo",g2SubContainer:"partnerVideo-module__o1YlJW__g2SubContainer",g2Text:"partnerVideo-module__o1YlJW__g2Text",gradient:"partnerVideo-module__o1YlJW__gradient",leftText:"partnerVideo-module__o1YlJW__leftText",modalContainer:"partnerVideo-module__o1YlJW__modalContainer",modalOverlay:"partnerVideo-module__o1YlJW__modalOverlay",modalVideo:"partnerVideo-module__o1YlJW__modalVideo",partnerLogo:"partnerVideo-module__o1YlJW__partnerLogo",personInfo:"partnerVideo-module__o1YlJW__personInfo",personName:"partnerVideo-module__o1YlJW__personName",personPos:"partnerVideo-module__o1YlJW__personPos",personRow:"partnerVideo-module__o1YlJW__personRow",playButton:"partnerVideo-module__o1YlJW__playButton",quote:"partnerVideo-module__o1YlJW__quote"})},18816,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(42373),o=e.i(57688),n=e.i(71645);let r=[{key:"yvesRocher",partnerLogo:"/images/partners/video-section/yves-rocher.png",backgroundImage:"/images/partners/video-section/yves-rocher-background.png",videoSrc:"/videos/partner-video-yves-rocher.mp4"},{key:"flormar",partnerLogo:"/images/partners/video-section/flormar.png",backgroundImage:"/images/partners/video-section/flormar-background.png",videoSrc:"/videos/partner-video-flormar.mp4"}];function l(){let e=(0,a.useTranslations)("Partners"),[l,i]=(0,n.use
10State)(null),[d,u]=(0,n.useState)(null),c=(0,n.useRef)([null,null]);return(0,n.useEffect)(()=>{c.current.forEach((e,t)=>{e&&(t===d?e.play().catch(()=>{}):(e.pause(),e.currentTime=0))})},[d]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&i(null)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,n.useEffect)(()=>(document.body.style.overflow=l?"hidden":"",()=>{document.body.style.overflow=""}),[l]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:s.default.container,children:[(0,t.jsx)("span",{className:s.default.leftText,children:e("Dot Assist's Successes in the Eyes of Our Partners")}),(0,t.jsx)("div",{className:s.default.g2Container,children:(0,t.jsxs)("div",{className:s.default.g2SubContainer,children:[(0,t.jsxs)("div",{className:s.default.g2Logo,children:[(0,t.jsx)("div",{className:s.default.g2Icon,children:(0,t.jsx)(o.default,{src:"/images/icon/g2.svg",alt:"Usersdot G2",fill:!0,style:{objectFit:"contain"}})}),(0,t.jsx)(o.default,{src:"/images/icon/g2-rating.svg",alt:"Usersdot G2 Rating",width:133,height:24})]}),(0,t.jsx)("span",{className:s.default.g2Text,children:e("Rated 2000 reviews")})]})}),(0,t.jsx)("div",{className:s.default.bottomContainer,children:r.map((a,n)=>(0,t.jsxs)("div",{className:s.default.card,onMouseEnter:()=>u(n),onMouseLeave:()=>u(null),onClick:()=>i(a.videoSrc),children:[(0,t.jsx)(o.default,{src:a.backgroundImage,alt:e(`${a.key}Name`),fill:!0,quality:90,className:s.default.cardBg}),(0,t.jsx)("video",{ref:e=>{c.current[n]=e},src:a.videoSrc,muted:!0,loop:!0,playsInline:!0,preload:"none",className:`${s.default.cardVideo} ${d===n?s.default.cardVideoVisible:""}`}),(0,t.jsx)("div",{className:s.default.gradient}),(0,t.jsxs)("button",{className:s.default.playButton,onClick:e=>{e.stopPropagation(),i(a.videoSrc)},"aria-label":e("playVideo"),children:[e("playVideo"),(0,t.jsx)(o.default,{src:"/images/icon/play-circle.svg",alt:"play-circle",width:16,height:16})]}),(0,t.jsxs)("div",{className:s.default.cardContent,children:[(0,t.jsx)("p",{className:s.default.quote,children:e(`${a.key}Text`)}),(0,t.jsxs)("div",{className:s.default.personRow,children:[(0,t.jsxs)("div",{className:s.default.personInfo,children:[(0,t.jsx)("p",{className:s.default.personName,children:e(`${a.key}Name`)}),(0,t.jsx)("p",{className:s.default.personPos,children:e(`${a.key}Pos`)})]}),(0,t.jsx)(o.default,{src:a.partnerLogo,alt:a.key,width:267,height:64,className:s.default.partnerLogo})]})]})]},a.key))})]}),l&&(0,t.jsx)("div",{className:s.default.modalOverlay,onClick:()=>i(null),children:(0,t.jsxs)("div",{className:s.default.modalContainer,onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{className:s.default.closeButton,onClick:()=>i(null),"aria-label":"Close",children:(0,t.jsx)(o.default,{src:"/images/icon/x-close.svg",alt:"close-icon",width:16,height:16})}),(0,t.jsx)("video",{src:l,controls:!0,autoPlay:!0,playsInline:!0,className:s.default.modalVideo})]})})]})}e.s(["default",()=>l])},34423,e=>{e.v({article:"StatsSectionUI-module__bh0PAq__article",articleBottom:"StatsSectionUI-module__bh0PAq__articleBottom",articleBottomSubTitle:"StatsSectionUI-module__bh0PAq__articleBottomSubTitle",articleBottomTitle:"StatsSectionUI-module__bh0PAq__articleBottomTitle",articleTop:"StatsSectionUI-module__bh0PAq__articleTop",articleTopSubText:"StatsSectionUI-module__bh0PAq__articleTopSubText",articleTopText:"StatsSectionUI-module__bh0PAq__articleTopText",articleTopTextSmall:"StatsSectionUI-module__bh0PAq__articleTopTextSmall",articleWrapper:"StatsSectionUI-module__bh0PAq__articleWrapper",container:"StatsSectionUI-module__bh0PAq__container",divider:"StatsSectionUI-module__bh0PAq__divider",header:"StatsSectionUI-module__bh0PAq__header",statsRow:"StatsSectionUI-module__bh0PAq__statsRow",title:"StatsSectionUI-module__bh0PAq__title",wrapper:"StatsSectionUI-module__bh0PAq__wrapper"})},94804,e=>{"use strict";var t=e.i(43476),a=e.i(34423),s=e.i(20137),o=e.i(57688);function n({badge:e,title:n,stats:r}){return(0,t.jsx)("div",{className:a.default.wrapper,children:(0,t.jsxs)("div",{className:a.default.container,children:[(0,t.jsxs)("div",{className:a.default.header,children:[(0,t.jsx)(s.Badge,{title:e}),(0,t.jsx)("span",{className:a.default.title,children:n})]}),(0,t.jsx)("div",{className:a.default.statsRow,children:r.map((e,s)=>(0,t.jsxs)("div",{className:a.default.articleWrapper,children:[s>0&&(0,t.jsx)("div",{className:a.default.divider}),(0,t.jsxs)("div",{className:a.default.article,children:[(0,t.jsxs)("div",{className:a.default.articleTop,children:[(0,t.jsx)(o.default,{src:e.icon,alt:e.subText,width:80,height:80}),(0,t.jsxs)("span",{className:a.default.articleTopText,children:[e.topTextPrefix&&(0,t.jsx)("span",{className:a.default.articleTopTextSmall,children:e.topTextPrefix}),e.topTextBig,e.topTextSmall&&(0,t.jsx)("span",{className:a.default.articleTopTextSmall,children:e.topTextSmall})]}),(0,t.jsx)("span",{className:a.default.articleTopSubText,children:e.subText})]}),(0,t.jsx)("div",{className:a.default.articleBottom,children:(0,t.jsx)("span",{className:a.default.articleBottomSubTitle,children:e.bottomSubTitle})})]})]},s))})]})})}e.s(["StatsSectionUI",()=>n])},43604,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(94804);function o(){let e=(0,a.useTranslations)("WhyDotAssist"),o=[{icon:"/images/icon/bubble.svg",topTextPrefix:e("stat1TopTextPrefix"),topTextBig:e("stat1TopTextBig"),topTextSmall:e("stat1TopTextSmall"),subText:e("stat1SubText"),bottomSubTitle:e("stat1BottomSubTitle")},{icon:"/images/icon/lightning.svg",topTextPrefix:e("stat2TopTextPrefix"),topTextBig:e("stat2TopTextBig"),topTextSmall:e("stat2TopTextSmall"),subText:e("stat2SubText"),bottomSubTitle:e("stat2BottomSubTitle")},{icon:"/images/icon/724.svg",topTextPrefix:e("stat3TopTextPrefix"),topTextBig:e("stat3TopTextBig"),topTextSmall:e("stat3TopTextSmall"),subText:e("stat3SubText"),bottomSubTitle:e("stat3BottomSubTitle")},{icon:"/images/icon/chartup.svg",topTextPrefix:e("stat4TopTextPrefix"),topTextBig:e("stat4TopTextBig"),topTextSmall:e("stat4TopTextSmall"),subText:e("stat4SubText"),bottomSubTitle:e("stat4BottomSubTitle")}];return(0,t.jsx)(s.StatsSectionUI,{badge:e("badge"),title:e("title"),stats:o})}e.s(["default",()=>o])},91630,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(94804);function o(){let e=(0,a.useTranslations)("CustomerExpectations"),o=[{icon:"/images/icon/moon.svg",topTextBig:e("stat1TopTextBig"),topTextSmall:e("stat1TopTextSmall"),subText:e("stat1SubText"),bottomSubTitle:e("stat1BottomSubTitle")},{icon:"/images/icon/lightning.svg",topTextBig:e("stat2TopTextBig"),topTextSmall:e("stat2TopTextSmall"),subText:e("stat2SubText"),bottomSubTitle:e("stat2BottomSubTitle")},{icon:"/images/icon/bubble.svg",topTextBig:e("stat3TopTextBig"),topTextSmall:e("stat3TopTextSmall"),subText:e("stat3SubText"),bottomSubTitle:e("stat3BottomSubTitle")},{icon:"/images/icon/hourglass.svg",topTextBig:e("stat4TopTextBig"),topTextSmall:e("stat4TopTextSmall"),subText:e("stat4SubText"),bottomSubTitle:e("stat4BottomSubTitle")}];return(0,t.jsx)(s.StatsSectionUI,{badge:e("badge"),title:e("title"),stats:o})}e.s(["default",()=>o])},33026,e=>{e.v({answerBox:"newAgents-module__nd_ZJW__answerBox",answerCheck:"newAgents-module__nd_ZJW__answerCheck",answerColumn:"newAgents-module__nd_ZJW__answerColumn",answerSource:"newAgents-module__nd_ZJW__answerSource",answerSuccess:"newAgents-module__nd_ZJW__answerSuccess",answerText:"newAgents-module__nd_ZJW__answerText",avatar:"newAgents-module__nd_ZJW__avatar",card:"newAgents-module__nd_ZJW__card",cardDescription:"newAgents-module__nd_ZJW__cardDescription",cardHeader:"newAgents-module__nd_ZJW__cardHeader",cardName:"newAgents-module__nd_ZJW__cardName",cardSubTitle:"newAgents-module__nd_ZJW__cardSubTitle",cards:"newAgents-module__nd_ZJW__cards",checkIcon:"newAgents-module__nd_ZJW__checkIcon",container:"newAgents-module__nd_ZJW__c
10ontainer",coreCircle:"newAgents-module__nd_ZJW__coreCircle",coreGlobe:"newAgents-module__nd_ZJW__coreGlobe",coreLabels:"newAgents-module__nd_ZJW__coreLabels",coreMeridians:"newAgents-module__nd_ZJW__coreMeridians",coreName:"newAgents-module__nd_ZJW__coreName",coreOrbit:"newAgents-module__nd_ZJW__coreOrbit",corePingA:"newAgents-module__nd_ZJW__corePingA",corePingB:"newAgents-module__nd_ZJW__corePingB",coreRing1:"newAgents-module__nd_ZJW__coreRing1",coreRing2:"newAgents-module__nd_ZJW__coreRing2",coreRing3:"newAgents-module__nd_ZJW__coreRing3",coreSatellite:"newAgents-module__nd_ZJW__coreSatellite",coreSonar:"newAgents-module__nd_ZJW__coreSonar",coreStatus:"newAgents-module__nd_ZJW__coreStatus",coreSweep:"newAgents-module__nd_ZJW__coreSweep",daDriftDown:"newAgents-module__nd_ZJW__daDriftDown",daDriftDownShort:"newAgents-module__nd_ZJW__daDriftDownShort",daDriftRight:"newAgents-module__nd_ZJW__daDriftRight",daDriftRightShort:"newAgents-module__nd_ZJW__daDriftRightShort",daDrop:"newAgents-module__nd_ZJW__daDrop",daFloat:"newAgents-module__nd_ZJW__daFloat",daLive:"newAgents-module__nd_ZJW__daLive",daParticle:"newAgents-module__nd_ZJW__daParticle",daPing:"newAgents-module__nd_ZJW__daPing",daReticle:"newAgents-module__nd_ZJW__daReticle",daReveal:"newAgents-module__nd_ZJW__daReveal",daScanY:"newAgents-module__nd_ZJW__daScanY",daSpin:"newAgents-module__nd_ZJW__daSpin",daSpinReverse:"newAgents-module__nd_ZJW__daSpinReverse",daSweep:"newAgents-module__nd_ZJW__daSweep",eyebrow:"newAgents-module__nd_ZJW__eyebrow",factChip:"newAgents-module__nd_ZJW__factChip",factDot:"newAgents-module__nd_ZJW__factDot",flowChips:"newAgents-module__nd_ZJW__flowChips",flowDot:"newAgents-module__nd_ZJW__flowDot",flowDotA:"newAgents-module__nd_ZJW__flowDotA",flowDotB:"newAgents-module__nd_ZJW__flowDotB",flowDotCyan:"newAgents-module__nd_ZJW__flowDotCyan",flowDotIn:"newAgents-module__nd_ZJW__flowDotIn",flowDotOut:"newAgents-module__nd_ZJW__flowDotOut",flowDotReach:"newAgents-module__nd_ZJW__flowDotReach",flowDotScout:"newAgents-module__nd_ZJW__flowDotScout",flowLine:"newAgents-module__nd_ZJW__flowLine",flowLineReach:"newAgents-module__nd_ZJW__flowLineReach",flowLineScout:"newAgents-module__nd_ZJW__flowLineScout",flowStem:"newAgents-module__nd_ZJW__flowStem",flowZone:"newAgents-module__nd_ZJW__flowZone",flowZoneShort:"newAgents-module__nd_ZJW__flowZoneShort",infoBox:"newAgents-module__nd_ZJW__infoBox",infoDot:"newAgents-module__nd_ZJW__infoDot",infoHeader:"newAgents-module__nd_ZJW__infoHeader",infoItem:"newAgents-module__nd_ZJW__infoItem",infoList:"newAgents-module__nd_ZJW__infoList",liveDot:"newAgents-module__nd_ZJW__liveDot",notFound:"newAgents-module__nd_ZJW__notFound",orb:"newAgents-module__nd_ZJW__orb",orbGroup:"newAgents-module__nd_ZJW__orbGroup",orbLabel:"newAgents-module__nd_ZJW__orbLabel",orbPing:"newAgents-module__nd_ZJW__orbPing",orbPingA:"newAgents-module__nd_ZJW__orbPingA",orbPingB:"newAgents-module__nd_ZJW__orbPingB",particle:"newAgents-module__nd_ZJW__particle",particle1:"newAgents-module__nd_ZJW__particle1",particle2:"newAgents-module__nd_ZJW__particle2",particle3:"newAgents-module__nd_ZJW__particle3",productCard:"newAgents-module__nd_ZJW__productCard",productHeader:"newAgents-module__nd_ZJW__productHeader",productImage:"newAgents-module__nd_ZJW__productImage",productName:"newAgents-module__nd_ZJW__productName",productSku:"newAgents-module__nd_ZJW__productSku",questionCard:"newAgents-module__nd_ZJW__questionCard",questionColumn:"newAgents-module__nd_ZJW__questionColumn",questionText:"newAgents-module__nd_ZJW__questionText",questionUser:"newAgents-module__nd_ZJW__questionUser",reach:"newAgents-module__nd_ZJW__reach",reticle:"newAgents-module__nd_ZJW__reticle",reticleBl:"newAgents-module__nd_ZJW__reticleBl",reticleBr:"newAgents-module__nd_ZJW__reticleBr",reticleTl:"newAgents-module__nd_ZJW__reticleTl",reticleTr:"newAgents-module__nd_ZJW__reticleTr",scanLine:"newAgents-module__nd_ZJW__scanLine",scout:"newAgents-module__nd_ZJW__scout",searchCore:"newAgents-module__nd_ZJW__searchCore",sourceBadgeActive:"newAgents-module__nd_ZJW__sourceBadgeActive",sourceBadgeIdle:"newAgents-module__nd_ZJW__sourceBadgeIdle",sourceLink:"newAgents-module__nd_ZJW__sourceLink",sourceList:"newAgents-module__nd_ZJW__sourceList",sourceTabs:"newAgents-module__nd_ZJW__sourceTabs",sourceUrl:"newAgents-module__nd_ZJW__sourceUrl",sweep:"newAgents-module__nd_ZJW__sweep",sweepReach1:"newAgents-module__nd_ZJW__sweepReach1",sweepReach2:"newAgents-module__nd_ZJW__sweepReach2",sweepScout1:"newAgents-module__nd_ZJW__sweepScout1",sweepScout2:"newAgents-module__nd_ZJW__sweepScout2",tealIcon:"newAgents-module__nd_ZJW__tealIcon",tinyIcon:"newAgents-module__nd_ZJW__tinyIcon",title:"newAgents-module__nd_ZJW__title",titleAccent:"newAgents-module__nd_ZJW__titleAccent",userName:"newAgents-module__nd_ZJW__userName",visual:"newAgents-module__nd_ZJW__visual",wrapper:"newAgents-module__nd_ZJW__wrapper"})},20549,e=>{"use strict";var t=e.i(43476),a=e.i(48148),s=e.i(57688);function o({size:e=24}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 180 180",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("circle",{cx:"43",cy:"43",r:"42",fill:"url(#dotMarkGradient)"}),(0,t.jsx)("circle",{cx:"140.5",cy:"81.5",r:"37.5",fill:"url(#dotMarkGradient)"}),(0,t.jsx)("circle",{cx:"77",cy:"144.5",r:"34",fill:"url(#dotMarkGradient)"}),(0,t.jsx)("defs",{children:(0,t.jsxs)("linearGradient",{id:"dotMarkGradient",x1:"90",y1:"0",x2:"90",y2:"180",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{stopColor:"#3BD9AE"}),(0,t.jsx)("stop",{offset:"1",stopColor:"#01B8AF"})]})})]})}var n=e.i(33026);let r=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
10children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 0 20 15.3 15.3 0 0 1 0-20"})]}),l=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,t.jsx)("path",{d:"M14 2v6h6M9 13h6M9 17h6"})]});function i(){let e=(0,a.useTranslations)("NewAgents"),i=[e("scoutFact1"),e("scoutFact2"),e("scoutFact3")];return(0,t.jsxs)("div",{className:n.default.visual,children:[(0,t.jsxs)("div",{className:n.default.productCard,children:[(0,t.jsx)("span",{className:`${n.default.reticle} ${n.default.reticleTl}`}),(0,t.jsx)("span",{className:`${n.default.reticle} ${n.default.reticleTr}`}),(0,t.jsx)("span",{className:`${n.default.reticle} ${n.default.reticleBl}`}),(0,t.jsx)("span",{className:`${n.default.reticle} ${n.default.reticleBr}`}),(0,t.jsxs)("div",{className:n.default.productHeader,children:[(0,t.jsx)(s.default,{className:n.default.productImage,src:"/images/backgrounds/sleepy.jpg",alt:e("scoutProductName"),width:46,height:46}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:n.default.productName,children:e("scoutProductName")}
10),(0,t.jsx)("div",{className:n.default.productSku,children:e("scoutProductSku")})]})]}),(0,t.jsxs)("div",{className:n.default.sourceTabs,children:[(0,t.jsxs)("span",{className:n.default.sourceBadgeActive,children:[(0,t.jsx)(r,{className:n.default.tinyIcon}),e("scoutTabWeb")]}),(0,t.jsxs)("span",{className:n.default.sourceBadgeIdle,children:[(0,t.jsx)(l,{className:n.default.tinyIcon}),e("scoutTabFile")]})]}),(0,t.jsxs)("div",{className:n.default.sourceList,children:[["sleepy.com.tr/dogal-havlu","sleepy.com.tr/urun-ozellikleri","sleepy.com.tr/kullanim-kilavuzu","destek.sleepy.com.tr/sss","sleepy.com.tr/teknik-belge"].map((e,a)=>(0,t.jsxs)("div",{className:n.default.sourceLink,style:{animationDelay:`${.12*a}s`},children:[(0,t.jsx)(r,{className:`${n.default.tinyIcon} ${n.default.tealIcon}`}),(0,t.jsx)("span",{className:n.default.sourceUrl,children:e})]},e)),(0,t.jsx)("span",{className:n.default.scanLine}),(0,t.jsx)("span",{className:`${n.default.particle} ${n.default.particle1}`}),(0,t.jsx)("span",{className:`${n.default.particle} ${n.default.particle2}`}),(0,t.jsx)("span",{className:`${n.default.particle} ${n.default.particle3}`})]})]}),(0,t.jsxs)("div",{className:n.default.flowZone,children:[(0,t.jsxs)("div",{className:n.default.flowStem,children:[(0,t.jsx)("div",{className:`${n.default.flowLine} ${n.default.flowLineScout}`}),(0,t.jsx)("span",{className:`${n.default.flowDot} ${n.default.flowDotScout} ${n.default.flowDotA}`})]}),(0,t.jsx)("div",{className:n.default.flowChips,children:i.map((e,a)=>(0,t.jsxs)("span",{className:n.default.factChip,style:{animationDelay:`${.6*a}s`},children:[(0,t.jsx)("span",{className:n.default.factDot}),e]},e))}),(0,t.jsxs)("div",{className:n.default.flowStem,children:[(0,t.jsx)("div",{className:`${n.default.flowLine} ${n.default.flowLineScout}`}),(0,t.jsx)("span",{className:`${n.default.flowDot} ${n.default.flowDotScout} ${n.default.flowDotB}`})]})]}),(0,t.jsxs)("div",{className:n.default.orbGroup,children:[(0,t.jsxs)("span",{className:n.default.orb,children:[(0,t.jsx)(o,{size:42}),(0,t.jsx)("span",{className:`${n.default.orbPing} ${n.default.orbPingA}`}),(0,t.jsx)("span",{className:`${n.default.orbPing} ${n.default.orbPingB}`})]}),(0,t.jsx)("div",{className:n.default.orbLabel,children:"Dot Assist"})]})]})}let d=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M2 12h20M12 2a15.3 15.3 0 0 1 0 20 15.3 15.3 0 0 1 0-20"})]}),u=({className:e})=>(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,t.jsx)("path",{d:"m13.5 8.5-5 5M8.5 8.5l5 5"}),(0,t.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,t.jsx)("path",{d:"m21 21-4.3-4.3"})]}),c=({className:e})=>(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:(0,t.jsx)("path",{d:"m20 6-11 11-5-5"})});function _(){let e=(0,a.useTranslations)("NewAgents"),s=[e("reachSource1"),e("reachSource2"),e("reachSource3"),e("reachSource4")];return(0,t.jsxs)("div",{className:n.default.visual,children:[(0,t.jsxs)("div",{className:n.default.questionColumn,children:[(0,t.jsx)("span",{className:n.default.eyebrow,children:e("reachQuestionLabel")}),(0,t.jsxs)("div",{className:n.default.questionCard,children:[(0,t.jsxs)("div",{className:n.default.questionUser,children:[(0,t.jsx)("span",{className:n.default.avatar,children:e("reachInitials")}),(0,t.jsx)("span",{className:n.default.userName,children:e("reachUserName")})]}),(0,t.jsx)("div",{className:n.default.questionText,children:e("reachQuestion")})]}),(0,t.jsxs)("div",{className:n.default.infoBox,children:[(0,t.jsxs)("div",{className:n.default.infoHeader,children:[(0,t.jsx)(o,{size:15}),e("reachScanTitle")]}),(0,t.jsx)("div",{className:n.default.infoList,children:s.map(e=>(0,t.jsxs)("div",{className:n.default.infoItem,children:[(0,t.jsx)("span",{className:n.default.infoDot}),e]},e))}),(0,t.jsxs)("div",{className:n.default.notFound,children:[(0,t.jsx)(u,{className:n.default.tinyIcon}),e("reachNotFound")]})]})]}),(0,t.jsxs)("div",{className:n.default.flowZoneShort,children:[(0,t.jsx)("div",{className:`${n.default.flowLine} ${n.default.flowLineReach}`}),(0,t.jsx)("span",{className:`${n.default.flowDot} ${n.default.flowDotReach} ${n.default.flowDotIn}`})]}),(0,t.jsxs)("div",{className:n.default.searchCore,children:[(0,t.jsxs)("div",{className:n.default.coreSonar,children:[(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.coreRing1}`}),(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.coreRing2}`}),(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.coreRing3}`}),(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.corePingA}`}),(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.corePingB}`}),(0,t.jsx)("span",{className:`${n.default.coreCircle} ${n.default.coreSweep}`}),(0,t.jsx)("div",{className:n.default.coreOrbit,children:(0,t.jsx)("span",{className:n.default.coreSatellite})}),(0,t.jsxs)("svg",{width:"60",height:"60",viewBox:"0 0 72 72",className:n.default.coreGlobe,"aria-hidden":!0,
10children:[(0,t.jsx)("defs",{children:(0,t.jsxs)("radialGradient",{id:"reachCoreGradient",cx:"35%",cy:"30%",r:"80%",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"#C4A0FF"}),(0,t.jsx)("stop",{offset:"55%",stopColor:"#9E62FF"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#00BDD3"})]})}),(0,t.jsx)("circle",{cx:"36",cy:"36",r:"35",fill:"url(#reachCoreGradient)"}),(0,t.jsxs)("g",{fill:"none",stroke:"#fff",strokeOpacity:".55",strokeWidth:"1.4",className:n.default.coreMeridians,children:[(0,t.jsx)("ellipse",{cx:"36",cy:"36",rx:"12",ry:"35"}),(0,t.jsx)("ellipse",{cx:"36",cy:"36",rx:"24",ry:"35"})]}),(0,t.jsxs)("g",{fill:"none",stroke:"#fff",strokeOpacity:".4",strokeWidth:"1.2",children:[(0,t.jsx)("line",{x1:"4",y1:"24",x2:"68",y2:"24"}),(0,t.jsx)("line",{x1:"1",y1:"36",x2:"71",y2:"36"}),(0,t.jsx)("line",{x1:"4",y1:"48",x2:"68",y2:"48"})]})]})]}),(0,t.jsxs)("div",{className:n.default.coreLabels,children:[(0,t.jsx)("div",{className:n.default.coreName,children:e("reachName")}),(0,t.jsxs)("div",{className:n.default.coreStatus,children:[(0,t.jsx)("span",{className:n.default.liveDot}),e("reachLiveSearch")]})]})]}),(0,t.jsxs)("div",{className:n.default.flowZoneShort,children:[(0,t.jsx)("div",{className:`${n.default.flowLine} ${n.default.flowLineReach}`}),(0,t.jsx)("span",{className:`${n.default.flowDot} ${n.default.flowDotCyan} ${n.default.flowDotOut}`})]}),(0,t.jsx)("div",{className:n.default.answerColumn,children:(0,t.jsxs)("div",{className:n.default.answerBox,children:[(0,t.jsxs)("div",{className:n.default.answerSuccess,children:[(0,t.jsx)("span",{className:n.default.answerCheck,children:(0,t.jsx)(c,{className:n.default.checkIcon})}),e("reachAnswerFound")]}),(0,t.jsx)("div",{className:n.default.answerText,children:e("reachAnswer")}),(0,t.jsxs)("div",{className:n.default.answerSource,children:[(0,t.jsx)(d,{className:n.default.tinyIcon}),e("reachAnswerSource")]})]})})]})}function m(){let e=(0,a.useTranslations)("NewAgents");return(0,t.jsx)("div",{className:n.default.wrapper,children:(0,t.jsxs)("div",{className:n.default.container,children:[(0,t.jsxs)("h2",{className:n.default.title,children:[e("titlePrefix")," ",(0,t.jsx)("span",{className:n.default.titleAccent,children:e("titleAccent")})]}),(0,t.jsxs)("div",{className:n.default.cards,children:[(0,t.jsxs)("div",{className:`${n.default.card} ${n.default.scout}`,children:[(0,t.jsx)("div",{className:`${n.default.sweep} ${n.default.sweepScout1}`}),(0,t.jsx)("div",{className:`${n.default.sweep} ${n.default.sweepScout2}`}),(0,t.jsxs)("div",{className:n.default.cardHeader,children:[(0,t.jsx)("span",{className:n.default.cardName,children:e("scoutName")}),(0,t.jsx)("span",{className:n.default.cardSubTitle,children:e("scoutSubTitle")}),(0,t.jsx)("p",{className:n.default.cardDescription,children:e("scoutDescription")})]}),(0,t.jsx)(i,{})]}),(0,t.jsxs)("div",{className:`${n.default.card} ${n.default.reach}`,children:[(0,t.jsx)("div",{className:`${n.default.sweep} ${n.default.sweepReach1}`}),(0,t.jsx)("div",{className:`${n.default.sweep} ${n.default.sweepReach2}`}),(0,t.jsxs)("div",{className:n.default.cardHeader,children:[(0,t.jsx)("span",{className:n.default.cardName,children:e("reachName")}),(0,t.jsx)("span",{className:n.default.cardSubTitle,children:e("reachSubTitle")}),(0,t.jsx)("p",{className:n.default.cardDescription,children:e("reachDescription")})]}),(0,t.jsx)(_,{})]})]})]})})}e.s(["default",()=>m],20549)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.