@yoast/ai-insights-client 1.4.80 → 1.4.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5658,25 +5658,25 @@ var BrandAnalysisMutationsProvider = function BrandAnalysisMutationsProvider2(_r
|
|
|
5658
5658
|
}, [mutations]);
|
|
5659
5659
|
return /* @__PURE__ */ jsx(BrandAnalysisMutationsContext.Provider, { value, children });
|
|
5660
5660
|
};
|
|
5661
|
-
function _slicedToArray$
|
|
5662
|
-
return _arrayWithHoles$
|
|
5661
|
+
function _slicedToArray$o(r, e) {
|
|
5662
|
+
return _arrayWithHoles$o(r) || _iterableToArrayLimit$o(r, e) || _unsupportedIterableToArray$o(r, e) || _nonIterableRest$o();
|
|
5663
5663
|
}
|
|
5664
|
-
function _nonIterableRest$
|
|
5664
|
+
function _nonIterableRest$o() {
|
|
5665
5665
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
5666
5666
|
}
|
|
5667
|
-
function _unsupportedIterableToArray$
|
|
5667
|
+
function _unsupportedIterableToArray$o(r, a) {
|
|
5668
5668
|
if (r) {
|
|
5669
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
5669
|
+
if ("string" == typeof r) return _arrayLikeToArray$o(r, a);
|
|
5670
5670
|
var t = {}.toString.call(r).slice(8, -1);
|
|
5671
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
5671
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0;
|
|
5672
5672
|
}
|
|
5673
5673
|
}
|
|
5674
|
-
function _arrayLikeToArray$
|
|
5674
|
+
function _arrayLikeToArray$o(r, a) {
|
|
5675
5675
|
(null == a || a > r.length) && (a = r.length);
|
|
5676
5676
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
5677
5677
|
return n;
|
|
5678
5678
|
}
|
|
5679
|
-
function _iterableToArrayLimit$
|
|
5679
|
+
function _iterableToArrayLimit$o(r, l) {
|
|
5680
5680
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
5681
5681
|
if (null != t) {
|
|
5682
5682
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -5695,14 +5695,14 @@ function _iterableToArrayLimit$n(r, l) {
|
|
|
5695
5695
|
return a;
|
|
5696
5696
|
}
|
|
5697
5697
|
}
|
|
5698
|
-
function _arrayWithHoles$
|
|
5698
|
+
function _arrayWithHoles$o(r) {
|
|
5699
5699
|
if (Array.isArray(r)) return r;
|
|
5700
5700
|
}
|
|
5701
5701
|
var BrandAnalysisProvider = function BrandAnalysisProvider2(_ref) {
|
|
5702
5702
|
var children = _ref.children, _ref$hostAppProps = _ref.hostAppProps, hostAppProps = _ref$hostAppProps === void 0 ? {} : _ref$hostAppProps;
|
|
5703
|
-
var _useState = useState(void 0), _useState2 = _slicedToArray$
|
|
5704
|
-
var _useState3 = useState("latest"), _useState4 = _slicedToArray$
|
|
5705
|
-
var _useState5 = useState(void 0), _useState6 = _slicedToArray$
|
|
5703
|
+
var _useState = useState(void 0), _useState2 = _slicedToArray$o(_useState, 2), brandId = _useState2[0], setBrandId = _useState2[1];
|
|
5704
|
+
var _useState3 = useState("latest"), _useState4 = _slicedToArray$o(_useState3, 2), analysisId = _useState4[0], setAnalysisId = _useState4[1];
|
|
5705
|
+
var _useState5 = useState(void 0), _useState6 = _slicedToArray$o(_useState5, 2), model = _useState6[0], setModel = _useState6[1];
|
|
5706
5706
|
return /* @__PURE__ */ jsx(BrandAnalysisMutationsProvider, { brandId, setBrandId, analysisId, setAnalysisId, model, setModel, children: /* @__PURE__ */ jsx(BrandAnalysisDataProvider, { brandId, analysisId, model, hostAppProps, children }) });
|
|
5707
5707
|
};
|
|
5708
5708
|
var useBrandAnalysisData = function useBrandAnalysisData2() {
|
|
@@ -6122,25 +6122,25 @@ var SharedNavigationContent = function SharedNavigationContent2(_ref) {
|
|
|
6122
6122
|
}) }) }) });
|
|
6123
6123
|
};
|
|
6124
6124
|
const LogoBrandInsights = "data:image/svg+xml,%3csvg%20width='208'%20height='42'%20viewBox='0%200%20208%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='169'%20width='39'%20height='16'%20rx='8'%20fill='%23BFDBFE'/%3e%3cpath%20d='M177.869%2012V4.9541H180.813C182.151%204.9541%20182.957%205.62793%20182.957%206.70703V6.7168C182.957%207.4541%20182.41%208.1084%20181.702%208.2207V8.30859C182.649%208.39648%20183.304%209.08008%20183.304%209.99316V10.0029C183.304%2011.2383%20182.386%2012%20180.882%2012H177.869ZM180.506%205.93555H179.129V7.92285H180.345C181.238%207.92285%20181.712%207.57617%20181.712%206.93652V6.92676C181.712%206.30176%20181.268%205.93555%20180.506%205.93555ZM180.545%208.81641H179.129V11.0186H180.594C181.521%2011.0186%20182.015%2010.6328%20182.015%209.91504V9.90527C182.015%209.19238%20181.507%208.81641%20180.545%208.81641ZM186.834%2012.1074C185.247%2012.1074%20184.285%2011.043%20184.285%209.34375V9.33887C184.285%207.65918%20185.257%206.56055%20186.775%206.56055C188.294%206.56055%20189.231%207.625%20189.231%209.23633V9.63672H185.501C185.516%2010.5938%20186.033%2011.1504%20186.858%2011.1504C187.518%2011.1504%20187.894%2010.8184%20188.011%2010.5742L188.025%2010.54H189.183L189.168%2010.584C188.997%2011.2725%20188.284%2012.1074%20186.834%2012.1074ZM186.79%207.5127C186.111%207.5127%20185.604%207.97168%20185.511%208.82129H188.045C187.962%207.94727%20187.469%207.5127%20186.79%207.5127ZM192.547%2012.0244C191.321%2012.0244%20190.818%2011.6143%20190.818%2010.584V7.60547H189.988V6.66309H190.818V5.35449H192.054V6.66309H193.182V7.60547H192.054V10.2959C192.054%2010.8281%20192.264%2011.0527%20192.771%2011.0527C192.942%2011.0527%20193.035%2011.0479%20193.182%2011.0332V11.9707C193.006%2012.0049%20192.781%2012.0244%20192.547%2012.0244ZM195.848%2012.0879C194.832%2012.0879%20194.095%2011.4629%20194.095%2010.4912V10.4814C194.095%209.5293%20194.822%208.97266%20196.121%208.89453L197.493%208.81152V8.35254C197.493%207.82031%20197.146%207.52734%20196.492%207.52734C195.936%207.52734%20195.574%207.72754%20195.452%208.0791L195.447%208.09863H194.3L194.305%208.05469C194.422%207.15625%20195.281%206.56055%20196.551%206.56055C197.923%206.56055%20198.694%207.22461%20198.694%208.35254V12H197.493V11.2676H197.41C197.117%2011.7852%20196.551%2012.0879%20195.848%2012.0879ZM195.296%2010.4326C195.296%2010.8867%20195.682%2011.1553%20196.219%2011.1553C196.951%2011.1553%20197.493%2010.6768%20197.493%2010.042V9.6123L196.292%209.69043C195.613%209.73438%20195.296%209.9834%20195.296%2010.4229V10.4326Z'%20fill='%231E3A8A'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M22.5037%2019.2842C22.9203%2019.2842%2023.2881%2019.5608%2023.402%2019.9612L24.4143%2023.5057C24.857%2025.0583%2026.071%2026.2724%2027.6236%2026.715L31.1682%2027.7273C31.6629%2027.8705%2031.9526%2028.3881%2031.8094%2028.8828C31.7215%2029.192%2031.4774%2029.4361%2031.1682%2029.524L27.6236%2030.5363C26.071%2030.9789%2024.857%2032.193%2024.4143%2033.7456L23.402%2037.2901C23.2588%2037.7849%2022.7413%2038.0745%2022.2466%2037.9313C21.9373%2037.8434%2021.6932%2037.5993%2021.6053%2037.2901L20.5931%2033.7456C20.1504%2032.193%2018.9364%2030.9789%2017.3838%2030.5363L13.8392%2029.524C13.3445%2029.3808%2013.0548%2028.8633%2013.198%2028.3685C13.2859%2028.0593%2013.53%2027.8152%2013.8392%2027.7273L17.3838%2026.715C18.9364%2026.2724%2020.1504%2025.0583%2020.5931%2023.5057L21.6053%2019.9612C21.7193%2019.5608%2022.0871%2019.2842%2022.5037%2019.2842Z'%20fill='url(%23paint0_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M13.3742%2012C13.6573%2012%2013.9047%2012.192%2013.9731%2012.4654L14.1846%2013.315C14.3799%2014.0864%2014.9821%2014.6918%2015.7535%2014.8838L16.603%2015.0954C16.9318%2015.1768%2017.1335%2015.512%2017.0522%2015.8407C16.9968%2016.0621%2016.8243%2016.2346%2016.603%2016.2899L15.7535%2016.5015C14.9821%2016.6968%2014.3767%2017.2989%2014.1846%2018.0703L13.9731%2018.9199C13.8917%2019.2486%2013.5564%2019.4504%2013.2277%2019.369C13.0064%2019.3137%2012.8339%2019.1412%2012.7785%2018.9199L12.567%2018.0703C12.3749%2017.2989%2011.7695%2016.6935%2010.9981%2016.5015L10.1486%2016.2899C9.81986%2016.2085%209.61805%2015.8733%209.69943%2015.5446C9.75476%2015.3232%209.92727%2015.1507%2010.1486%2015.0954L10.9981%2014.8838C11.7695%2014.6918%2012.3749%2014.0864%2012.567%2013.315L12.7785%2012.4654C12.8469%2012.192%2013.0943%2012%2013.3774%2012H13.3742Z'%20fill='url(%23paint1_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.39254%2026.8813C6.54226%2026.8813%206.67571%2026.979%206.72453%2027.1189L6.90681%2027.669C6.97516%2027.8773%207.1379%2028.0401%207.34947%2028.1117L7.89954%2028.294C8.08181%2028.3558%208.17946%2028.5543%208.12087%2028.7366C8.08507%2028.8408%208.0037%2028.9222%207.89954%2028.958L7.34947%2029.1402C7.14116%2029.2086%206.97841%2029.3713%206.90681%2029.5829L6.72453%2030.133C6.66269%2030.3152%206.46414%2030.4129%206.28187%2030.3543C6.17771%2030.3185%206.09634%2030.2371%206.06054%2030.133L5.87827%2029.5829C5.80992%2029.3746%205.64392%2029.2118%205.4356%2029.1402L4.88553%2028.958C4.70326%2028.8961%204.60561%2028.6976%204.6642%2028.5153C4.7%2028.4111%204.78138%2028.3298%204.88553%2028.294L5.4356%2028.1117C5.64392%2028.0433%205.80666%2027.8806%205.87827%2027.669L6.06054%2027.1189C6.10936%2026.9757%206.24281%2026.8813%206.39254%2026.8813Z'%20fill='url(%23paint2_radial_4548_14216)'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M2.80904%2033.5596C2.95876%2033.5596%203.09221%2033.6572%203.14104%2033.7972L3.32331%2034.3473C3.39166%2034.5556%203.5544%2034.7183%203.76597%2034.7899L4.31604%2034.9722C4.49832%2035.034%204.59596%2035.2326%204.53737%2035.4148C4.50157%2035.519%204.4202%2035.6004%204.31604%2035.6362L3.76597%2035.8185C3.55766%2035.8868%203.39492%2036.0495%203.32331%2036.2611L3.14104%2036.8112C3.07919%2036.9935%202.88065%2037.0911%202.69837%2037.0325C2.59422%2036.9967%202.51285%2036.9153%202.47704%2036.8112L2.29477%2036.2611C2.22642%2036.0528%202.06042%2035.8901%201.85211%2035.8185L1.30204%2035.6362C1.11976%2035.5743%201.02212%2035.3758%201.0807%2035.1935C1.11651%2035.0894%201.19788%2035.008%201.30204%2034.9722L1.85211%2034.7899C2.06042%2034.7216%202.22316%2034.5588%202.29477%2034.3473L2.47704%2033.7972C2.52587%2033.654%202.65931%2033.5596%202.80904%2033.5596Z'%20fill='url(%23paint3_radial_4548_14216)'/%3e%3cpath%20d='M2.42488%2032.7235C1.94641%2031.4476%201.68277%2030.0676%201.68277%2028.6256C1.68277%2023.5806%204.89532%2019.2712%209.38379%2017.634L8.79466%2016.0586C3.66498%2017.9269%200%2022.8483%200%2028.6256C0%2030.2661%200.296193%2031.835%200.836502%2033.2866L2.42488%2032.7268V32.7235Z'%20fill='url(%23paint4_radial_4548_14216)'/%3e%3cpath%20d='M20.6587%2037.7652C18.6602%2039.3633%2016.1279%2040.3202%2013.3743%2040.3202C10.0023%2040.3202%206.96221%2038.8849%204.82702%2036.5967L3.58691%2037.7359C6.02807%2040.3593%209.51078%2041.9998%2013.3776%2041.9998C16.5218%2041.9998%2019.4121%2040.9159%2021.6938%2039.0997L20.662%2037.7684L20.6587%2037.7652Z'%20fill='url(%23paint5_radial_4548_14216)'/%3e%3cpath%20d='M13.3739%2022.3664C15.0436%2022.3664%2016.5604%2023.0238%2017.6833%2024.0914L18.8095%2022.8383C17.3904%2021.5038%2015.4798%2020.6836%2013.3771%2020.6836C9.89444%2020.6836%206.93902%2022.9262%205.86816%2026.0476L7.44678%2026.627C8.28328%2024.1533%2010.6235%2022.3631%2013.3771%2022.3631L13.3739%2022.3664Z'%20fill='url(%23paint6_radial_4548_14216)'/%3e%3cpath%20d='M17.6737%2033.1658C16.5508%2034.2301%2015.0373%2034.8843%2013.3741%2034.8843C10.6074%2034.8843%208.2574%2033.0811%207.43392%2030.5879L5.84229%2031.1249C6.89035%2034.2822%209.8653%2036.5638%2013.3773%2036.5638C15.4832%2036.5638%2017.3971%2035.7436%2018.8162%2034.4059L17.677%2033.169L17.6737%2033.1658Z'%20fill='url(%23paint7_radial_4548_14216)'/%3e%3cpath%20d='M39.169%2021.2891H43.677C45.7666%2021.2891%2047.2802%2021.595%2048.2111%2022.2037C49.142%2022.8123%2049.6074%2023.7758%2049.6074%2025.0908C49.6074%2025.9761%2049.3796%2026.7149%2048.9206%2027.3041C48.4617%2027.8932%2047.8075%2028.2642%2046.9482%2028.414V28.5181C48.0158%2028.7199%2048.8002%2029.1138%2049.3014%2029.7062C49.8027%2030.2985%2050.0533%2031.0992%2050.0533%2032.1115C50.0533%2033.4753%2049.5781%2034.5429%2048.6244%2035.3143C47.6707%2036.0857%2046.3493%2036.473%2044.6502%2036.473H39.1658V21.2891H39.169ZM41.6525%2027.5645H44.0416C45.0799%2027.5645%2045.8383%2027.3985%2046.3167%2027.0697C46.7952%2026.741%2047.0328%2026.1811%2047.0328%2025.3935C47.0328%2024.6806%2046.7757%2024.1631%2046.2581%2023.8474C45.7406%2023.5284%2044.9236%2023.3689%2043.8007%2023.3689H41.6492V27.5645H41.6525ZM41.6525%2029.5792V34.3867H44.2889C45.3272%2034.3867%2046.1117%2034.1881%2046.6422%2033.791C47.1728%2033.3939%2047.4364%2032.7657%2047.4364%2031.9065C47.4364%2031.1188%2047.1662%2030.5329%2046.6259%2030.1521C46.0856%2029.7713%2045.2654%2029.5792%2044.1653%2029.5792H41.6525Z'%20fill='url(%23paint8_linear_4548_14216)'/%3e%3cpath%20d='M58.7762%2024.7817C59.2677%2024.7817%2059.6713%2024.8175%2059.9902%2024.8859L59.7526%2027.161C59.4076%2027.0764%2059.0463%2027.0374%2058.672%2027.0374C57.6955%2027.0374%2056.9046%2027.3563%2056.2992%2027.9943C55.6938%2028.6322%2055.3911%2029.459%2055.3911%2030.4778V36.4797H52.95V24.9933H54.8606L55.1828%2027.0178H55.3065C55.6873%2026.3311%2056.1853%2025.7908%2056.7972%2025.3871C57.4091%2024.9868%2058.0699%2024.785%2058.7762%2024.785V24.7817Z'%20fill='url(%23paint9_linear_4548_14216)'/%3e%3cpath%20d='M69.309%2036.4734L68.8208%2034.8753H68.7394C68.1861%2035.575%2067.6295%2036.0503%2067.0664%2036.3041C66.5065%2036.558%2065.784%2036.685%2064.9051%2036.685C63.7757%2036.685%2062.8969%2036.379%2062.2622%2035.7703C61.6275%2035.1617%2061.3118%2034.2991%2061.3118%2033.186C61.3118%2032.0012%2061.7512%2031.1094%2062.63%2030.5072C63.5088%2029.9051%2064.8498%2029.5763%2066.6498%2029.521L68.632%2029.4591V28.8472C68.632%2028.1116%2068.4595%2027.5648%2068.1177%2027.2003C67.7759%2026.8357%2067.2421%2026.6534%2066.5228%2026.6534C65.9337%2026.6534%2065.3706%2026.7413%2064.8303%2026.9138C64.29%2027.0864%2063.7692%2027.2914%2063.2712%2027.5258L62.4803%2025.7811C63.1019%2025.4557%2063.7855%2025.2083%2064.5276%2025.039C65.2697%2024.8698%2065.9662%2024.7852%2066.627%2024.7852C68.0884%2024.7852%2069.1918%2025.1041%2069.9339%2025.7421C70.6793%2026.38%2071.0503%2027.3793%2071.0503%2028.7431V36.4799H69.3057L69.309%2036.4734ZM65.6733%2034.8134C66.5586%2034.8134%2067.2714%2034.566%2067.8085%2034.0713C68.3455%2033.5766%2068.6124%2032.8833%2068.6124%2031.9882V30.9922L67.138%2031.054C65.989%2031.0963%2065.1525%2031.2884%2064.6285%2031.6301C64.1044%2031.9719%2063.8441%2032.4992%2063.8441%2033.2055C63.8441%2033.7165%2063.997%2034.1136%2064.2997%2034.3935C64.6057%2034.6734%2065.0614%2034.8134%2065.67%2034.8134H65.6733Z'%20fill='url(%23paint10_linear_4548_14216)'/%3e%3cpath%20d='M84.5646%2036.4732H82.1137V29.4102C82.1137%2028.5248%2081.9347%2027.8641%2081.5799%2027.4279C81.2219%2026.9918%2080.6588%2026.7737%2079.8809%2026.7737C78.8491%2026.7737%2078.0939%2027.0797%2077.6155%2027.6883C77.137%2028.297%2076.8994%2029.319%2076.8994%2030.7512V36.4732H74.4583V24.9868H76.3689L76.7106%2026.4938H76.8343C77.1793%2025.947%2077.6708%2025.5238%2078.3088%2025.2277C78.9467%2024.9315%2079.653%2024.7817%2080.4277%2024.7817C83.1846%2024.7817%2084.5614%2026.1846%2084.5614%2028.987V36.4765L84.5646%2036.4732Z'%20fill='url(%23paint11_linear_4548_14216)'/%3e%3cpath%20d='M91.836%2036.6814C90.4038%2036.6814%2089.2841%2036.1606%2088.4802%2035.1223C87.6762%2034.084%2087.2759%2032.6258%2087.2759%2030.751C87.2759%2028.8762%2087.6827%2027.4018%2088.4965%2026.3537C89.3102%2025.3056%2090.4364%2024.7816%2091.8783%2024.7816C93.3202%2024.7816%2094.5375%2025.3382%2095.3252%2026.4546H95.4489C95.3317%2025.6311%2095.2731%2024.9802%2095.2731%2024.5017V20.3159H97.724V36.4763H95.8134L95.387%2034.9693H95.2731C94.4919%2036.1118%2093.3462%2036.6847%2091.836%2036.6847V36.6814ZM92.4902%2034.709C93.4927%2034.709%2094.225%2034.4258%2094.6807%2033.8627C95.1364%2033.2996%2095.374%2032.3817%2095.387%2031.1156V30.7738C95.387%2029.3254%2095.1527%2028.2969%2094.6807%2027.6882C94.2088%2027.0795%2093.4732%2026.7736%2092.4674%2026.7736C91.6081%2026.7736%2090.9474%2027.1219%2090.4852%2027.8184C90.023%2028.5149%2089.7886%2029.5044%2089.7886%2030.7933C89.7886%2032.0823%2090.0132%2033.0392%2090.4624%2033.7065C90.9116%2034.3737%2091.5886%2034.709%2092.4869%2034.709H92.4902Z'%20fill='url(%23paint12_linear_4548_14216)'/%3e%3cpath%20d='M106.997%2036.473V21.2891H109.481V36.473H106.997Z'%20fill='url(%23paint13_linear_4548_14216)'/%3e%3cpath%20d='M123.334%2036.4732H120.883V29.4102C120.883%2028.5248%20120.704%2027.8641%20120.349%2027.4279C119.991%2026.9918%20119.428%2026.7737%20118.65%2026.7737C117.618%2026.7737%20116.863%2027.0797%20116.385%2027.6883C115.906%2028.297%20115.668%2029.319%20115.668%2030.7512V36.4732H113.227V24.9868H115.138L115.48%2026.4938H115.603C115.948%2025.947%20116.44%2025.5238%20117.078%2025.2277C117.716%2024.9315%20118.422%2024.7817%20119.197%2024.7817C121.954%2024.7817%20123.33%2026.1846%20123.33%2028.987V36.4765L123.334%2036.4732Z'%20fill='url(%23paint14_linear_4548_14216)'/%3e%3cpath%20d='M134.449%2033.2019C134.449%2034.3249%20134.039%2035.1841%20133.222%2035.783C132.405%2036.3819%20131.233%2036.6814%20129.71%2036.6814C128.187%2036.6814%20126.95%2036.4503%20126.022%2035.9848V33.8757C127.373%2034.4974%20128.629%2034.8098%20129.791%2034.8098C131.295%2034.8098%20132.044%2034.3574%20132.044%2033.4493C132.044%2033.1596%20131.959%2032.9155%20131.793%2032.7235C131.627%2032.5314%20131.354%2032.3296%20130.973%2032.1213C130.592%2031.913%20130.062%2031.6786%20129.385%2031.415C128.063%2030.904%20127.168%2030.3897%20126.699%2029.8787C126.231%2029.3677%20126%2028.7004%20126%2027.8835C126%2026.9005%20126.397%2026.1389%20127.188%2025.592C127.982%2025.0485%20129.059%2024.7783%20130.423%2024.7783C131.787%2024.7783%20133.05%2025.0517%20134.254%2025.5986L133.466%2027.4376C132.226%2026.9265%20131.185%2026.6694%20130.342%2026.6694C129.053%2026.6694%20128.411%2027.0372%20128.411%2027.7695C128.411%2028.1308%20128.581%2028.4335%20128.916%2028.6842C129.251%2028.9348%20129.983%2029.2766%20131.113%2029.7127C132.06%2030.0805%20132.75%2030.4158%20133.18%2030.7217C133.609%2031.0277%20133.928%2031.3792%20134.137%2031.7763C134.345%2032.1734%20134.449%2032.6519%20134.449%2033.2052V33.2019Z'%20fill='url(%23paint15_linear_4548_14216)'/%3e%3cpath%20d='M136.939%2021.9434C136.939%2021.5072%20137.059%2021.172%20137.297%2020.9344C137.535%2020.6968%20137.876%2020.5796%20138.319%2020.5796C138.762%2020.5796%20139.081%2020.6968%20139.322%2020.9344C139.562%2021.1687%20139.68%2021.504%20139.68%2021.9434C139.68%2022.3828%20139.559%2022.6855%20139.322%2022.9264C139.084%2023.164%20138.749%2023.2844%20138.319%2023.2844C137.889%2023.2844%20137.535%2023.164%20137.297%2022.9264C137.059%2022.6887%20136.939%2022.36%20136.939%2021.9434ZM139.527%2036.4731H137.085V24.9867H139.527V36.4731Z'%20fill='url(%23paint16_linear_4548_14216)'/%3e%3cpath%20d='M152.715%2024.987V26.328L150.752%2026.6925C150.931%2026.9334%20151.081%2027.2328%20151.198%2027.5843C151.316%2027.9359%20151.374%2028.3102%20151.374%2028.7073C151.374%2029.892%20150.964%2030.8229%20150.147%2031.5C149.33%2032.177%20148.204%2032.5187%20146.772%2032.5187C146.404%2032.5187%20146.072%2032.4927%20145.776%2032.4373C145.248%2032.7628%20144.988%2033.1437%20144.988%2033.5798C144.988%2033.8435%20145.112%2034.0387%20145.356%2034.1722C145.603%2034.3024%20146.052%2034.3707%20146.71%2034.3707H148.715C149.981%2034.3707%20150.945%2034.6409%20151.602%2035.1812C152.259%2035.7215%20152.588%2036.4994%20152.588%2037.5182C152.588%2038.8202%20152.051%2039.8227%20150.977%2040.529C149.903%2041.2353%20148.354%2041.5868%20146.326%2041.5868C144.76%2041.5868%20143.566%2041.3101%20142.742%2040.7568C141.919%2040.2035%20141.505%2039.4125%20141.505%2038.3905C141.505%2037.6842%20141.73%2037.0918%20142.176%2036.6101C142.622%2036.1284%20143.247%2035.7964%20144.051%2035.6076C143.725%2035.4676%20143.455%2035.2463%20143.247%2034.9371C143.035%2034.6279%20142.931%2034.3056%20142.931%2033.9671C142.931%2033.5375%20143.051%2033.173%20143.296%2032.8768C143.54%2032.5806%20143.898%2032.2844%20144.376%2031.9947C143.781%2031.7376%20143.299%2031.3209%20142.928%2030.7416C142.557%2030.1655%20142.371%2029.4884%20142.371%2028.7105C142.371%2027.4639%20142.765%2026.4972%20143.549%2025.8137C144.334%2025.1269%20145.454%2024.7852%20146.908%2024.7852C147.234%2024.7852%20147.576%2024.8079%20147.93%2024.8535C148.289%2024.8991%20148.555%2024.9446%20148.734%2024.9935H152.712L152.715%2024.987ZM143.689%2038.2603C143.689%2038.7876%20143.927%2039.1912%20144.402%2039.4744C144.877%2039.7576%20145.541%2039.9008%20146.401%2039.9008C147.729%2039.9008%20148.721%2039.7087%20149.372%2039.3279C150.023%2038.9471%20150.349%2038.4426%20150.349%2037.8111C150.349%2037.3131%20150.17%2036.9584%20149.815%2036.7468C149.457%2036.5352%20148.796%2036.4311%20147.826%2036.4311H145.978C145.278%2036.4311%20144.721%2036.5971%20144.311%2036.9258C143.898%2037.2546%20143.693%2037.7005%20143.693%2038.2603H143.689ZM144.741%2028.7073C144.741%2029.4266%20144.926%2029.9799%20145.297%2030.3705C145.668%2030.7578%20146.199%2030.9531%20146.892%2030.9531C148.305%2030.9531%20149.011%2030.198%20149.011%2028.6877C149.011%2027.9391%20148.835%2027.363%20148.487%2026.9594C148.139%2026.5558%20147.605%2026.3507%20146.892%2026.3507C146.179%2026.3507%20145.652%2026.5526%20145.288%2026.9529C144.923%2027.3532%20144.741%2027.9391%20144.741%2028.7073Z'%20fill='url(%23paint17_linear_4548_14216)'/%3e%3cpath%20d='M164.95%2036.4729H162.499V29.4099C162.499%2028.5245%20162.32%2027.8638%20161.965%2027.4276C161.607%2026.9915%20161.044%2026.7734%20160.266%2026.7734C159.241%2026.7734%20158.489%2027.0794%20158.007%2027.6913C157.526%2028.3032%20157.285%2029.3317%20157.285%2030.7704V36.4729H154.844V20.3125H157.285V24.4136C157.285%2025.0711%20157.243%2025.7742%20157.161%2026.5228H157.317C157.649%2025.9695%20158.112%2025.5398%20158.704%2025.2339C159.296%2024.9279%20159.986%2024.7782%20160.774%2024.7782C163.557%2024.7782%20164.95%2026.181%20164.95%2028.9835V36.4729Z'%20fill='url(%23paint18_linear_4548_14216)'/%3e%3cpath%20d='M172.625%2034.709C173.221%2034.709%20173.816%2034.6146%20174.412%2034.4291V36.2681C174.142%2036.3853%20173.794%2036.4829%20173.367%2036.5643C172.941%2036.6424%20172.501%2036.6847%20172.042%2036.6847C169.728%2036.6847%20168.573%2035.4674%20168.573%2033.0295V26.8387H167.004V25.7581L168.687%2024.863L169.517%2022.4316H171.024V24.9867H174.295V26.8355H171.024V32.9839C171.024%2033.5731%20171.17%2034.006%20171.466%2034.2859C171.763%2034.5658%20172.147%2034.7058%20172.625%2034.7058V34.709Z'%20fill='url(%23paint19_linear_4548_14216)'/%3e%3cpath%20d='M184.424%2033.2019C184.424%2034.3249%20184.014%2035.1841%20183.197%2035.783C182.38%2036.3819%20181.208%2036.6814%20179.685%2036.6814C178.161%2036.6814%20176.925%2036.4503%20175.997%2035.9848V33.8757C177.348%2034.4974%20178.604%2034.8098%20179.766%2034.8098C181.27%2034.8098%20182.018%2034.3574%20182.018%2033.4493C182.018%2033.1596%20181.934%2032.9155%20181.768%2032.7235C181.602%2032.5314%20181.328%2032.3296%20180.948%2032.1213C180.567%2031.913%20180.036%2031.6786%20179.359%2031.415C178.038%2030.904%20177.143%2030.3897%20176.674%2029.8787C176.205%2029.3677%20175.974%2028.7004%20175.974%2027.8835C175.974%2026.9005%20176.371%2026.1389%20177.162%2025.592C177.956%2025.0485%20179.034%2024.7783%20180.397%2024.7783C181.761%2024.7783%20183.024%2025.0517%20184.228%2025.5986L183.441%2027.4376C182.201%2026.9265%20181.159%2026.6694%20180.316%2026.6694C179.027%2026.6694%20178.386%2027.0372%20178.386%2027.7695C178.386%2028.1308%20178.555%2028.4335%20178.89%2028.6842C179.226%2028.9348%20179.958%2029.2766%20181.088%2029.7127C182.035%2030.0805%20182.725%2030.4158%20183.154%2030.7217C183.584%2031.0277%20183.903%2031.3792%20184.111%2031.7763C184.32%2032.1734%20184.424%2032.6519%20184.424%2033.2052V33.2019Z'%20fill='url(%23paint20_linear_4548_14216)'/%3e%3cdefs%3e%3cradialGradient%20id='paint0_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0672%2015.5248)%20scale(61.1655%2061.1655)'%3e%3cstop%20offset='0.17'%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint1_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0676%2015.525)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint2_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8974)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint3_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8984)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint4_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1655)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint5_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0677%20-58.8978)%20scale(61.1655%2061.1654)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint6_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0673%2015.5246)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3cradialGradient%20id='paint7_radial_4548_14216'%20cx='0'%20cy='0'%20r='1'%20gradientUnits='userSpaceOnUse'%20gradientTransform='translate(44.0675%20-58.8983)%20scale(61.1655%2061.1656)'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/radialGradient%3e%3clinearGradient%20id='paint8_linear_4548_14216'%20x1='27.6858'%20y1='26.9883'%20x2='184.655'%20y2='47.7609'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint9_linear_4548_14216'%20x1='27.7019'%20y1='26.8681'%20x2='184.671'%20y2='47.6374'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint10_linear_4548_14216'%20x1='27.8582'%20y1='25.703'%20x2='184.827'%20y2='46.4723'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint11_linear_4548_14216'%20x1='28.0796'%20y1='24.0657'%20x2='185.049'%20y2='44.835'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint12_linear_4548_14216'%20x1='28.6426'%20y1='19.7724'%20x2='185.612'%20y2='40.5417'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint13_linear_4548_14216'%20x1='28.8281'%20y1='18.376'%20x2='185.794'%20y2='39.1453'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint14_linear_4548_14216'%20x1='28.7407'%20y1='19.0206'%20x2='185.71'%20y2='39.7899'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint15_linear_4548_14216'%20x1='28.9621'%20y1='17.367'%20x2='185.928'%20y2='38.1363'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint16_linear_4548_14216'%20x1='29.382'%20y1='14.187'%20x2='186.351'%20y2='34.9563'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint17_linear_4548_14216'%20x1='28.9585'%20y1='17.3836'%20x2='185.928'%20y2='38.1529'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint18_linear_4548_14216'%20x1='29.7136'%20y1='11.6741'%20x2='186.683'%20y2='32.4466'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint19_linear_4548_14216'%20x1='29.8241'%20y1='10.8313'%20x2='186.794'%20y2='31.6039'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint20_linear_4548_14216'%20x1='29.8206'%20y1='10.867'%20x2='186.79'%20y2='31.6364'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23A61E69'/%3e%3cstop%20offset='1'%20stop-color='%236366F1'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
|
|
6125
|
-
function _slicedToArray$
|
|
6126
|
-
return _arrayWithHoles$
|
|
6125
|
+
function _slicedToArray$n(r, e) {
|
|
6126
|
+
return _arrayWithHoles$n(r) || _iterableToArrayLimit$n(r, e) || _unsupportedIterableToArray$n(r, e) || _nonIterableRest$n();
|
|
6127
6127
|
}
|
|
6128
|
-
function _nonIterableRest$
|
|
6128
|
+
function _nonIterableRest$n() {
|
|
6129
6129
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6130
6130
|
}
|
|
6131
|
-
function _unsupportedIterableToArray$
|
|
6131
|
+
function _unsupportedIterableToArray$n(r, a) {
|
|
6132
6132
|
if (r) {
|
|
6133
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
6133
|
+
if ("string" == typeof r) return _arrayLikeToArray$n(r, a);
|
|
6134
6134
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6135
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
6135
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0;
|
|
6136
6136
|
}
|
|
6137
6137
|
}
|
|
6138
|
-
function _arrayLikeToArray$
|
|
6138
|
+
function _arrayLikeToArray$n(r, a) {
|
|
6139
6139
|
(null == a || a > r.length) && (a = r.length);
|
|
6140
6140
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6141
6141
|
return n;
|
|
6142
6142
|
}
|
|
6143
|
-
function _iterableToArrayLimit$
|
|
6143
|
+
function _iterableToArrayLimit$n(r, l) {
|
|
6144
6144
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6145
6145
|
if (null != t) {
|
|
6146
6146
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -6159,7 +6159,7 @@ function _iterableToArrayLimit$m(r, l) {
|
|
|
6159
6159
|
return a;
|
|
6160
6160
|
}
|
|
6161
6161
|
}
|
|
6162
|
-
function _arrayWithHoles$
|
|
6162
|
+
function _arrayWithHoles$n(r) {
|
|
6163
6163
|
if (Array.isArray(r)) return r;
|
|
6164
6164
|
}
|
|
6165
6165
|
var Nav = function Nav2(_ref) {
|
|
@@ -6168,7 +6168,7 @@ var Nav = function Nav2(_ref) {
|
|
|
6168
6168
|
var pathname = location.pathname;
|
|
6169
6169
|
var _useBrandAnalysisData = useBrandAnalysisData(), hostAppProps = _useBrandAnalysisData.hostAppProps;
|
|
6170
6170
|
var onLogout = hostAppProps.onLogout;
|
|
6171
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
6171
|
+
var _useState = useState(false), _useState2 = _slicedToArray$n(_useState, 2), logoutRequested = _useState2[0], setLogoutRequested = _useState2[1];
|
|
6172
6172
|
var _useGetCurrentUser = useGetCurrentUser({
|
|
6173
6173
|
query: {
|
|
6174
6174
|
select: function select(_ref2) {
|
|
@@ -6351,25 +6351,25 @@ function _asyncToGenerator$7(n) {
|
|
|
6351
6351
|
});
|
|
6352
6352
|
};
|
|
6353
6353
|
}
|
|
6354
|
-
function _slicedToArray$
|
|
6355
|
-
return _arrayWithHoles$
|
|
6354
|
+
function _slicedToArray$m(r, e) {
|
|
6355
|
+
return _arrayWithHoles$m(r) || _iterableToArrayLimit$m(r, e) || _unsupportedIterableToArray$m(r, e) || _nonIterableRest$m();
|
|
6356
6356
|
}
|
|
6357
|
-
function _nonIterableRest$
|
|
6357
|
+
function _nonIterableRest$m() {
|
|
6358
6358
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6359
6359
|
}
|
|
6360
|
-
function _unsupportedIterableToArray$
|
|
6360
|
+
function _unsupportedIterableToArray$m(r, a) {
|
|
6361
6361
|
if (r) {
|
|
6362
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
6362
|
+
if ("string" == typeof r) return _arrayLikeToArray$m(r, a);
|
|
6363
6363
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6364
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
6364
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0;
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
|
-
function _arrayLikeToArray$
|
|
6367
|
+
function _arrayLikeToArray$m(r, a) {
|
|
6368
6368
|
(null == a || a > r.length) && (a = r.length);
|
|
6369
6369
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6370
6370
|
return n;
|
|
6371
6371
|
}
|
|
6372
|
-
function _iterableToArrayLimit$
|
|
6372
|
+
function _iterableToArrayLimit$m(r, l) {
|
|
6373
6373
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6374
6374
|
if (null != t) {
|
|
6375
6375
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -6388,7 +6388,7 @@ function _iterableToArrayLimit$l(r, l) {
|
|
|
6388
6388
|
return a;
|
|
6389
6389
|
}
|
|
6390
6390
|
}
|
|
6391
|
-
function _arrayWithHoles$
|
|
6391
|
+
function _arrayWithHoles$m(r) {
|
|
6392
6392
|
if (Array.isArray(r)) return r;
|
|
6393
6393
|
}
|
|
6394
6394
|
var ModalAlertBrandDisabled = function ModalAlertBrandDisabled2(_ref) {
|
|
@@ -6396,7 +6396,7 @@ var ModalAlertBrandDisabled = function ModalAlertBrandDisabled2(_ref) {
|
|
|
6396
6396
|
var className = _ref.className;
|
|
6397
6397
|
var queryClient2 = useQueryClient();
|
|
6398
6398
|
var navigate = useNavigate();
|
|
6399
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
6399
|
+
var _useState = useState(false), _useState2 = _slicedToArray$m(_useState, 2), showBrandDisabledModal = _useState2[0], setShowBrandDisabledModal = _useState2[1];
|
|
6400
6400
|
var _useGetBrands = useGetBrands({
|
|
6401
6401
|
query: {
|
|
6402
6402
|
select: function select(_ref2) {
|
|
@@ -6592,25 +6592,25 @@ var RouteGuardLoading = function RouteGuardLoading2() {
|
|
|
6592
6592
|
/* @__PURE__ */ jsx("span", { className: "yst-italic", children: "Just a moment while we get things ready for you..." })
|
|
6593
6593
|
] }) });
|
|
6594
6594
|
};
|
|
6595
|
-
function _slicedToArray$
|
|
6596
|
-
return _arrayWithHoles$
|
|
6595
|
+
function _slicedToArray$l(r, e) {
|
|
6596
|
+
return _arrayWithHoles$l(r) || _iterableToArrayLimit$l(r, e) || _unsupportedIterableToArray$l(r, e) || _nonIterableRest$l();
|
|
6597
6597
|
}
|
|
6598
|
-
function _nonIterableRest$
|
|
6598
|
+
function _nonIterableRest$l() {
|
|
6599
6599
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6600
6600
|
}
|
|
6601
|
-
function _unsupportedIterableToArray$
|
|
6601
|
+
function _unsupportedIterableToArray$l(r, a) {
|
|
6602
6602
|
if (r) {
|
|
6603
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
6603
|
+
if ("string" == typeof r) return _arrayLikeToArray$l(r, a);
|
|
6604
6604
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6605
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
6605
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0;
|
|
6606
6606
|
}
|
|
6607
6607
|
}
|
|
6608
|
-
function _arrayLikeToArray$
|
|
6608
|
+
function _arrayLikeToArray$l(r, a) {
|
|
6609
6609
|
(null == a || a > r.length) && (a = r.length);
|
|
6610
6610
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6611
6611
|
return n;
|
|
6612
6612
|
}
|
|
6613
|
-
function _iterableToArrayLimit$
|
|
6613
|
+
function _iterableToArrayLimit$l(r, l) {
|
|
6614
6614
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6615
6615
|
if (null != t) {
|
|
6616
6616
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -6629,7 +6629,7 @@ function _iterableToArrayLimit$k(r, l) {
|
|
|
6629
6629
|
return a;
|
|
6630
6630
|
}
|
|
6631
6631
|
}
|
|
6632
|
-
function _arrayWithHoles$
|
|
6632
|
+
function _arrayWithHoles$l(r) {
|
|
6633
6633
|
if (Array.isArray(r)) return r;
|
|
6634
6634
|
}
|
|
6635
6635
|
var ROUTES = {
|
|
@@ -6644,7 +6644,7 @@ var Initializer = function Initializer2(_ref) {
|
|
|
6644
6644
|
// NOTE: even though it defaults to show,
|
|
6645
6645
|
// it is only rendered based on the logic below
|
|
6646
6646
|
true
|
|
6647
|
-
), _React$useState2 = _slicedToArray$
|
|
6647
|
+
), _React$useState2 = _slicedToArray$l(_React$useState, 2), showUpgradeModal = _React$useState2[0], setShowUpgradeModal = _React$useState2[1];
|
|
6648
6648
|
var layoutProps = {
|
|
6649
6649
|
disable: disableLayout,
|
|
6650
6650
|
hideNav
|
|
@@ -6779,7 +6779,7 @@ var BrandIdGuard = function BrandIdGuard2() {
|
|
|
6779
6779
|
return /* @__PURE__ */ jsx(Outlet, {});
|
|
6780
6780
|
};
|
|
6781
6781
|
function _toConsumableArray$3(r) {
|
|
6782
|
-
return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$
|
|
6782
|
+
return _arrayWithoutHoles$3(r) || _iterableToArray$3(r) || _unsupportedIterableToArray$k(r) || _nonIterableSpread$3();
|
|
6783
6783
|
}
|
|
6784
6784
|
function _nonIterableSpread$3() {
|
|
6785
6785
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -6788,27 +6788,27 @@ function _iterableToArray$3(r) {
|
|
|
6788
6788
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
6789
6789
|
}
|
|
6790
6790
|
function _arrayWithoutHoles$3(r) {
|
|
6791
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
6791
|
+
if (Array.isArray(r)) return _arrayLikeToArray$k(r);
|
|
6792
6792
|
}
|
|
6793
|
-
function _slicedToArray$
|
|
6794
|
-
return _arrayWithHoles$
|
|
6793
|
+
function _slicedToArray$k(r, e) {
|
|
6794
|
+
return _arrayWithHoles$k(r) || _iterableToArrayLimit$k(r, e) || _unsupportedIterableToArray$k(r, e) || _nonIterableRest$k();
|
|
6795
6795
|
}
|
|
6796
|
-
function _nonIterableRest$
|
|
6796
|
+
function _nonIterableRest$k() {
|
|
6797
6797
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6798
6798
|
}
|
|
6799
|
-
function _unsupportedIterableToArray$
|
|
6799
|
+
function _unsupportedIterableToArray$k(r, a) {
|
|
6800
6800
|
if (r) {
|
|
6801
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
6801
|
+
if ("string" == typeof r) return _arrayLikeToArray$k(r, a);
|
|
6802
6802
|
var t = {}.toString.call(r).slice(8, -1);
|
|
6803
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
6803
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0;
|
|
6804
6804
|
}
|
|
6805
6805
|
}
|
|
6806
|
-
function _arrayLikeToArray$
|
|
6806
|
+
function _arrayLikeToArray$k(r, a) {
|
|
6807
6807
|
(null == a || a > r.length) && (a = r.length);
|
|
6808
6808
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6809
6809
|
return n;
|
|
6810
6810
|
}
|
|
6811
|
-
function _iterableToArrayLimit$
|
|
6811
|
+
function _iterableToArrayLimit$k(r, l) {
|
|
6812
6812
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
6813
6813
|
if (null != t) {
|
|
6814
6814
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -6827,13 +6827,13 @@ function _iterableToArrayLimit$j(r, l) {
|
|
|
6827
6827
|
return a;
|
|
6828
6828
|
}
|
|
6829
6829
|
}
|
|
6830
|
-
function _arrayWithHoles$
|
|
6830
|
+
function _arrayWithHoles$k(r) {
|
|
6831
6831
|
if (Array.isArray(r)) return r;
|
|
6832
6832
|
}
|
|
6833
6833
|
var ToastContext = createContext(void 0);
|
|
6834
6834
|
var ToastProvider = function ToastProvider2(_ref) {
|
|
6835
6835
|
var children = _ref.children;
|
|
6836
|
-
var _useState = useState([]), _useState2 = _slicedToArray$
|
|
6836
|
+
var _useState = useState([]), _useState2 = _slicedToArray$k(_useState, 2), toasts = _useState2[0], setToasts = _useState2[1];
|
|
6837
6837
|
var removeToast = useCallback(function(id) {
|
|
6838
6838
|
setToasts(function(prev) {
|
|
6839
6839
|
return prev.filter(function(toast) {
|
|
@@ -7254,25 +7254,25 @@ function TextScore(_ref) {
|
|
|
7254
7254
|
] });
|
|
7255
7255
|
}
|
|
7256
7256
|
var _excluded$3 = ["Icon", "className", "children", "position", "id"];
|
|
7257
|
-
function _slicedToArray$
|
|
7258
|
-
return _arrayWithHoles$
|
|
7257
|
+
function _slicedToArray$j(r, e) {
|
|
7258
|
+
return _arrayWithHoles$j(r) || _iterableToArrayLimit$j(r, e) || _unsupportedIterableToArray$j(r, e) || _nonIterableRest$j();
|
|
7259
7259
|
}
|
|
7260
|
-
function _nonIterableRest$
|
|
7260
|
+
function _nonIterableRest$j() {
|
|
7261
7261
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7262
7262
|
}
|
|
7263
|
-
function _unsupportedIterableToArray$
|
|
7263
|
+
function _unsupportedIterableToArray$j(r, a) {
|
|
7264
7264
|
if (r) {
|
|
7265
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
7265
|
+
if ("string" == typeof r) return _arrayLikeToArray$j(r, a);
|
|
7266
7266
|
var t = {}.toString.call(r).slice(8, -1);
|
|
7267
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
7267
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0;
|
|
7268
7268
|
}
|
|
7269
7269
|
}
|
|
7270
|
-
function _arrayLikeToArray$
|
|
7270
|
+
function _arrayLikeToArray$j(r, a) {
|
|
7271
7271
|
(null == a || a > r.length) && (a = r.length);
|
|
7272
7272
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
7273
7273
|
return n;
|
|
7274
7274
|
}
|
|
7275
|
-
function _iterableToArrayLimit$
|
|
7275
|
+
function _iterableToArrayLimit$j(r, l) {
|
|
7276
7276
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7277
7277
|
if (null != t) {
|
|
7278
7278
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -7291,7 +7291,7 @@ function _iterableToArrayLimit$i(r, l) {
|
|
|
7291
7291
|
return a;
|
|
7292
7292
|
}
|
|
7293
7293
|
}
|
|
7294
|
-
function _arrayWithHoles$
|
|
7294
|
+
function _arrayWithHoles$j(r) {
|
|
7295
7295
|
if (Array.isArray(r)) return r;
|
|
7296
7296
|
}
|
|
7297
7297
|
function _objectWithoutProperties$3(e, t) {
|
|
@@ -7314,7 +7314,7 @@ function _objectWithoutPropertiesLoose$3(r, e) {
|
|
|
7314
7314
|
}
|
|
7315
7315
|
function TooltipUncontrolled(_ref) {
|
|
7316
7316
|
var _ref$Icon = _ref.Icon, Icon = _ref$Icon === void 0 ? ForwardRef$i : _ref$Icon, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className, children = _ref.children, _ref$position = _ref.position, position = _ref$position === void 0 ? "left" : _ref$position, _ref$id = _ref.id, id = _ref$id === void 0 ? "" : _ref$id, props = _objectWithoutProperties$3(_ref, _excluded$3);
|
|
7317
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
7317
|
+
var _useState = useState(false), _useState2 = _slicedToArray$j(_useState, 2), showTooltip = _useState2[0], setShowTooltip = _useState2[1];
|
|
7318
7318
|
if (!children) return null;
|
|
7319
7319
|
return /* @__PURE__ */ jsxs("div", { className: className || "yst-relative", onMouseEnter: function() {
|
|
7320
7320
|
return setShowTooltip(true);
|
|
@@ -7630,7 +7630,7 @@ function _toPrimitive$8(t, r) {
|
|
|
7630
7630
|
return ("string" === r ? String : Number)(t);
|
|
7631
7631
|
}
|
|
7632
7632
|
function _toConsumableArray$2(r) {
|
|
7633
|
-
return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$
|
|
7633
|
+
return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$i(r) || _nonIterableSpread$2();
|
|
7634
7634
|
}
|
|
7635
7635
|
function _nonIterableSpread$2() {
|
|
7636
7636
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -7639,27 +7639,27 @@ function _iterableToArray$2(r) {
|
|
|
7639
7639
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
7640
7640
|
}
|
|
7641
7641
|
function _arrayWithoutHoles$2(r) {
|
|
7642
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
7642
|
+
if (Array.isArray(r)) return _arrayLikeToArray$i(r);
|
|
7643
7643
|
}
|
|
7644
|
-
function _slicedToArray$
|
|
7645
|
-
return _arrayWithHoles$
|
|
7644
|
+
function _slicedToArray$i(r, e) {
|
|
7645
|
+
return _arrayWithHoles$i(r) || _iterableToArrayLimit$i(r, e) || _unsupportedIterableToArray$i(r, e) || _nonIterableRest$i();
|
|
7646
7646
|
}
|
|
7647
|
-
function _nonIterableRest$
|
|
7647
|
+
function _nonIterableRest$i() {
|
|
7648
7648
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7649
7649
|
}
|
|
7650
|
-
function _unsupportedIterableToArray$
|
|
7650
|
+
function _unsupportedIterableToArray$i(r, a) {
|
|
7651
7651
|
if (r) {
|
|
7652
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
7652
|
+
if ("string" == typeof r) return _arrayLikeToArray$i(r, a);
|
|
7653
7653
|
var t = {}.toString.call(r).slice(8, -1);
|
|
7654
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
7654
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0;
|
|
7655
7655
|
}
|
|
7656
7656
|
}
|
|
7657
|
-
function _arrayLikeToArray$
|
|
7657
|
+
function _arrayLikeToArray$i(r, a) {
|
|
7658
7658
|
(null == a || a > r.length) && (a = r.length);
|
|
7659
7659
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
7660
7660
|
return n;
|
|
7661
7661
|
}
|
|
7662
|
-
function _iterableToArrayLimit$
|
|
7662
|
+
function _iterableToArrayLimit$i(r, l) {
|
|
7663
7663
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7664
7664
|
if (null != t) {
|
|
7665
7665
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -7678,7 +7678,7 @@ function _iterableToArrayLimit$h(r, l) {
|
|
|
7678
7678
|
return a;
|
|
7679
7679
|
}
|
|
7680
7680
|
}
|
|
7681
|
-
function _arrayWithHoles$
|
|
7681
|
+
function _arrayWithHoles$i(r) {
|
|
7682
7682
|
if (Array.isArray(r)) return r;
|
|
7683
7683
|
}
|
|
7684
7684
|
function _taggedTemplateLiteral$2(e, t) {
|
|
@@ -7774,8 +7774,8 @@ var CitationTableRow = function CitationTableRow2(_ref) {
|
|
|
7774
7774
|
var CitationsCard = function CitationsCard2(_ref3) {
|
|
7775
7775
|
var _scan$scores, _citations$list, _citations$total, _citations$total2, _citations$list2;
|
|
7776
7776
|
var _ref3$enableCategorie = _ref3.enableCategories, enableCategories = _ref3$enableCategorie === void 0 ? false : _ref3$enableCategorie;
|
|
7777
|
-
var _useState = useState("all"), _useState2 = _slicedToArray$
|
|
7778
|
-
var _useState3 = useState(1), _useState4 = _slicedToArray$
|
|
7777
|
+
var _useState = useState("all"), _useState2 = _slicedToArray$i(_useState, 2), selectedCategory = _useState2[0], setSelectedCategory = _useState2[1];
|
|
7778
|
+
var _useState3 = useState(1), _useState4 = _slicedToArray$i(_useState3, 2), currentPage = _useState4[0], setCurrentPage = _useState4[1];
|
|
7779
7779
|
var _useScan = useScan(), scan = _useScan.data, isLoading = _useScan.isLoading, isRefetching = _useScan.isRefetching;
|
|
7780
7780
|
var citations = scan === null || scan === void 0 ? void 0 : scan.citations;
|
|
7781
7781
|
var standardizedCitationScore = (scan === null || scan === void 0 || (_scan$scores = scan.scores) === null || _scan$scores === void 0 || (_scan$scores = _scan$scores.standardized) === null || _scan$scores === void 0 ? void 0 : _scan$scores.citations) || {};
|
|
@@ -7876,25 +7876,25 @@ var CitationsCard = function CitationsCard2(_ref3) {
|
|
|
7876
7876
|
] })
|
|
7877
7877
|
] }) });
|
|
7878
7878
|
};
|
|
7879
|
-
function _slicedToArray$
|
|
7880
|
-
return _arrayWithHoles$
|
|
7879
|
+
function _slicedToArray$h(r, e) {
|
|
7880
|
+
return _arrayWithHoles$h(r) || _iterableToArrayLimit$h(r, e) || _unsupportedIterableToArray$h(r, e) || _nonIterableRest$h();
|
|
7881
7881
|
}
|
|
7882
|
-
function _nonIterableRest$
|
|
7882
|
+
function _nonIterableRest$h() {
|
|
7883
7883
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7884
7884
|
}
|
|
7885
|
-
function _unsupportedIterableToArray$
|
|
7885
|
+
function _unsupportedIterableToArray$h(r, a) {
|
|
7886
7886
|
if (r) {
|
|
7887
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
7887
|
+
if ("string" == typeof r) return _arrayLikeToArray$h(r, a);
|
|
7888
7888
|
var t = {}.toString.call(r).slice(8, -1);
|
|
7889
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
7889
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0;
|
|
7890
7890
|
}
|
|
7891
7891
|
}
|
|
7892
|
-
function _arrayLikeToArray$
|
|
7892
|
+
function _arrayLikeToArray$h(r, a) {
|
|
7893
7893
|
(null == a || a > r.length) && (a = r.length);
|
|
7894
7894
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
7895
7895
|
return n;
|
|
7896
7896
|
}
|
|
7897
|
-
function _iterableToArrayLimit$
|
|
7897
|
+
function _iterableToArrayLimit$h(r, l) {
|
|
7898
7898
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7899
7899
|
if (null != t) {
|
|
7900
7900
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -7913,7 +7913,7 @@ function _iterableToArrayLimit$g(r, l) {
|
|
|
7913
7913
|
return a;
|
|
7914
7914
|
}
|
|
7915
7915
|
}
|
|
7916
|
-
function _arrayWithHoles$
|
|
7916
|
+
function _arrayWithHoles$h(r) {
|
|
7917
7917
|
if (Array.isArray(r)) return r;
|
|
7918
7918
|
}
|
|
7919
7919
|
var CompetitorRankingRow = function CompetitorRankingRow2(_ref) {
|
|
@@ -7957,7 +7957,7 @@ var CompetitorRankingCard = function CompetitorRankingCard2(_ref3) {
|
|
|
7957
7957
|
var _scan$rankings, _scan$scores;
|
|
7958
7958
|
var className = _ref3.className;
|
|
7959
7959
|
var cardRef = useRef(null);
|
|
7960
|
-
var _useState = useState(1), _useState2 = _slicedToArray$
|
|
7960
|
+
var _useState = useState(1), _useState2 = _slicedToArray$h(_useState, 2), currentPage = _useState2[0], setCurrentPage = _useState2[1];
|
|
7961
7961
|
var _useScan = useScan(), scan = _useScan.data, isLoading = _useScan.isLoading, isRefetching = _useScan.isRefetching;
|
|
7962
7962
|
var rankingsList = scan === null || scan === void 0 || (_scan$rankings = scan.rankings) === null || _scan$rankings === void 0 ? void 0 : _scan$rankings.list;
|
|
7963
7963
|
var standardizedRankingScore = (scan === null || scan === void 0 || (_scan$scores = scan.scores) === null || _scan$scores === void 0 || (_scan$scores = _scan$scores.standardized) === null || _scan$scores === void 0 ? void 0 : _scan$scores.ranking) || {};
|
|
@@ -9651,25 +9651,25 @@ function _toPrimitive$7(t, r) {
|
|
|
9651
9651
|
}
|
|
9652
9652
|
return ("string" === r ? String : Number)(t);
|
|
9653
9653
|
}
|
|
9654
|
-
function _slicedToArray$
|
|
9655
|
-
return _arrayWithHoles$
|
|
9654
|
+
function _slicedToArray$g(r, e) {
|
|
9655
|
+
return _arrayWithHoles$g(r) || _iterableToArrayLimit$g(r, e) || _unsupportedIterableToArray$g(r, e) || _nonIterableRest$g();
|
|
9656
9656
|
}
|
|
9657
|
-
function _nonIterableRest$
|
|
9657
|
+
function _nonIterableRest$g() {
|
|
9658
9658
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9659
9659
|
}
|
|
9660
|
-
function _unsupportedIterableToArray$
|
|
9660
|
+
function _unsupportedIterableToArray$g(r, a) {
|
|
9661
9661
|
if (r) {
|
|
9662
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
9662
|
+
if ("string" == typeof r) return _arrayLikeToArray$g(r, a);
|
|
9663
9663
|
var t = {}.toString.call(r).slice(8, -1);
|
|
9664
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
9664
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0;
|
|
9665
9665
|
}
|
|
9666
9666
|
}
|
|
9667
|
-
function _arrayLikeToArray$
|
|
9667
|
+
function _arrayLikeToArray$g(r, a) {
|
|
9668
9668
|
(null == a || a > r.length) && (a = r.length);
|
|
9669
9669
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
9670
9670
|
return n;
|
|
9671
9671
|
}
|
|
9672
|
-
function _iterableToArrayLimit$
|
|
9672
|
+
function _iterableToArrayLimit$g(r, l) {
|
|
9673
9673
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9674
9674
|
if (null != t) {
|
|
9675
9675
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -9690,7 +9690,7 @@ function _iterableToArrayLimit$f(r, l) {
|
|
|
9690
9690
|
return a;
|
|
9691
9691
|
}
|
|
9692
9692
|
}
|
|
9693
|
-
function _arrayWithHoles$
|
|
9693
|
+
function _arrayWithHoles$g(r) {
|
|
9694
9694
|
if (Array.isArray(r)) return r;
|
|
9695
9695
|
}
|
|
9696
9696
|
var CALENDAR_COLORS = {
|
|
@@ -9717,11 +9717,11 @@ var CALENDAR_COLORS = {
|
|
|
9717
9717
|
};
|
|
9718
9718
|
var AnalysisCalendarPicker = function AnalysisCalendarPicker2(_ref) {
|
|
9719
9719
|
var analyses = _ref.analyses, selectedAnalysisId = _ref.selectedAnalysisId, onAnalysisSelect = _ref.onAnalysisSelect, _ref$isLoading = _ref.isLoading, isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading, _ref$isOpen = _ref.isOpen, isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen, onClose = _ref.onClose;
|
|
9720
|
-
var _useState = useState(/* @__PURE__ */ new Date()), _useState2 = _slicedToArray$
|
|
9720
|
+
var _useState = useState(/* @__PURE__ */ new Date()), _useState2 = _slicedToArray$g(_useState, 2), currentMonth = _useState2[0], setCurrentMonth = _useState2[1];
|
|
9721
9721
|
var getLocalDateFromCreatedAt = function getLocalDateFromCreatedAt2(createdAt) {
|
|
9722
9722
|
if (!createdAt) return null;
|
|
9723
9723
|
var ymd = createdAt.slice(0, 10);
|
|
9724
|
-
var _ymd$split = ymd.split("-"), _ymd$split2 = _slicedToArray$
|
|
9724
|
+
var _ymd$split = ymd.split("-"), _ymd$split2 = _slicedToArray$g(_ymd$split, 3), yearStr = _ymd$split2[0], monthStr = _ymd$split2[1], dayStr = _ymd$split2[2];
|
|
9725
9725
|
var year = Number(yearStr);
|
|
9726
9726
|
var month = Number(monthStr);
|
|
9727
9727
|
var day = Number(dayStr);
|
|
@@ -9905,25 +9905,25 @@ var AnalysisCalendarPicker = function AnalysisCalendarPicker2(_ref) {
|
|
|
9905
9905
|
mostRecentAnalysis && /* @__PURE__ */ jsx("div", { className: "yst-mt-6", children: /* @__PURE__ */ jsx(Button, { onClick: handleShowLatestAnalysis, className: "yst-w-full", disabled: isLatestAnalysisInCurrentMonth, children: "Show latest analysis" }) })
|
|
9906
9906
|
] });
|
|
9907
9907
|
};
|
|
9908
|
-
function _slicedToArray$
|
|
9909
|
-
return _arrayWithHoles$
|
|
9908
|
+
function _slicedToArray$f(r, e) {
|
|
9909
|
+
return _arrayWithHoles$f(r) || _iterableToArrayLimit$f(r, e) || _unsupportedIterableToArray$f(r, e) || _nonIterableRest$f();
|
|
9910
9910
|
}
|
|
9911
|
-
function _nonIterableRest$
|
|
9911
|
+
function _nonIterableRest$f() {
|
|
9912
9912
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9913
9913
|
}
|
|
9914
|
-
function _unsupportedIterableToArray$
|
|
9914
|
+
function _unsupportedIterableToArray$f(r, a) {
|
|
9915
9915
|
if (r) {
|
|
9916
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
9916
|
+
if ("string" == typeof r) return _arrayLikeToArray$f(r, a);
|
|
9917
9917
|
var t = {}.toString.call(r).slice(8, -1);
|
|
9918
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
9918
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0;
|
|
9919
9919
|
}
|
|
9920
9920
|
}
|
|
9921
|
-
function _arrayLikeToArray$
|
|
9921
|
+
function _arrayLikeToArray$f(r, a) {
|
|
9922
9922
|
(null == a || a > r.length) && (a = r.length);
|
|
9923
9923
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
9924
9924
|
return n;
|
|
9925
9925
|
}
|
|
9926
|
-
function _iterableToArrayLimit$
|
|
9926
|
+
function _iterableToArrayLimit$f(r, l) {
|
|
9927
9927
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9928
9928
|
if (null != t) {
|
|
9929
9929
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -9944,18 +9944,18 @@ function _iterableToArrayLimit$e(r, l) {
|
|
|
9944
9944
|
return a;
|
|
9945
9945
|
}
|
|
9946
9946
|
}
|
|
9947
|
-
function _arrayWithHoles$
|
|
9947
|
+
function _arrayWithHoles$f(r) {
|
|
9948
9948
|
if (Array.isArray(r)) return r;
|
|
9949
9949
|
}
|
|
9950
9950
|
var AnalysisDateSelect = function AnalysisDateSelect2(_ref) {
|
|
9951
9951
|
var analyses = _ref.analyses, selectedAnalysisId = _ref.selectedAnalysisId, onAnalysisSelect = _ref.onAnalysisSelect, _ref$isLoading = _ref.isLoading, isLoading = _ref$isLoading === void 0 ? false : _ref$isLoading, _ref$disabled = _ref.disabled, disabled = _ref$disabled === void 0 ? false : _ref$disabled, _ref$id = _ref.id, id = _ref$id === void 0 ? "analysis-date-select" : _ref$id;
|
|
9952
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
9953
|
-
var _useState3 = useState("latest"), _useState4 = _slicedToArray$
|
|
9952
|
+
var _useState = useState(false), _useState2 = _slicedToArray$f(_useState, 2), isCalendarOpen = _useState2[0], setIsCalendarOpen = _useState2[1];
|
|
9953
|
+
var _useState3 = useState("latest"), _useState4 = _slicedToArray$f(_useState3, 2), localSelectedId = _useState4[0], setLocalSelectedId = _useState4[1];
|
|
9954
9954
|
var selectRef = useRef(null);
|
|
9955
9955
|
var getLocalDateFromCreatedAt = function getLocalDateFromCreatedAt2(createdAt) {
|
|
9956
9956
|
if (!createdAt) return null;
|
|
9957
9957
|
var ymd = createdAt.slice(0, 10);
|
|
9958
|
-
var _ymd$split = ymd.split("-"), _ymd$split2 = _slicedToArray$
|
|
9958
|
+
var _ymd$split = ymd.split("-"), _ymd$split2 = _slicedToArray$f(_ymd$split, 3), yearStr = _ymd$split2[0], monthStr = _ymd$split2[1], dayStr = _ymd$split2[2];
|
|
9959
9959
|
var year = Number(yearStr);
|
|
9960
9960
|
var month = Number(monthStr);
|
|
9961
9961
|
var day = Number(dayStr);
|
|
@@ -10164,25 +10164,25 @@ function _toPrimitive$6(t, r) {
|
|
|
10164
10164
|
}
|
|
10165
10165
|
return ("string" === r ? String : Number)(t);
|
|
10166
10166
|
}
|
|
10167
|
-
function _slicedToArray$
|
|
10168
|
-
return _arrayWithHoles$
|
|
10167
|
+
function _slicedToArray$e(r, e) {
|
|
10168
|
+
return _arrayWithHoles$e(r) || _iterableToArrayLimit$e(r, e) || _unsupportedIterableToArray$e(r, e) || _nonIterableRest$e();
|
|
10169
10169
|
}
|
|
10170
|
-
function _nonIterableRest$
|
|
10170
|
+
function _nonIterableRest$e() {
|
|
10171
10171
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10172
10172
|
}
|
|
10173
|
-
function _unsupportedIterableToArray$
|
|
10173
|
+
function _unsupportedIterableToArray$e(r, a) {
|
|
10174
10174
|
if (r) {
|
|
10175
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
10175
|
+
if ("string" == typeof r) return _arrayLikeToArray$e(r, a);
|
|
10176
10176
|
var t = {}.toString.call(r).slice(8, -1);
|
|
10177
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
10177
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0;
|
|
10178
10178
|
}
|
|
10179
10179
|
}
|
|
10180
|
-
function _arrayLikeToArray$
|
|
10180
|
+
function _arrayLikeToArray$e(r, a) {
|
|
10181
10181
|
(null == a || a > r.length) && (a = r.length);
|
|
10182
10182
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
10183
10183
|
return n;
|
|
10184
10184
|
}
|
|
10185
|
-
function _iterableToArrayLimit$
|
|
10185
|
+
function _iterableToArrayLimit$e(r, l) {
|
|
10186
10186
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10187
10187
|
if (null != t) {
|
|
10188
10188
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -10201,7 +10201,7 @@ function _iterableToArrayLimit$d(r, l) {
|
|
|
10201
10201
|
return a;
|
|
10202
10202
|
}
|
|
10203
10203
|
}
|
|
10204
|
-
function _arrayWithHoles$
|
|
10204
|
+
function _arrayWithHoles$e(r) {
|
|
10205
10205
|
if (Array.isArray(r)) return r;
|
|
10206
10206
|
}
|
|
10207
10207
|
function _regenerator$6() {
|
|
@@ -10410,11 +10410,11 @@ var HeaderCard = function HeaderCard2(_ref) {
|
|
|
10410
10410
|
}()
|
|
10411
10411
|
}
|
|
10412
10412
|
}), deleteSingleAnalysis3 = _useDeleteSingleAnaly.mutate, isDeletingSingleAnalysis = _useDeleteSingleAnaly.isPending;
|
|
10413
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
10413
|
+
var _useState = useState(false), _useState2 = _slicedToArray$e(_useState, 2), showDeleteModal = _useState2[0], setShowDeleteModal = _useState2[1];
|
|
10414
10414
|
var handleCloseDeleteModal = function handleCloseDeleteModal2() {
|
|
10415
10415
|
setShowDeleteModal(false);
|
|
10416
10416
|
};
|
|
10417
|
-
var _useState3 = useState(false), _useState4 = _slicedToArray$
|
|
10417
|
+
var _useState3 = useState(false), _useState4 = _slicedToArray$e(_useState3, 2), showUpgradeToAddModal = _useState4[0], setShowUpgradeToAddModal = _useState4[1];
|
|
10418
10418
|
var currentBrand = brands === null || brands === void 0 ? void 0 : brands.find(function(brand2) {
|
|
10419
10419
|
return String(brand2.id) === String(brandId);
|
|
10420
10420
|
});
|
|
@@ -10454,7 +10454,7 @@ var HeaderCard = function HeaderCard2(_ref) {
|
|
|
10454
10454
|
var brandName = (brandData === null || brandData === void 0 ? void 0 : brandData.name) || "your brand";
|
|
10455
10455
|
var nextScheduledAnalysis = formatScheduledAnalysisDate(brandData === null || brandData === void 0 ? void 0 : brandData.nextScheduledAnalysis);
|
|
10456
10456
|
var status = analysisData === null || analysisData === void 0 || (_analysisData$analysi2 = analysisData.analysis) === null || _analysisData$analysi2 === void 0 ? void 0 : _analysisData$analysi2.status;
|
|
10457
|
-
var _useState5 = useState(false), _useState6 = _slicedToArray$
|
|
10457
|
+
var _useState5 = useState(false), _useState6 = _slicedToArray$e(_useState5, 2), showLegalAlert = _useState6[0], setShowLegalAlert = _useState6[1];
|
|
10458
10458
|
React__default.useEffect(function() {
|
|
10459
10459
|
var _analysisData$analysi3;
|
|
10460
10460
|
var currentAnalysisId = analysisData === null || analysisData === void 0 || (_analysisData$analysi3 = analysisData.analysis) === null || _analysisData$analysi3 === void 0 ? void 0 : _analysisData$analysi3.id;
|
|
@@ -10937,25 +10937,25 @@ function _typeof$5(o) {
|
|
|
10937
10937
|
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
10938
10938
|
}, _typeof$5(o);
|
|
10939
10939
|
}
|
|
10940
|
-
function _slicedToArray$
|
|
10941
|
-
return _arrayWithHoles$
|
|
10940
|
+
function _slicedToArray$d(r, e) {
|
|
10941
|
+
return _arrayWithHoles$d(r) || _iterableToArrayLimit$d(r, e) || _unsupportedIterableToArray$d(r, e) || _nonIterableRest$d();
|
|
10942
10942
|
}
|
|
10943
|
-
function _nonIterableRest$
|
|
10943
|
+
function _nonIterableRest$d() {
|
|
10944
10944
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
10945
10945
|
}
|
|
10946
|
-
function _unsupportedIterableToArray$
|
|
10946
|
+
function _unsupportedIterableToArray$d(r, a) {
|
|
10947
10947
|
if (r) {
|
|
10948
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
10948
|
+
if ("string" == typeof r) return _arrayLikeToArray$d(r, a);
|
|
10949
10949
|
var t = {}.toString.call(r).slice(8, -1);
|
|
10950
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
10950
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0;
|
|
10951
10951
|
}
|
|
10952
10952
|
}
|
|
10953
|
-
function _arrayLikeToArray$
|
|
10953
|
+
function _arrayLikeToArray$d(r, a) {
|
|
10954
10954
|
(null == a || a > r.length) && (a = r.length);
|
|
10955
10955
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
10956
10956
|
return n;
|
|
10957
10957
|
}
|
|
10958
|
-
function _iterableToArrayLimit$
|
|
10958
|
+
function _iterableToArrayLimit$d(r, l) {
|
|
10959
10959
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
10960
10960
|
if (null != t) {
|
|
10961
10961
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -10974,7 +10974,7 @@ function _iterableToArrayLimit$c(r, l) {
|
|
|
10974
10974
|
return a;
|
|
10975
10975
|
}
|
|
10976
10976
|
}
|
|
10977
|
-
function _arrayWithHoles$
|
|
10977
|
+
function _arrayWithHoles$d(r) {
|
|
10978
10978
|
if (Array.isArray(r)) return r;
|
|
10979
10979
|
}
|
|
10980
10980
|
function ownKeys$4(e, r) {
|
|
@@ -11098,7 +11098,7 @@ function VisibilityScore() {
|
|
|
11098
11098
|
}
|
|
11099
11099
|
}
|
|
11100
11100
|
});
|
|
11101
|
-
var _useState = useState(typeof window !== "undefined" && window.innerWidth < 800 ? "top" : "left"), _useState2 = _slicedToArray$
|
|
11101
|
+
var _useState = useState(typeof window !== "undefined" && window.innerWidth < 800 ? "top" : "left"), _useState2 = _slicedToArray$d(_useState, 2), tooltipPosition = _useState2[0], setTooltipPosition = _useState2[1];
|
|
11102
11102
|
useEffect(function() {
|
|
11103
11103
|
function handleResize() {
|
|
11104
11104
|
setTooltipPosition(window.innerWidth < 800 ? "top" : "left");
|
|
@@ -11207,25 +11207,25 @@ var NoResultsCard = function NoResultsCard2() {
|
|
|
11207
11207
|
] })
|
|
11208
11208
|
] }) });
|
|
11209
11209
|
};
|
|
11210
|
-
function _slicedToArray$
|
|
11211
|
-
return _arrayWithHoles$
|
|
11210
|
+
function _slicedToArray$c(r, e) {
|
|
11211
|
+
return _arrayWithHoles$c(r) || _iterableToArrayLimit$c(r, e) || _unsupportedIterableToArray$c(r, e) || _nonIterableRest$c();
|
|
11212
11212
|
}
|
|
11213
|
-
function _nonIterableRest$
|
|
11213
|
+
function _nonIterableRest$c() {
|
|
11214
11214
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11215
11215
|
}
|
|
11216
|
-
function _unsupportedIterableToArray$
|
|
11216
|
+
function _unsupportedIterableToArray$c(r, a) {
|
|
11217
11217
|
if (r) {
|
|
11218
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
11218
|
+
if ("string" == typeof r) return _arrayLikeToArray$c(r, a);
|
|
11219
11219
|
var t = {}.toString.call(r).slice(8, -1);
|
|
11220
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
11220
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0;
|
|
11221
11221
|
}
|
|
11222
11222
|
}
|
|
11223
|
-
function _arrayLikeToArray$
|
|
11223
|
+
function _arrayLikeToArray$c(r, a) {
|
|
11224
11224
|
(null == a || a > r.length) && (a = r.length);
|
|
11225
11225
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11226
11226
|
return n;
|
|
11227
11227
|
}
|
|
11228
|
-
function _iterableToArrayLimit$
|
|
11228
|
+
function _iterableToArrayLimit$c(r, l) {
|
|
11229
11229
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11230
11230
|
if (null != t) {
|
|
11231
11231
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -11244,7 +11244,7 @@ function _iterableToArrayLimit$b(r, l) {
|
|
|
11244
11244
|
return a;
|
|
11245
11245
|
}
|
|
11246
11246
|
}
|
|
11247
|
-
function _arrayWithHoles$
|
|
11247
|
+
function _arrayWithHoles$c(r) {
|
|
11248
11248
|
if (Array.isArray(r)) return r;
|
|
11249
11249
|
}
|
|
11250
11250
|
var BrandAnalysis = function BrandAnalysis2() {
|
|
@@ -11271,7 +11271,7 @@ var BrandAnalysis = function BrandAnalysis2() {
|
|
|
11271
11271
|
var isDataLoading = isLoadingBrands || isLoadingAnalysis;
|
|
11272
11272
|
var shouldShowInterface = brands && (brands === null || brands === void 0 ? void 0 : brands.length) > 0;
|
|
11273
11273
|
var shouldShowCards = !isDataLoading && analysisData && status === AnalysisStatus.completed;
|
|
11274
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
11274
|
+
var _useState = useState(false), _useState2 = _slicedToArray$c(_useState, 2), isToastVisible = _useState2[0], setIsToastVisible = _useState2[1];
|
|
11275
11275
|
var toastTimerRef = useRef(null);
|
|
11276
11276
|
var prevShouldShowCardsRef = useRef(void 0);
|
|
11277
11277
|
var hasSeenToast = localStorage.getItem("yst_congratulations_toast_seen") === "true";
|
|
@@ -11563,25 +11563,25 @@ function RouterSync(_ref) {
|
|
|
11563
11563
|
}, [currentPath, subpath, stableOnNavigate]);
|
|
11564
11564
|
return null;
|
|
11565
11565
|
}
|
|
11566
|
-
function _slicedToArray$
|
|
11567
|
-
return _arrayWithHoles$
|
|
11566
|
+
function _slicedToArray$b(r, e) {
|
|
11567
|
+
return _arrayWithHoles$b(r) || _iterableToArrayLimit$b(r, e) || _unsupportedIterableToArray$b(r, e) || _nonIterableRest$b();
|
|
11568
11568
|
}
|
|
11569
|
-
function _nonIterableRest$
|
|
11569
|
+
function _nonIterableRest$b() {
|
|
11570
11570
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11571
11571
|
}
|
|
11572
|
-
function _unsupportedIterableToArray$
|
|
11572
|
+
function _unsupportedIterableToArray$b(r, a) {
|
|
11573
11573
|
if (r) {
|
|
11574
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
11574
|
+
if ("string" == typeof r) return _arrayLikeToArray$b(r, a);
|
|
11575
11575
|
var t = {}.toString.call(r).slice(8, -1);
|
|
11576
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
11576
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0;
|
|
11577
11577
|
}
|
|
11578
11578
|
}
|
|
11579
|
-
function _arrayLikeToArray$
|
|
11579
|
+
function _arrayLikeToArray$b(r, a) {
|
|
11580
11580
|
(null == a || a > r.length) && (a = r.length);
|
|
11581
11581
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11582
11582
|
return n;
|
|
11583
11583
|
}
|
|
11584
|
-
function _iterableToArrayLimit$
|
|
11584
|
+
function _iterableToArrayLimit$b(r, l) {
|
|
11585
11585
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11586
11586
|
if (null != t) {
|
|
11587
11587
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -11600,7 +11600,7 @@ function _iterableToArrayLimit$a(r, l) {
|
|
|
11600
11600
|
return a;
|
|
11601
11601
|
}
|
|
11602
11602
|
}
|
|
11603
|
-
function _arrayWithHoles$
|
|
11603
|
+
function _arrayWithHoles$b(r) {
|
|
11604
11604
|
if (Array.isArray(r)) return r;
|
|
11605
11605
|
}
|
|
11606
11606
|
var AIInsightsClient = function AIInsightsClient2(_ref) {
|
|
@@ -11613,7 +11613,7 @@ var AIInsightsClient = function AIInsightsClient2(_ref) {
|
|
|
11613
11613
|
var normalizedRoute = route.startsWith("/") ? route : "/".concat(route);
|
|
11614
11614
|
return normalizedBase + normalizedRoute || "/";
|
|
11615
11615
|
};
|
|
11616
|
-
var _useState = useState(Boolean(token || apiUrl)), _useState2 = _slicedToArray$
|
|
11616
|
+
var _useState = useState(Boolean(token || apiUrl)), _useState2 = _slicedToArray$b(_useState, 2), configurationStillApplying = _useState2[0], setConfigurationStillApplying = _useState2[1];
|
|
11617
11617
|
var hostAppProps = {
|
|
11618
11618
|
onAddSubscription,
|
|
11619
11619
|
onLogout,
|
|
@@ -11755,25 +11755,25 @@ function _asyncToGenerator$5(n) {
|
|
|
11755
11755
|
});
|
|
11756
11756
|
};
|
|
11757
11757
|
}
|
|
11758
|
-
function _slicedToArray$
|
|
11759
|
-
return _arrayWithHoles$
|
|
11758
|
+
function _slicedToArray$a(r, e) {
|
|
11759
|
+
return _arrayWithHoles$a(r) || _iterableToArrayLimit$a(r, e) || _unsupportedIterableToArray$a(r, e) || _nonIterableRest$a();
|
|
11760
11760
|
}
|
|
11761
|
-
function _nonIterableRest$
|
|
11761
|
+
function _nonIterableRest$a() {
|
|
11762
11762
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
11763
11763
|
}
|
|
11764
|
-
function _unsupportedIterableToArray$
|
|
11764
|
+
function _unsupportedIterableToArray$a(r, a) {
|
|
11765
11765
|
if (r) {
|
|
11766
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
11766
|
+
if ("string" == typeof r) return _arrayLikeToArray$a(r, a);
|
|
11767
11767
|
var t = {}.toString.call(r).slice(8, -1);
|
|
11768
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
11768
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0;
|
|
11769
11769
|
}
|
|
11770
11770
|
}
|
|
11771
|
-
function _arrayLikeToArray$
|
|
11771
|
+
function _arrayLikeToArray$a(r, a) {
|
|
11772
11772
|
(null == a || a > r.length) && (a = r.length);
|
|
11773
11773
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11774
11774
|
return n;
|
|
11775
11775
|
}
|
|
11776
|
-
function _iterableToArrayLimit$
|
|
11776
|
+
function _iterableToArrayLimit$a(r, l) {
|
|
11777
11777
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
11778
11778
|
if (null != t) {
|
|
11779
11779
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -11792,15 +11792,15 @@ function _iterableToArrayLimit$9(r, l) {
|
|
|
11792
11792
|
return a;
|
|
11793
11793
|
}
|
|
11794
11794
|
}
|
|
11795
|
-
function _arrayWithHoles$
|
|
11795
|
+
function _arrayWithHoles$a(r) {
|
|
11796
11796
|
if (Array.isArray(r)) return r;
|
|
11797
11797
|
}
|
|
11798
11798
|
var EditGroupModal = function EditGroupModal2(_ref) {
|
|
11799
11799
|
var isOpen = _ref.isOpen, onClose = _ref.onClose, groupToEdit = _ref.groupToEdit, allBrands = _ref.allBrands;
|
|
11800
11800
|
var _useBrandAnalysisData = useBrandAnalysisData(), brandId = _useBrandAnalysisData.brandId, analysisId = _useBrandAnalysisData.analysisId;
|
|
11801
|
-
var _useState = useState(""), _useState2 = _slicedToArray$
|
|
11802
|
-
var _useState3 = useState([]), _useState4 = _slicedToArray$
|
|
11803
|
-
var _useState5 = useState(false), _useState6 = _slicedToArray$
|
|
11801
|
+
var _useState = useState(""), _useState2 = _slicedToArray$a(_useState, 2), groupName = _useState2[0], setGroupName = _useState2[1];
|
|
11802
|
+
var _useState3 = useState([]), _useState4 = _slicedToArray$a(_useState3, 2), groupedBrandIds = _useState4[0], setGroupedBrandIds = _useState4[1];
|
|
11803
|
+
var _useState5 = useState(false), _useState6 = _slicedToArray$a(_useState5, 2), isUngroupConfirmOpen = _useState6[0], setIsUngroupConfirmOpen = _useState6[1];
|
|
11804
11804
|
var queryClient2 = useQueryClient();
|
|
11805
11805
|
useEffect(function() {
|
|
11806
11806
|
if (isOpen && groupToEdit && groupToEdit.type === "group") {
|
|
@@ -12098,25 +12098,25 @@ function _asyncToGenerator$4(n) {
|
|
|
12098
12098
|
});
|
|
12099
12099
|
};
|
|
12100
12100
|
}
|
|
12101
|
-
function _slicedToArray$
|
|
12102
|
-
return _arrayWithHoles$
|
|
12101
|
+
function _slicedToArray$9(r, e) {
|
|
12102
|
+
return _arrayWithHoles$9(r) || _iterableToArrayLimit$9(r, e) || _unsupportedIterableToArray$9(r, e) || _nonIterableRest$9();
|
|
12103
12103
|
}
|
|
12104
|
-
function _nonIterableRest$
|
|
12104
|
+
function _nonIterableRest$9() {
|
|
12105
12105
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12106
12106
|
}
|
|
12107
|
-
function _unsupportedIterableToArray$
|
|
12107
|
+
function _unsupportedIterableToArray$9(r, a) {
|
|
12108
12108
|
if (r) {
|
|
12109
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
12109
|
+
if ("string" == typeof r) return _arrayLikeToArray$9(r, a);
|
|
12110
12110
|
var t = {}.toString.call(r).slice(8, -1);
|
|
12111
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
12111
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0;
|
|
12112
12112
|
}
|
|
12113
12113
|
}
|
|
12114
|
-
function _arrayLikeToArray$
|
|
12114
|
+
function _arrayLikeToArray$9(r, a) {
|
|
12115
12115
|
(null == a || a > r.length) && (a = r.length);
|
|
12116
12116
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12117
12117
|
return n;
|
|
12118
12118
|
}
|
|
12119
|
-
function _iterableToArrayLimit$
|
|
12119
|
+
function _iterableToArrayLimit$9(r, l) {
|
|
12120
12120
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12121
12121
|
if (null != t) {
|
|
12122
12122
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -12135,15 +12135,15 @@ function _iterableToArrayLimit$8(r, l) {
|
|
|
12135
12135
|
return a;
|
|
12136
12136
|
}
|
|
12137
12137
|
}
|
|
12138
|
-
function _arrayWithHoles$
|
|
12138
|
+
function _arrayWithHoles$9(r) {
|
|
12139
12139
|
if (Array.isArray(r)) return r;
|
|
12140
12140
|
}
|
|
12141
12141
|
var GroupBrandsModal = function GroupBrandsModal2(_ref) {
|
|
12142
12142
|
var isOpen = _ref.isOpen, onClose = _ref.onClose, brandId = _ref.brandId, brandsToGroup = _ref.brandsToGroup, onGroupCreated = _ref.onGroupCreated;
|
|
12143
12143
|
var queryClient2 = useQueryClient();
|
|
12144
12144
|
var _useBrandAnalysisData = useBrandAnalysisData(), analysisId = _useBrandAnalysisData.analysisId;
|
|
12145
|
-
var _useState = useState(""), _useState2 = _slicedToArray$
|
|
12146
|
-
var _useState3 = useState([]), _useState4 = _slicedToArray$
|
|
12145
|
+
var _useState = useState(""), _useState2 = _slicedToArray$9(_useState, 2), groupName = _useState2[0], setGroupName = _useState2[1];
|
|
12146
|
+
var _useState3 = useState([]), _useState4 = _slicedToArray$9(_useState3, 2), groupedBrands = _useState4[0], setGroupedBrands = _useState4[1];
|
|
12147
12147
|
useEffect(function() {
|
|
12148
12148
|
if (isOpen && brandsToGroup.length > 0) {
|
|
12149
12149
|
var _brandsToGroup$;
|
|
@@ -12323,7 +12323,7 @@ function _toPrimitive$3(t, r) {
|
|
|
12323
12323
|
return ("string" === r ? String : Number)(t);
|
|
12324
12324
|
}
|
|
12325
12325
|
function _toConsumableArray$1(r) {
|
|
12326
|
-
return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$
|
|
12326
|
+
return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$8(r) || _nonIterableSpread$1();
|
|
12327
12327
|
}
|
|
12328
12328
|
function _nonIterableSpread$1() {
|
|
12329
12329
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -12332,27 +12332,27 @@ function _iterableToArray$1(r) {
|
|
|
12332
12332
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
12333
12333
|
}
|
|
12334
12334
|
function _arrayWithoutHoles$1(r) {
|
|
12335
|
-
if (Array.isArray(r)) return _arrayLikeToArray$
|
|
12335
|
+
if (Array.isArray(r)) return _arrayLikeToArray$8(r);
|
|
12336
12336
|
}
|
|
12337
|
-
function _slicedToArray$
|
|
12338
|
-
return _arrayWithHoles$
|
|
12337
|
+
function _slicedToArray$8(r, e) {
|
|
12338
|
+
return _arrayWithHoles$8(r) || _iterableToArrayLimit$8(r, e) || _unsupportedIterableToArray$8(r, e) || _nonIterableRest$8();
|
|
12339
12339
|
}
|
|
12340
|
-
function _nonIterableRest$
|
|
12340
|
+
function _nonIterableRest$8() {
|
|
12341
12341
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12342
12342
|
}
|
|
12343
|
-
function _unsupportedIterableToArray$
|
|
12343
|
+
function _unsupportedIterableToArray$8(r, a) {
|
|
12344
12344
|
if (r) {
|
|
12345
|
-
if ("string" == typeof r) return _arrayLikeToArray$
|
|
12345
|
+
if ("string" == typeof r) return _arrayLikeToArray$8(r, a);
|
|
12346
12346
|
var t = {}.toString.call(r).slice(8, -1);
|
|
12347
|
-
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$
|
|
12347
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0;
|
|
12348
12348
|
}
|
|
12349
12349
|
}
|
|
12350
|
-
function _arrayLikeToArray$
|
|
12350
|
+
function _arrayLikeToArray$8(r, a) {
|
|
12351
12351
|
(null == a || a > r.length) && (a = r.length);
|
|
12352
12352
|
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12353
12353
|
return n;
|
|
12354
12354
|
}
|
|
12355
|
-
function _iterableToArrayLimit$
|
|
12355
|
+
function _iterableToArrayLimit$8(r, l) {
|
|
12356
12356
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12357
12357
|
if (null != t) {
|
|
12358
12358
|
var e, n, i, u, a = [], f = true, o = false;
|
|
@@ -12373,20 +12373,20 @@ function _iterableToArrayLimit$7(r, l) {
|
|
|
12373
12373
|
return a;
|
|
12374
12374
|
}
|
|
12375
12375
|
}
|
|
12376
|
-
function _arrayWithHoles$
|
|
12376
|
+
function _arrayWithHoles$8(r) {
|
|
12377
12377
|
if (Array.isArray(r)) return r;
|
|
12378
12378
|
}
|
|
12379
12379
|
var BrandList = function BrandList2() {
|
|
12380
12380
|
var _associatedBrandsData;
|
|
12381
12381
|
var navigate = useNavigate();
|
|
12382
|
-
var _useState = useState(false), _useState2 = _slicedToArray$
|
|
12383
|
-
var _useState3 = useState({}), _useState4 = _slicedToArray$
|
|
12384
|
-
var _useState5 = useState(""), _useState6 = _slicedToArray$
|
|
12385
|
-
var _useState7 = useState(1), _useState8 = _slicedToArray$
|
|
12386
|
-
var _useState9 = useState({}), _useState0 = _slicedToArray$
|
|
12387
|
-
var _useState1 = useState(false), _useState10 = _slicedToArray$
|
|
12388
|
-
var _useState11 = useState(false), _useState12 = _slicedToArray$
|
|
12389
|
-
var _useState13 = useState(null), _useState14 = _slicedToArray$
|
|
12382
|
+
var _useState = useState(false), _useState2 = _slicedToArray$8(_useState, 2), hasUserMadeChanges = _useState2[0], setHasUserMadeChanges = _useState2[1];
|
|
12383
|
+
var _useState3 = useState({}), _useState4 = _slicedToArray$8(_useState3, 2), isBrandIncludedMap = _useState4[0], setBrandIncludeMap = _useState4[1];
|
|
12384
|
+
var _useState5 = useState(""), _useState6 = _slicedToArray$8(_useState5, 2), searchTerm = _useState6[0], setSearchTerm = _useState6[1];
|
|
12385
|
+
var _useState7 = useState(1), _useState8 = _slicedToArray$8(_useState7, 2), currentPage = _useState8[0], setCurrentPage = _useState8[1];
|
|
12386
|
+
var _useState9 = useState({}), _useState0 = _slicedToArray$8(_useState9, 2), checkedBrands = _useState0[0], setCheckedBrands = _useState0[1];
|
|
12387
|
+
var _useState1 = useState(false), _useState10 = _slicedToArray$8(_useState1, 2), showGroupModal = _useState10[0], setShowGroupModal = _useState10[1];
|
|
12388
|
+
var _useState11 = useState(false), _useState12 = _slicedToArray$8(_useState11, 2), showEditModal = _useState12[0], setShowEditModal = _useState12[1];
|
|
12389
|
+
var _useState13 = useState(null), _useState14 = _slicedToArray$8(_useState13, 2), groupToEdit = _useState14[0], setGroupToEdit = _useState14[1];
|
|
12390
12390
|
var _useBrandAnalysisData = useBrandAnalysisData(), brandId = _useBrandAnalysisData.brandId;
|
|
12391
12391
|
function getBrandId(brand) {
|
|
12392
12392
|
return String(brand.id);
|
|
@@ -12420,10 +12420,10 @@ var BrandList = function BrandList2() {
|
|
|
12420
12420
|
}
|
|
12421
12421
|
};
|
|
12422
12422
|
var selectedBrands = Object.entries(checkedBrands).filter(function(_ref) {
|
|
12423
|
-
var _ref2 = _slicedToArray$
|
|
12423
|
+
var _ref2 = _slicedToArray$8(_ref, 2), isChecked = _ref2[1];
|
|
12424
12424
|
return isChecked;
|
|
12425
12425
|
}).map(function(_ref3) {
|
|
12426
|
-
var _ref4 = _slicedToArray$
|
|
12426
|
+
var _ref4 = _slicedToArray$8(_ref3, 1), id = _ref4[0];
|
|
12427
12427
|
return id;
|
|
12428
12428
|
});
|
|
12429
12429
|
var handleGroupBrands = function handleGroupBrands2() {
|
|
@@ -12636,6 +12636,136 @@ const BrandList$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
12636
12636
|
__proto__: null,
|
|
12637
12637
|
default: BrandList
|
|
12638
12638
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
12639
|
+
function _slicedToArray$7(r, e) {
|
|
12640
|
+
return _arrayWithHoles$7(r) || _iterableToArrayLimit$7(r, e) || _unsupportedIterableToArray$7(r, e) || _nonIterableRest$7();
|
|
12641
|
+
}
|
|
12642
|
+
function _nonIterableRest$7() {
|
|
12643
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12644
|
+
}
|
|
12645
|
+
function _unsupportedIterableToArray$7(r, a) {
|
|
12646
|
+
if (r) {
|
|
12647
|
+
if ("string" == typeof r) return _arrayLikeToArray$7(r, a);
|
|
12648
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
12649
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$7(r, a) : void 0;
|
|
12650
|
+
}
|
|
12651
|
+
}
|
|
12652
|
+
function _arrayLikeToArray$7(r, a) {
|
|
12653
|
+
(null == a || a > r.length) && (a = r.length);
|
|
12654
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
12655
|
+
return n;
|
|
12656
|
+
}
|
|
12657
|
+
function _iterableToArrayLimit$7(r, l) {
|
|
12658
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
12659
|
+
if (null != t) {
|
|
12660
|
+
var e, n, i, u, a = [], f = true, o = false;
|
|
12661
|
+
try {
|
|
12662
|
+
if (i = (t = t.call(r)).next, 0 === l) ;
|
|
12663
|
+
else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
12664
|
+
} catch (r2) {
|
|
12665
|
+
o = true, n = r2;
|
|
12666
|
+
} finally {
|
|
12667
|
+
try {
|
|
12668
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
12669
|
+
} finally {
|
|
12670
|
+
if (o) throw n;
|
|
12671
|
+
}
|
|
12672
|
+
}
|
|
12673
|
+
return a;
|
|
12674
|
+
}
|
|
12675
|
+
}
|
|
12676
|
+
function _arrayWithHoles$7(r) {
|
|
12677
|
+
if (Array.isArray(r)) return r;
|
|
12678
|
+
}
|
|
12679
|
+
var useNavigationBlocker = function useNavigationBlocker2() {
|
|
12680
|
+
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref$shouldBlock = _ref.shouldBlock, shouldBlock = _ref$shouldBlock === void 0 ? true : _ref$shouldBlock, onConfirmLeave = _ref.onConfirmLeave, onCancelLeave = _ref.onCancelLeave;
|
|
12681
|
+
var navigate = useNavigate();
|
|
12682
|
+
var _useState = useState(false), _useState2 = _slicedToArray$7(_useState, 2), showModal = _useState2[0], setShowModal = _useState2[1];
|
|
12683
|
+
var _useState3 = useState(null), _useState4 = _slicedToArray$7(_useState3, 2), pendingNavigation = _useState4[0], setPendingNavigation = _useState4[1];
|
|
12684
|
+
useEffect(function() {
|
|
12685
|
+
if (!shouldBlock) return;
|
|
12686
|
+
var handleClick = function handleClick2(e) {
|
|
12687
|
+
var target = e.target;
|
|
12688
|
+
var anchor = target.closest("a");
|
|
12689
|
+
if (!anchor) return;
|
|
12690
|
+
var href = anchor.getAttribute("href");
|
|
12691
|
+
if (href && href.startsWith("/") && !href.startsWith("//")) {
|
|
12692
|
+
var currentPath = window.location.pathname;
|
|
12693
|
+
if (href !== currentPath) {
|
|
12694
|
+
e.preventDefault();
|
|
12695
|
+
e.stopPropagation();
|
|
12696
|
+
setPendingNavigation(href);
|
|
12697
|
+
setShowModal(true);
|
|
12698
|
+
}
|
|
12699
|
+
}
|
|
12700
|
+
};
|
|
12701
|
+
document.addEventListener("click", handleClick, true);
|
|
12702
|
+
return function() {
|
|
12703
|
+
return document.removeEventListener("click", handleClick, true);
|
|
12704
|
+
};
|
|
12705
|
+
}, [shouldBlock]);
|
|
12706
|
+
useEffect(function() {
|
|
12707
|
+
if (!shouldBlock) return;
|
|
12708
|
+
window.history.pushState(null, "", window.location.href);
|
|
12709
|
+
var handlePopState = function handlePopState2() {
|
|
12710
|
+
setPendingNavigation(-1);
|
|
12711
|
+
setShowModal(true);
|
|
12712
|
+
window.history.pushState(null, "", window.location.href);
|
|
12713
|
+
};
|
|
12714
|
+
window.addEventListener("popstate", handlePopState);
|
|
12715
|
+
return function() {
|
|
12716
|
+
return window.removeEventListener("popstate", handlePopState);
|
|
12717
|
+
};
|
|
12718
|
+
}, [shouldBlock]);
|
|
12719
|
+
useEffect(function() {
|
|
12720
|
+
if (!shouldBlock) return;
|
|
12721
|
+
var handleBeforeUnload = function handleBeforeUnload2(e) {
|
|
12722
|
+
e.preventDefault();
|
|
12723
|
+
e.returnValue = "";
|
|
12724
|
+
};
|
|
12725
|
+
window.addEventListener("beforeunload", handleBeforeUnload);
|
|
12726
|
+
return function() {
|
|
12727
|
+
return window.removeEventListener("beforeunload", handleBeforeUnload);
|
|
12728
|
+
};
|
|
12729
|
+
}, [shouldBlock]);
|
|
12730
|
+
var confirmLeave = useCallback(function() {
|
|
12731
|
+
if (pendingNavigation !== null) {
|
|
12732
|
+
setShowModal(false);
|
|
12733
|
+
onConfirmLeave === null || onConfirmLeave === void 0 || onConfirmLeave();
|
|
12734
|
+
setTimeout(function() {
|
|
12735
|
+
if (typeof pendingNavigation === "number") {
|
|
12736
|
+
navigate(pendingNavigation);
|
|
12737
|
+
} else {
|
|
12738
|
+
navigate(pendingNavigation);
|
|
12739
|
+
}
|
|
12740
|
+
setPendingNavigation(null);
|
|
12741
|
+
}, 0);
|
|
12742
|
+
}
|
|
12743
|
+
}, [pendingNavigation, navigate, onConfirmLeave]);
|
|
12744
|
+
var cancelLeave = useCallback(function() {
|
|
12745
|
+
setShowModal(false);
|
|
12746
|
+
setPendingNavigation(null);
|
|
12747
|
+
onCancelLeave === null || onCancelLeave === void 0 || onCancelLeave();
|
|
12748
|
+
}, [onCancelLeave]);
|
|
12749
|
+
var navigateAway = useCallback(function(destination) {
|
|
12750
|
+
if (shouldBlock) {
|
|
12751
|
+
setPendingNavigation(destination);
|
|
12752
|
+
setShowModal(true);
|
|
12753
|
+
} else {
|
|
12754
|
+
if (typeof destination === "number") {
|
|
12755
|
+
navigate(destination);
|
|
12756
|
+
} else {
|
|
12757
|
+
navigate(destination);
|
|
12758
|
+
}
|
|
12759
|
+
}
|
|
12760
|
+
}, [shouldBlock, navigate]);
|
|
12761
|
+
return {
|
|
12762
|
+
showModal,
|
|
12763
|
+
pendingNavigation,
|
|
12764
|
+
confirmLeave,
|
|
12765
|
+
cancelLeave,
|
|
12766
|
+
navigateAway
|
|
12767
|
+
};
|
|
12768
|
+
};
|
|
12639
12769
|
function _slicedToArray$6(r, e) {
|
|
12640
12770
|
return _arrayWithHoles$6(r) || _iterableToArrayLimit$6(r, e) || _unsupportedIterableToArray$6(r, e) || _nonIterableRest$6();
|
|
12641
12771
|
}
|
|
@@ -15156,6 +15286,17 @@ var initialQueries = Array.from({
|
|
|
15156
15286
|
isRegenerating: true
|
|
15157
15287
|
};
|
|
15158
15288
|
});
|
|
15289
|
+
var createEmptyQueries = function createEmptyQueries2() {
|
|
15290
|
+
return Array.from({
|
|
15291
|
+
length: INITIAL_QUERY_COUNT
|
|
15292
|
+
}, function(_, index2) {
|
|
15293
|
+
return {
|
|
15294
|
+
id: "query-".concat(index2),
|
|
15295
|
+
text: "",
|
|
15296
|
+
isRegenerating: false
|
|
15297
|
+
};
|
|
15298
|
+
});
|
|
15299
|
+
};
|
|
15159
15300
|
var QuerySelection = function QuerySelection2() {
|
|
15160
15301
|
var _brandData$data2, _brandData$data4, _generatedQueriesErro;
|
|
15161
15302
|
var _useParams = useParams(), brandId = _useParams.brandId;
|
|
@@ -15171,6 +15312,10 @@ var QuerySelection = function QuerySelection2() {
|
|
|
15171
15312
|
var _useState9 = useState(false), _useState0 = _slicedToArray$1(_useState9, 2), isAwaitingRegeneration = _useState0[0], setIsAwaitingRegeneration = _useState0[1];
|
|
15172
15313
|
var _useState1 = useState(null), _useState10 = _slicedToArray$1(_useState1, 2), errorMessage = _useState10[0], setErrorMessage = _useState10[1];
|
|
15173
15314
|
var _useState11 = useState(false), _useState12 = _slicedToArray$1(_useState11, 2), showBrandNameWarning = _useState12[0], setShowBrandNameWarning = _useState12[1];
|
|
15315
|
+
var _useNavigationBlocker = useNavigationBlocker({
|
|
15316
|
+
shouldBlock: true
|
|
15317
|
+
// Always block navigation on this page
|
|
15318
|
+
}), showLeavePageModal = _useNavigationBlocker.showModal, confirmLeave = _useNavigationBlocker.confirmLeave, cancelLeave = _useNavigationBlocker.cancelLeave;
|
|
15174
15319
|
var _useState13 = useState(false), _useState14 = _slicedToArray$1(_useState13, 2), isRateLimitAcknowledged = _useState14[0], setIsRateLimitAcknowledged = _useState14[1];
|
|
15175
15320
|
var _useState15 = useState(null), _useState16 = _slicedToArray$1(_useState15, 2), moderationError = _useState16[0], setModerationError = _useState16[1];
|
|
15176
15321
|
var _useGetQuerySuggestio = useGetQuerySuggestions(brandId || "", {
|
|
@@ -15314,24 +15459,18 @@ var QuerySelection = function QuerySelection2() {
|
|
|
15314
15459
|
var _generatedQueries$dat;
|
|
15315
15460
|
if (generatedQueries !== null && generatedQueries !== void 0 && (_generatedQueries$dat = generatedQueries.data) !== null && _generatedQueries$dat !== void 0 && _generatedQueries$dat.queries && Array.isArray(generatedQueries.data.queries)) {
|
|
15316
15461
|
var suggestions = generatedQueries.data.queries.slice(0, INITIAL_QUERY_COUNT);
|
|
15317
|
-
|
|
15462
|
+
var newQueries = suggestions.map(function(queryText, index2) {
|
|
15318
15463
|
return {
|
|
15319
15464
|
id: "query-".concat(index2),
|
|
15320
15465
|
text: queryText,
|
|
15321
15466
|
isRegenerating: false
|
|
15322
15467
|
};
|
|
15323
|
-
})
|
|
15468
|
+
});
|
|
15469
|
+
setQueries(newQueries);
|
|
15324
15470
|
setAllQueriesPool(generatedQueries.data.queries.slice(INITIAL_QUERY_COUNT));
|
|
15325
15471
|
} else if (isErrorGeneratingQueries) {
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
}, function(_, index2) {
|
|
15329
|
-
return {
|
|
15330
|
-
id: "query-".concat(index2),
|
|
15331
|
-
text: "",
|
|
15332
|
-
isRegenerating: false
|
|
15333
|
-
};
|
|
15334
|
-
}));
|
|
15472
|
+
var emptyQueries = createEmptyQueries();
|
|
15473
|
+
setQueries(emptyQueries);
|
|
15335
15474
|
setAllQueriesPool([]);
|
|
15336
15475
|
}
|
|
15337
15476
|
}, [generatedQueries, isErrorGeneratingQueries]);
|
|
@@ -15562,6 +15701,17 @@ var QuerySelection = function QuerySelection2() {
|
|
|
15562
15701
|
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: handleModifyQueries, children: "Review and edit queries" })
|
|
15563
15702
|
] })
|
|
15564
15703
|
] })
|
|
15704
|
+
] }) }) }),
|
|
15705
|
+
/* @__PURE__ */ jsx(Modal, { isOpen: showLeavePageModal, onClose: cancelLeave, position: "center", as: "div", children: /* @__PURE__ */ jsx(Modal.Panel, { children: /* @__PURE__ */ jsxs("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
|
|
15706
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx("span", { className: "yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100", children: /* @__PURE__ */ jsx(ForwardRef$j, { className: "yst-h-6 yst-w-6 yst-text-amber-600" }) }) }),
|
|
15707
|
+
/* @__PURE__ */ jsxs("div", { className: "yst-flex-1", children: [
|
|
15708
|
+
/* @__PURE__ */ jsx(Modal.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ jsx(Modal.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Leave this page?" }) }),
|
|
15709
|
+
/* @__PURE__ */ jsx(Modal.Container.Content, { className: "yst-mb-6", children: /* @__PURE__ */ jsx("p", { className: "yst-text-sm yst-text-slate-600", children: "You have unsaved changes. Finish setting up your brand to save your queries. Leaving this page will discard your queries." }) }),
|
|
15710
|
+
/* @__PURE__ */ jsxs(Modal.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
|
|
15711
|
+
/* @__PURE__ */ jsx(Button, { onClick: cancelLeave, variant: "secondary", children: "No, stay on page" }),
|
|
15712
|
+
/* @__PURE__ */ jsx(Button, { variant: "primary", onClick: confirmLeave, children: "Yes, discard queries" })
|
|
15713
|
+
] })
|
|
15714
|
+
] })
|
|
15565
15715
|
] }) }) })
|
|
15566
15716
|
] });
|
|
15567
15717
|
};
|