1"use strict";(self.webpackChunkmarket_carpenter=self.webpackChunkmarket_carpenter||[]).push([[2536,425,2806],{2536:function(e,t,n){n.r(t),n.d(t,{default:function(){return b}});var r=n(46125),a=n(99148),o=n(90425),i=n(96540),l=n(1315),c=n(19158),u=n(86581);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t,n,r,a,o,i){try{var l=e[o](i),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(r,a)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){p(e,t,n[t])}))}return e}function y(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}function b(){var e=(0,l.Ay)("/miscdata?filters=Id=".concat(c.MiscData.Token_Location)).data,t=(0,l.Ay)("/content?filters=CActive=true,.CDeleted=false").data,n=(0,l.Ay)("/contentblock").data,s=(0,l.Ay)("/tagToContent").data,p=(0,l.Ay)("/contentType").data,b=C((0,i.useState)([{}]),2),T=b[0],v=b[1],h=C((0,i.useState)(),2),g=h[0],E=h[1];(0,i.useEffect)((function(){var t,n;e&&(null===(t=e[0])||void 0===t?void 0:t.Data)&&v(JSON.parse(null===(n=e[0])||void 0===n?void 0:n.Data))}),[e]),(0,i.useEffect)((function(){T&&T.Date&&E("<small>As of - ".concat((0,u.GP)(new Date(T.Date),"P")," - ").concat((0,u.GP)(new Date(T.Date),"p"),"</small>"))}),[T]);var N,P,w=function(e){return p.filter((function(t){return t.CtId==e}))[0].CtName},I=function(e){return e.split(" ")[0]},O=function(e){return s.filter((function(t){return t.CId==e})).length>0?s.filter((function(t){return t.CId==e}))[0].TtcPageUrl:null},k=(N=function(){var o,i,l;return m(this,(function(s){switch(s.label){case 0:return[4,r.XG.Ask({title:"Are you sure?",text:"This will delete the previous results.",confirmButton:"Yes, continue",confirmButtonColor:"danger"})];case 1:return s.sent()?(o=[],i=t.filter((function(e){return e.CtId==c.CONTENT_TYPES.Web_Page||e.CtId==c.CONTENT_TYPES.News_Detail||e.CtId==c.CONTENT_TYPES.Event_Detail||e.CtId==c.CONTENT_TYPES.Blog_Detail||e.CtId==c.CONTENT_TYPES.Shared_Content||e.CtId==c.CONTENT_TYPES.Custom_Page||e.CtId==c.CONTENT_TYPES.Project_Detail||e.CtId==c.CONTENT_TYPES.Navigation||e.CtId==c.CONTENT_TYPES.Footer_Template||e.CtId==c.CONTENT_TYPES.Header_Template})),$(i).each((function(e){try{if(i[e].CIntroText&&(i[e].CIntroText.includes("[")&&i[e].CIntroText.includes("]")||i[e].CIntroText.includes("{{")&&i[e].CIntroText.includes("}}"))){var t=i[e].CIntroText.includes("[")?i[e].CIntroText.split("[").pop().split("]")[0]:i[e].CIntroText.split("{{").pop().split("}}")[0];o.push({PageId:i[e].CId,Token:I(t),Type:w(i[e].CtId),Page:i[e].CTitle,URL:O(i[e].CId)})}if(i[e].CtId==c.CONTENT_TYPES.Navigation&&i[e].CMetaData.Navigation[0].Copy&&i[e].CMetaData.Navigation[0].Copy.includes("[")&&i[e].CMetaData.Navigation[0].Copy.includes("]")){var r=i[e].CMetaData.Navigation[0].Copy.split("[").pop().split("]")[0];o.push({PageId:i[e].CId,Token:I(r),Type:w(i[e].CtId),Page:i[e].CTitle,URL:O(i[e].CId)})}var a=n.filter((function(t){return t.CId==i[e].CId}));
1$(a).each((function(t){if(a[t].CbCopy&&(a[t].CbCopy.includes("[")&&a[t].CbCopy.includes("]")||a[t].CbCopy.includes("{{")&&a[t].CbCopy.includes("}}"))){var n=a[t].CbCopy.includes("[")?a[t].CbCopy.split("[").pop().split("]")[0]:a[t].CbCopy.split("{{").pop().split("}}")[0];o.push({PageId:i[e].CId,Token:I(n),Type:w(i[e].CtId),Page:i[e].CTitle,URL:O(i[e].CId)})}}))}catch(e){return""}})),l={Date:new Date,Tokens:o},[4,a.M9.MiscData.Update(c.MiscData.Token_Location,y(d({},e[0]),{Data:JSON.stringify(l)}))]):[3,3];case 2:s.sent(),E("<small>As of - ".concat((0,u.GP)(new Date,"P")," - ").concat((0,u.GP)(new Date,"p"),"</small>")),s.label=3;case 3:return[2]}}))},P=function(){var e=this,t=arguments;return new Promise((function(n,r){var a=N.apply(e,t);function o(e){f(a,n,r,o,i,"next",e)}function i(e){f(a,n,r,o,i,"throw",e)}o(void 0)}))},function(){return P.apply(this,arguments)});return i.createElement("div",null,i.createElement(o.A,{title:"Token Locations: ".concat(g),backToDashboard:!0,buttons:[i.createElement(r.$n,{key:1,primary:!0,icon:"fas fa-radar",onClick:function(){return k()}},"Scan Solution")]}),i.createElement("div",{className:"pb-10"},i.createElement(r.bQ,{pagination:{pageSize:100},search:["Type","Token","Page","URL"],data:(null==T?void 0:T.Tokens)||[],columns:[{field:"Type",label:"Type",width:"150px"},{field:"Token",label:"Token",width:"150px"},{field:"Page",label:"Page",width:"250px"},{field:"URL",label:"URL",width:"250px"}],onView:function(e){return window.open(e.URL)}})))}},90425:function(e,t,n){var r=n(69844),a=n(96540);t.A=function(e){var t=e.content,n=e.title,o=void 0===n?"":n,i=e.icon,l=e.className,c=e.classNameContent,u=e.desc,s=e.stacked,f=e.buttons,p=void 0===f?[]:f;e.backToDashboard;return a.createElement(a.Fragment,null,a.createElement("div",{className:"mc-maintenance-header flex items-center justify-between border-b pb-2 ".concat(l||""," ").concat(s?"":"mb-3")},(o||u)&&a.createElement("div",{className:"flex-shrink-0"},o&&a.createElement("h1",{className:"text-mojo-orange"},i?i.startsWith("<")?a.createElement("span",{className:"me-2",dangerouslySetInnerHTML:{__html:i}}):a.createElement("i",{className:"".concat(i," me-2")}):null,"string"==typeof o?a.createElement("span",{dangerouslySetInnerHTML:{__html:o}}):o),u&&a.createElement("div",{className:"mb-2 text-gray-700"},u)),t&&a.createElement("div",{className:(0,r.A)("me-4 flex w-full",c||"")},t)||null,a.createElement("div",{className:(0,r.A)("flex flex-shrink-0 items-center")},a.createElement("div",{className:"ms-auto flex items-center space-x-3"},null==p?void 0:p.map((function(e,t){return a.createElement("span",{key:t},e)}))))))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.