1import{B as D,K as c}from"./utils-D_e08bG1.js";import{t as M}from"./jsx-runtime-UHB8frBV.js";import{a as O,v as U}from"./useUserVarStore-DDG-S61a.js";import{t as Z}from"./useWindowSize-C7Rdz2GU.js";import{t as z}from"./classnames-BTYy8V7_.js";import{t as A}from"./ShareSocial-BVB5QkZV.js";var B="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_10909_63939'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_10909_63939)'%3e%3cpath%20d='M16.5%2020C15.8056%2020%2015.2153%2019.7521%2014.7292%2019.2563C14.2431%2018.7604%2014%2018.1583%2014%2017.45C14%2017.365%2014.0208%2017.1667%2014.0625%2016.855L8.20833%2013.37C7.98611%2013.5825%207.72917%2013.749%207.4375%2013.8694C7.14583%2013.9898%206.83333%2014.05%206.5%2014.05C5.80556%2014.05%205.21528%2013.8021%204.72917%2013.3063C4.24306%2012.8104%204%2012.2083%204%2011.5C4%2010.7917%204.24306%2010.1896%204.72917%209.69375C5.21528%209.19792%205.80556%208.95%206.5%208.95C6.83333%208.95%207.14583%209.01021%207.4375%209.13063C7.72917%209.25104%207.98611%209.4175%208.20833%209.63L14.0625%206.145C14.0347%206.04583%2014.0174%205.95021%2014.0104%205.85812C14.0035%205.76604%2014%205.66333%2014%205.55C14%204.84167%2014.2431%204.23958%2014.7292%203.74375C15.2153%203.24792%2015.8056%203%2016.5%203C17.1944%203%2017.7847%203.24792%2018.2708%203.74375C18.7569%204.23958%2019%204.84167%2019%205.55C19%206.25833%2018.7569%206.86042%2018.2708%207.35625C17.7847%207.85208%2017.1944%208.1%2016.5%208.1C16.1667%208.1%2015.8542%208.03979%2015.5625%207.91937C15.2708%207.79896%2015.0139%207.6325%2014.7917%207.42L8.9375%2010.905C8.96528%2011.0042%208.98264%2011.0998%208.98958%2011.1919C8.99653%2011.284%209%2011.3867%209%2011.5C9%2011.6133%208.99653%2011.716%208.98958%2011.8081C8.98264%2011.9002%208.96528%2011.9958%208.9375%2012.095L14.7917%2015.58C15.0139%2015.3675%2015.2708%2015.201%2015.5625%2015.0806C15.8542%2014.9602%2016.1667%2014.9%2016.5%2014.9C17.1944%2014.9%2017.7847%2015.1479%2018.2708%2015.6438C18.7569%2016.1396%2019%2016.7417%2019%2017.45C19%2018.1583%2018.7569%2018.7604%2018.2708%2019.2563C17.7847%2019.7521%2017.1944%2020%2016.5%2020Z'%20fill='%239E9E9E'/%3e%3c/g%3e%3c/svg%3e",I="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cmask%20id='mask0_12244_114425'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='24'%20height='24'%3e%3crect%20width='24'%20height='24'%20fill='%23D9D9D9'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_12244_114425)'%3e%3cpath%20d='M16.5%2020C15.8056%2020%2015.2153%2019.7521%2014.7292%2019.2563C14.2431%2018.7604%2014%2018.1583%2014%2017.45C14%2017.365%2014.0208%2017.1667%2014.0625%2016.855L8.20833%2013.37C7.98611%2013.5825%207.72917%2013.749%207.4375%2013.8694C7.14583%2013.9898%206.83333%2014.05%206.5%2014.05C5.80556%2014.05%205.21528%2013.8021%204.72917%2013.3063C4.24306%2012.8104%204%2012.2083%204%2011.5C4%2010.7917%204.24306%2010.1896%204.72917%209.69375C5.21528%209.19792%205.80556%208.95%206.5%208.95C6.83333%208.95%207.14583%209.01021%207.4375%209.13063C7.72917%209.25104%207.98611%209.4175%208.20833%209.63L14.0625%206.145C14.0347%206.04583%2014.0174%205.95021%2014.0104%205.85812C14.0035%205.76604%2014%205.66333%2014%205.55C14%204.84167%2014.2431%204.23958%2014.7292%203.74375C15.2153%203.24792%2015.8056%203%2016.5%203C17.1944%203%2017.7847%203.24792%2018.2708%203.74375C18.7569%204.23958%2019%204.84167%2019%205.55C19%206.25833%2018.7569%206.86042%2018.2708%207.35625C17.7847%207.85208%2017.1944%208.1%2016.5%208.1C16.1667%208.1%2015.8542%208.03979%2015.5625%207.91937C15.2708%207.79896%2015.0139%207.6325%2014.7917%207.42L8.9375%2010.905C8.96528%2011.0042%208.98264%2011.0998%208.98958%2011.1919C8.99653%2011.284%209%2011.3867%209%2011.5C9%2011.6133%208.99653%2011.716%208.98958%2011.8081C8.98264%2011.9002%208.96528%2011.9958%208.9375%2012.095L14.7917%2015.58C15.0139%2015.3675%2015.2708%2015.201%2015.5625%2015.0806C15.8542%2014.9602%2016.1667%2014.9%2016.5%2014.9C17.1944%2014.9%2017.7847%2015.1479%2018.2708%2015.6438C18.7569%2016.1396%2019%2016.7417%2019%2017.45C19%2018.1583%2018.7569%2018.7604%2018.2708%2019.2563C17.7847%2019.7521%2017.1944%2020%2016.5%2020Z'%20fill='%23FAFAFA'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20width='16'%20height='13'%20viewBox='0%200%2016%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M15.5521%206.59587L10.0421%2012.1059C9.965%2012.1831%209.86678%2012.2356%209.75984%2012.2569C9.6529%2012.2782%209.54204%2012.2673%209.4413%2012.2256C9.34057%2012.1838%209.25448%2012.1131%209.19394%2012.0224C9.1334%2011.9318%209.10113%2011.8251%209.10122%2011.7161V8.97691C5.16841%209.20007%202.47192%2011.7505%201.71498%2012.5584C1.59612%2012.6854%201.44025%2012.7716%201.26956%2012.8048C1.09886%2012.838%200.922041%2012.8166%200.764254%2012.7435C0.606466%2012.6704%200.475753%2012.5494%200.390717%2012.3977C0.305682%2012.246%200.270656%2012.0714%200.290624%2011.8986C0.546154%209.67669%201.76319%207.53947%203.71788%205.88094C5.34129%204.50343%207.31458%203.62939%209.10122%203.47649V0.695972C9.10113%200.58693%209.1334%200.480314%209.19394%200.389622C9.25448%200.29893%209.34057%200.228239%209.4413%200.186499C9.54204%200.144759%209.6529%200.133846%209.75984%200.155143C9.86678%200.176439%209.965%200.228987%2010.0421%200.306135L15.5521%205.8162C15.6034%205.86737%2015.644%205.92814%2015.6717%205.99503C15.6995%206.06192%2015.7137%206.13362%2015.7137%206.20604C15.7137%206.27845%2015.6995%206.35015%2015.6717%206.41704C15.644%206.48393%2015.6034%206.5447%2015.5521%206.59587Z'%20fill='%23FAFAFA'/%3e%3c/svg%3e",V="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.22499%2016C2.86249%2016%202.51249%2015.8313%202.28124%2015.5563C2.04999%2015.2813%201.95624%2014.9125%202.02499%2014.55C2.88124%209.95626%206.61874%206.50626%2011.2312%205.98126L11.2312%204.69376C11.2312%204.20001%2011.525%203.75626%2011.9812%203.56876C12.4375%203.38126%2012.9625%203.48126%2013.3062%203.83126L17.6375%208.16251C17.8687%208.39376%2017.9937%208.70001%2017.9937%209.02501C17.9937%209.35001%2017.8625%209.65626%2017.6375%209.88751L13.3062%2014.2188C12.9625%2014.5625%2012.4187%2014.6688%2011.975%2014.4813C11.5187%2014.2938%2011.225%2013.85%2011.225%2013.3563L11.225%2012.2313C8.52499%2012.5063%206.00624%2013.7%204.08749%2015.6313C3.85624%2015.8688%203.54374%2015.9938%203.22499%2015.9938L3.22499%2016Z'%20fill='%231A1A23'/%3e%3c/svg%3e",C=c(z(),1),n=c(D(),1),e=M();function J({buttonTitle:d="SHARE",socialIconList:f,pagePath:m,deskClassName:p,mbPopupClassName:v,mbClassName:x,quickNews:a=!1,quickNewsLight:u=!1,onClickGaEvent:i,topPositon:w=!1,isArticleFirstFoldEnabled:t=!1,isStickyBar:r=!1}){const{isScreenLG:_}
1=Z(),[L,l]=(0,n.useState)(!1),o=(0,n.useRef)(null),b={url:m},j=()=>{if(U())try{navigator.share(b)}catch{l(s=>!s)}else l(s=>!s);i&&i()},g=s=>{o.current&&!o.current.contains(s.target)&&l(!1)};(0,n.useEffect)(()=>(document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}),[]);const h=()=>f.map((s,y)=>(0,e.jsx)(A,{variant:s,pagePath:m},y)),S=a?u?I:B:t&&!r?V:R,k=(0,C.default)("flex gap-5 bg-white-100 z-10 rounded-3xl mr-sm",!a&&"lg:absolute lg:bottom-full lg:right-0 lg:mb-2 lg:border lg:border-red-100 lg:p-1",a&&"border border-red-100 px-1 py-1 -top-16 -right-5",v,t&&!r&&"w-max left-8 lg:relative z-30");return(0,e.jsx)(e.Fragment,{children:!a&&_&&!w?(0,e.jsx)("div",{className:(0,C.default)("flex gap-5",p),"data-testid":"share-wrapper",children:h()}):(0,e.jsx)("div",{ref:o,className:x,"data-testid":"share-wrapper",children:(0,e.jsxs)("div",{className:(0,C.default)(a&&"relative",!a&&"lg:relative"),children:[(0,e.jsxs)("button",{onClick:j,className:(0,C.default)("dropdown-button flex rounded-3xl",!a&&"py-2 px-3 bg-pink-500",t&&!r&&"bg-transparent flex gap-0.5",r&&"w-12 h-10 justify-center"),children:[(0,e.jsx)("img",{src:S,alt:"share-mb",width:t?20:24,height:t?20:24}),(!a||t)&&(0,e.jsx)("span",{className:O("font-primary font-semibold text-sm text-white-100",t&&"text-black-100 font-medium leading-200"),children:d})]}),L&&(0,e.jsx)("div",{className:k,children:h()})]})})})}export{J as t};
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.