1"use strict";(self.webpackChunknestseekers=self.webpackChunknestseekers||[]).push([["react_components_pages_SyncAdsForListing_tsx"],{"./react/components/pages/SyncAdsForListing.tsx"(e,t,n){n.r(t),n.d(t,{default:()=>B});var a=n("./node_modules/react/index.js"),r=n("./node_modules/react-router/esm/react-router.js"),l=n("./node_modules/lucide-react/dist/esm/icons/loader.mjs"),s=n("./react/components/App/UserMenuContent.tsx"),o=n("./react/components/headers/ListingHeader.tsx"),i=n("./react/components/links/Breadcrumbs.tsx"),c=n("./react/api/staffAPI.ts"),u=n("./react/components/ui/LoadingPage.tsx"),d=n("./react/routes/admin.ts"),m=n("./node_modules/classnames/index.js"),f=n.n(m),p=n("./react/components/shadcn/ui/button.tsx"),g=n("./node_modules/@radix-ui/react-icons/dist/react-icons.esm.js");function y(e){var t=e.href,n=e.children,r=e.className,l=e.showIcon,s=void 0===l||l;return a.createElement(p.$,{variant:"link",asChild:!0},a.createElement("a",{href:t,target:"_blank",className:f()("inline-block gap-4",r)},n,s&&a.createElement(g.Ngv,null)))}var h=n("./react/components/pages/sync/SyncAdPrioritySwitch.tsx"),E=n("./react/components/pages/sync/syncDisplayGroups.ts"),v=n("./node_modules/@fortawesome/react-fontawesome/dist/index.js"),b=n("./node_modules/@fortawesome/free-solid-svg-icons/index.mjs"),N=n("./react/components/shadcn/ui/dialog.tsx"),x=n("./react/components/shadcn/ui/table.tsx"),A=n("./react/components/shadcn/ui/typography.tsx"),w=n("./react/components/PageHeader.tsx"),I=n("./react/components/sync/StatusBadge.tsx"),S=n("./react/components/ui/DateFormat.tsx"),_=n("./react/components/ui/ErrorMessage.tsx");function O(e){var t=e.children,n=e.inner,r=void 0!==n&&n,l=e.className;return r?a.createElement("section",{className:f()("grid grid-cols-1 gap-y-6",l)},t):a.createElement("div",{className:f()("grid grid-cols-1 gap-y-16",l)},t)}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function R(e,t,n,a,r,l,s){try{var o=e[l](s),i=o.value}catch(e){return void n(e)}o.done?t(i):Promise.resolve(i).then(a,r)}function j(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 a,r,l=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(l.push(a.value),!t||l.length!==t);s=!0);}catch(e){o=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(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.")}()}var k=function(e){var t=e.portal;return a.createElement("div",{className:"w-full text-lg font-semibold text-left"},t.url?a.createElement("a",{href:t.url,target:t.slug},t.name):a.createElement("span",{className:"text-lg font-semibold"},t.name))};function D(e){return"Active"===e?"Active":"Inactive"}var G=function(e){var t=e.aptId,n=e.serviceSlug,r=j((0,a.useState)(null),2),s=r[0],o=r[1],i=j((0,a.useState)(!1),2),c=i[0],u=i[1];return a.createElement(N.lG,{onOpenChange:function(e){return(a=function(){return function(e,t){var n,a,r,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),o=Object.defineProperty;return o(s,"next",{value:i(0)}),o(s,"throw",{value:i(1)}),o(s,"return",{value:i(2)}),"function"==typeof Symbol&&o(s,Symbol.iterator,{value:function(){return this}}),s;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,o[0]&&(l=0)),l;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return l.label++,{value:o[1],done:!1};case 5:l.label++,a=o[1],o=[0];continue;case 7:o=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){l=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){l.label=o[1];break}if(6===o[0]&&l.label<r[1]){l.label=r[1],r=o;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(o);break}r[2]&&l.ops.pop(),l.trys.pop();continue}o=t.call(e,l)}catch(e){o=[6,e],a=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}}(this,function(a){switch(a.label){case 0:return e?(u(!0),o(null),[4,fetch("/sync-out/ad-content/".concat(t,"/").concat(n,"/"))]):[2];case 1:return[4,a.sent().text()];case 2:return o.apply(void 0,[a.sent()]),u(!1),[2]}})},function(){var e=this,t=arguments;return new Promise(function(n,r){var l=a.apply(e,t);function s(e){R(l,n,r,s,o,"next",e)}function o(e){R(l,n,r,s,o,"throw",e)}s(void 0)})})();var a}},a.createElement(N.zM,{asChild:!0},a.createElement(p.$,{variant:"ghost",size:"sm",title:"View ad content"},a.createElement(v.gc,{icon:b.jTw}))),a.createElement(N.Cf,{className:"max-w-7xl max-h-[80vh] overflow-auto"},a.createElement(N.c7,null,a.createElement(N.L3,null,"Ad Content â ",n)),c&&a.createElement(l.A,{className:"animate-spin mx-auto my-8"}),s&&a.createElement("div",{dangerouslySetInnerHTML:{__html:s}})))},C=function(e){var t=e.aptId,n=e.serviceSlug,r=e.refetch,s=(0,c.yg9)(),o=j((0,a.useState)(!1),2),i=o[0],u=o[1];return a.createElement(p.$,{size:"sm",variant:"outline",onClick:function(){s.mutate({aptId:t,serviceSlug:n},{onSettled:function(){r(),u(!0),setTimeout(function(){return u(!1)},3e4)}})},disabled:s.isPending||i,title:"Ads are sent automatically on the next sync cycle. Click to send immediately."},s.isPending?a.createElement(l.A,{className:"animate-spin h-4 w-4"}):"Send")},P=function(e){var t=e.ads,n=e.isAdmin,r=e.isAgent,l=e.refetch;return a.createElement(x.XI,null,a.createElement(x.A0,null,a.createElement(x.Hj,{className:"text-sm"}
1,a.createElement(x.nd,{className:" w-48"},"Ad Portal"),a.createElement(x.nd,{className:"max-w-md"},"Status"),a.createElement(x.nd,{className:" w-16"},"Agent Activated"),a.createElement(x.nd,{className:"w-16"},"Admin Activated"),a.createElement(x.nd,{className:"w-10"},"Content"),a.createElement(x.nd,{className:"min-w-96 w-auto"},"URL"))),a.createElement(x.BF,null,t.map(function(e){var t,s=E.ol[null!==(t=E.Gm[e.status])&&void 0!==t?t:E.Z$],o=e.url||e.portal.url,i=e.is_realtime&&(r||n)&&["WAITING_TO_SEND","SENT","SENT_BUT_MISSING","ERRORED"].includes(s.key);return a.createElement(x.Hj,{key:e.portal.slug},a.createElement(x.nA,{className:"align-top"},a.createElement(k,{portal:e.portal})),a.createElement(x.nA,{className:"align-top"},a.createElement(W,{group:s,ad:e,isAdmin:n})),a.createElement(x.nA,{className:"align-top"},a.createElement(h.A,{mode:"agent",apt_id:e.apt_id,service:e.portal.slug,priority:D(e.agent_priority),canEdit:r})),a.createElement(x.nA,{className:"align-top"},a.createElement(h.A,{mode:"admin",apt_id:e.apt_id,service:e.portal.slug,priority:D(e.admin_priority),canEdit:n})),a.createElement(x.nA,{className:"align-top"},a.createElement("div",{className:"flex flex-col gap-1"},e.has_content&&a.createElement(G,{aptId:e.apt_id,serviceSlug:e.portal.slug}),i&&a.createElement(C,{aptId:e.apt_id,serviceSlug:e.portal.slug,refetch:l}))),a.createElement(x.nA,{className:"align-top"},o&&a.createElement(y,{href:o,showIcon:!1},a.createElement("span",{className:"text-ellipsis hover:underline overflow-hidden font-semibold"},o)),e.portal.policy&&a.createElement("div",{className:"text-pretty max-w-md p-2 ml-4 text-sm leading-4 text-gray-500"},e.portal.policy)))})))},L=function(e){var t=e.errors,n=e.level;return n&&(t=t.filter(function(e){return e.level===n})),a.createElement("ul",{className:"p-2"},t.map(function(e,t){return a.createElement("li",{key:"error-".concat(t),className:"list-item text-sm leading-tight list-disc"},e.description)}))},W=function(e){var t=e.group,n=e.ad,r=e.isAdmin,l=String(n.apt_id),s="olr"===n.portal.slug;switch(t.key){case"VALIDATION_ERRORS":return a.createElement("div",{className:"flex flex-row space-x-4"},a.createElement("div",{className:"space-y-2"},n.validation_errors.length>0&&a.createElement("div",{className:f()("bg-amber-500","rounded-sm","p-4","pl-5","w-96")},a.createElement(L,{errors:n.validation_errors})),n.validation_warnings.length>0&&a.createElement("div",{className:f()("bg-yellow-300","rounded-sm","p-4","pl-5","w-96")},a.createElement("h5",{className:"text-sm font-semibold"},s?"Missing OLR requirements":"Data Quality Warnings"),a.createElement(L,{errors:n.validation_warnings}))),a.createElement("div",{className:"self-center"},a.createElement(p.$,{asChild:!0,variant:"secondary"},a.createElement("a",{href:"/Agent/edit/".concat(l,"/"),target:"_edit_".concat(l),className:"text-blacks-800 hover:bg-slate-200 underline"},"FIX"))));case"WAITING_FOR_SPACE":return a.createElement("div",{className:"inline-block space-y-2 align-top"},a.createElement(I.W,{status:"WAITING_FOR_SPACE"}),n.last_sent&&a.createElement("div",{className:"text-sm"},"Num Ads: ",n.portal.max_ads),r&&a.createElement(p.$,{asChild:!0,size:"sm",variant:"outline"},a.createElement("a",{href:"/sync-out/push-into-feed/".concat(n.portal.slug,"/").concat(n.apt_id,"/")},"Push into feed")));case"WAITING_TO_SEND":return a.createElement("div",{className:"inline-block space-y-2 align-top"},a.createElement(I.W,{status:"WAITING_TO_SEND"}));case"SENT":return a.createElement("div",{className:"inline-block space-y-2 align-top"},a.createElement(I.W,{status:"SENT"}),n.last_sent&&a.createElement(S.Ay,{date:(0,S.X7)(n.last_sent)||new Date,className:"text-sm leading-tight"}));case"SENT_BUT_MISSING":return a.createElement("div",{className:"inline-block space-y-2 align-top"},a.createElement(I.W,{status:"SENT_BUT_MISSING"}),a.createElement("div",null,a.createElement("strong",null,"Ad is sent but is not appearing on the site."),n.last_sent&&a.createElement("div",null,"Last sent:"," ",a.createElement(S.Ay,{date:(0,S.X7)(n.last_sent)||new Date})),n.last_checked&&a.createElement("div",null,"Last checked:"," ",a.createElement(S.Ay,{date:(0,S.X7)(n.last_checked)||new Date}))));case"ERRORED":var o=n.status.replace("ADSTATUS.","")||"UNKNOWN";return a.createElement("div",{className:"space-y-2"},a.createElement(I.W,{status:o}),a.createElement("div",null,a.createElement(A.Oc,null,E.ol.ERRORED.help)),n.build_error&&a.createElement(A.Cy,null,
1n.build_error));default:return a.createElement("div",null,a.createElement(I.W,{status:t.key}))}},U=function(e){var t=e.ads;return a.createElement("div",{className:"space-y-4"},a.createElement(A.H3,null,E.ol.INELIGIBLE.title),a.createElement(A.Oc,null,E.ol.INELIGIBLE.help),a.createElement(x.XI,null,a.createElement(x.A0,null,a.createElement(x.Hj,null,a.createElement(x.nd,{className:"w-48"},"Ad Portal"),a.createElement(x.nd,null,"Eligibility criteria"))),a.createElement(x.BF,null,t.map(function(e){return a.createElement(x.Hj,{key:e.portal.slug},a.createElement(x.nA,null,a.createElement(k,{portal:e.portal})),a.createElement(x.nA,{className:"max-w-96"},a.createElement(L,{errors:e.validation_errors,level:"ineligible"})))}))))};const B=(0,r.y)(function(e){var t=parseInt(e.match.params.pk,10),n=(0,c.OZQ)(t,{query:{refetchOnWindowFocus:!0,refetchInterval:3e4}}),r=n.isPending,m=n.isError,f=n.data,g=n.error,y=n.refetch,h=(0,c.gtB)(),v=(0,c.Qi)(),b=r||m||!f?[]:f.ads,N=j((0,a.useState)(!1),2),x=N[0],A=N[1];(0,a.useEffect)(function(){h.mutate({aptId:t},{onSuccess:function(e,t,n){y()}})},[]);var I=j((0,a.useMemo)(function(){return(null!=b?b:[]).sort(function(e,t){var n,a,r=null!==(n=E.Gm[e.status])&&void 0!==n?n:E.Z$,l=null!==(a=E.Gm[t.status])&&void 0!==a?a:E.Z$,s=E.ol[r],o=E.ol[l];return s.sort!==o.sort?s.sort-o.sort:e.portal.name!==t.portal.name?e.portal.name.localeCompare(t.portal.name):0}).reduce(function(e,t){var n;return"INELIGIBLE"===(null!==(n=E.Gm[t.status])&&void 0!==n?n:E.Z$)?e[0].push(t):e[1].push(t),e},[[],[]])},[b]),2),S=I[0],T=I[1],R=(0,a.useCallback)(function(e){v.mutate({aptId:t,data:{apt_id:t,service_slug:"",agent:e,admin:null}},{onSettled:function(){y()}})},[t,v,y]);if((0,a.useEffect)(function(){x||r||m||!f||A(!0)},[r,m,f]),!x){if(r)return a.createElement(u.A,null);if(m)return a.createElement(_.A,null,"Error: ",g.message);if(!f)return null}var k=null==f?void 0:f.viewer_is_admin,D=null==f?void 0:f.viewer_is_agent,G=k||D,C=[{url:(0,d.B)(d.w.AdminHome),title:"home"},{url:(0,d.B)(d.w.AdminListings,{visibility:k?"admin":"mine"}),title:"listings"}];return a.createElement(s.A,null,a.createElement(i.A,{items:C}),a.createElement(o.A,{pk:t}),a.createElement(O,{className:"max-w-8xl mx-8"},a.createElement("div",{className:"space-y-4"},a.createElement(w.A,{documentTitle:"#".concat(t," SYNC Ads")},"SYNC Ads for #",t),G&&b&&b.length>0&&a.createElement("div",{className:"flex flex-row items-center justify-end gap-2 mb-4"},v.isPending&&a.createElement(l.A,{className:"animate-spin"}),a.createElement(p.$,{onClick:function(){return R(!0)},disabled:v.isPending},"Activate All"),a.createElement(p.$,{onClick:function(){return R(!1)},disabled:v.isPending,variant:"destructive"},"Deactivate All")),a.createElement(P,{ads:T,isAdmin:!!k,isAgent:!!D||!!k,refetch:y})),a.createElement(U,{ads:S})))})},"./react/components/pages/sync/syncDisplayGroups.ts"(e,t,n){n.d(t,{Gm:()=>r,Z$:()=>l,ol:()=>a});var a={VALIDATION_ERRORS:{key:"VALIDATION_ERRORS",title:"Validation errors",help:"You will need to fix these by editing your listing before these ads can be sent.",sort:1,bg:"bg-amber-500",fg:"text-white"},SENT:{key:"SENT",title:"Sending",help:"These ads have been sent to the ad platform and are presumed to be running. If they are not appearing on that site then please inquire directly with them.",sort:2,bg:"bg-green-500",fg:"text-white"},WAITING:{key:"WAITING",title:"Waiting",help:"These are waiting but have not yet been sent. If the feed has limited space and the listing is new, it will have to wait for others to stop running and give up their spot. Some feeds have very limited space, and only top rated exclusive listings will be able to get in.",sort:3,bg:"bg-yellow-200",fg:"text-neutral-300"},WAITING_FOR_SPACE:{key:"WAITING_FOR_SPACE",title:"Waiting for space",help:"These ads are waiting for space to become available in the feed. If the feed has limited space and the listing is new, it will have to wait for others to stop running and give up their spot. Some feeds have very limited space, and only top rated exclusive listings will be able to get in.",sort:3,bg:"bg-yellow-200",fg
1:"text-neutral-300"},WAITING_TO_SEND:{key:"WAITING_TO_SEND",title:"Waiting to send",help:"These ads are waiting to be fetched by the ad platform.",sort:3,bg:"bg-teal-500",fg:"text-white"},DEACTIVATED:{key:"DEACTIVATED",title:"Deactivated",help:"These ads have been deactivated by the listing agent or a staff member and will not be sent.",sort:4,bg:"bg-slate-300"},ERRORED:{key:"ERRORED",title:"Build Error",help:"Something went wrong when preparing this ad for syndication. Our engineers are aware of the problem but you may also contact Websupport.",sort:5,bg:"bg-red-600",fg:"text-white"},INELIGIBLE:{key:"INELIGIBLE",title:"Ineligible",help:"These ads do not fit the eligibility criteria for the ad platform.",sort:6,bg:"bg-stone-200"},SENT_BUT_MISSING:{key:"SENT_BUT_MISSING",title:"Sent but missing",help:"These ads have been sent to the ad platform but are not found at the expected URL.",sort:7,bg:"bg-red-600",fg:"text-white"},UNKNOWN:{key:"UNKNOWN",title:"Unknown",help:"The status of this ad is unknown. It may be in the process of being sent, or there may be a problem with the feed.",sort:7,bg:"bg-slate-300",fg:"text-neutral-900"}},r={"AdStatus.DEACTIVATED":"DEACTIVATED","AdStatus.HAS_ERRORS":"VALIDATION_ERRORS","AdStatus.WAITING":"WAITING","AdStatus.WAITING_FOR_SPACE":"WAITING_FOR_SPACE","AdStatus.WAITING_TO_SEND":"WAITING_TO_SEND","AdStatus.RUNNING":"SENT","AdStatus.SENT":"SENT","AdStatus.SENT_BUT_MISSING":"SENT_BUT_MISSING","AdStatus.MISSING":"SENT","AdStatus.REJECTED":"ERRORED","AdStatus.BUILD_ERROR":"ERRORED","AdStatus.UNKNOWN":"UNKNOWN","AdStatus.INELIGIBLE":"INELIGIBLE"},l="UNKNOWN"},"./react/components/shadcn/ui/button.tsx"(e,t,n){n.d(t,{$:()=>f,r:()=>m});var a=n("./node_modules/react/index.js"),r=n("./node_modules/@radix-ui/react-slot/dist/index.mjs"),l=n("./node_modules/class-variance-authority/dist/index.mjs"),s=n("./react/utils/shadcn.ts");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e){if(Array.isArray(e))return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){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 d(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}var m=(0,l.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),f=a.forwardRef(function(e,t){var n,l=i(n=[e,t])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||d(n)||u(),o=l[0],f=l.slice(1),p=o.className,g=o.variant,y=o.size,h=o.asChild,E=void 0!==h&&h,v=function(e,t){if(null==e)return{};var n,a,r,l={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(e),r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a]);return l}if(l=function(e,t){if(null==e)return{};var n,a,r={},l=Object.getOwnPropertyNames(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a]);return l}(o,["className","variant","size","asChild"]),b=function(e,t){return i(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(l.push(a.value),!t||l.length!==t);s=!0);}catch(e){o=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return l}}(e,t)||d(e,t)||u()}(f,1)[0],N=E?r.DX:"button";return a.createElement(N,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){c(e,t,n[t])})}return e}({className:(0,s.cn)(m({variant:g,size:y,className:p})),ref:b},v))});f.displayName="Button"},"./react/components/shadcn/ui/dialog.tsx"(e,t,n){n.d(t,{Cf:()=>N,Es:()=>A,HM:()=>v,L3:()=>w,c7:()=>x,lG:()=>y,rr:()=>I,zM:()=>h});var a=n("./node_modules/react/index.js"),r=n("./node_modules/@radix-ui/react-dialog/dist/index.mjs"),l=n("./node_modules/@radix-ui/react-icons/dist/react-icons.esm.js"),s=n("./react/utils/shadcn.ts");function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i(e){if(Array.isArray(e))return e}
1function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},a=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),a.forEach(function(t){c(e,t,n[t])})}return e}function m(e,t){if(null==e)return{};var n,a,r,l={};if("undefined"!=typeof Reflect&&Reflect.ownKeys){for(n=Reflect.ownKeys(e),r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a]);return l}if(l=function(e,t){if(null==e)return{};var n,a,r={},l=Object.getOwnPropertyNames(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}(e,t),Object.getOwnPropertySymbols)for(n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r++)a=n[r],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(l[a]=e[a]);return l}function f(e,t){return i(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,l=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(l.push(a.value),!t||l.length!==t);s=!0);}catch(e){o=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return l}}(e,t)||g(e,t)||u()}function p(e){return i(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||u()}function g(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}var y=r.bL,h=r.l9,E=r.ZL,v=r.bm,b=a.forwardRef(function(e,t){var n=p([e,t]),l=n[0],o=n.slice(1),i=l.className,c=m(l,["className"]),u=f(o,1)[0];return a.createElement(r.hJ,d({ref:u,className:(0,s.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",i)},c))});b.displayName=r.hJ.displayName;var N=a.forwardRef(function(e,t){var n=p([e,t]),o=n[0],i=n.slice(1),c=o.className,u=o.children,g=m(o,["className","children"]),y=f(i,1)[0];return a.createElement(E,null,a.createElement(b,null),a.createElement(r.UC,d({ref:y,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",c)},g),u,a.createElement(r.bm,{className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},a.createElement(l.MKb,{className:"h-4 w-4"}),a.createElement("span",{className:"sr-only"},"Close"))))});N.displayName=r.UC.displayName;var x=function(e){var t=e.className,n=m(e,["className"]);return a.createElement("div",d({className:(0,s.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};x.displayName="DialogHeader";var A=function(e){var t=e.className,n=m(e,["className"]);return a.createElement("div",d({className:(0,s.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};A.displayName="DialogFooter";var w=a.forwardRef(function(e,t){var n=p([e,t]),l=n[0],o=n.slice(1),i=l.className,c=m(l,["className"]),u=f(o,1)[0];return a.createElement(r.hE,d({ref:u,className:(0,s.cn)("text-lg font-semibold leading-none tracking-tight",i)},c))});w.displayName=r.hE.displayName;var I=a.forwardRef(function(e,t){var n=p([e,t]),l=n[0],o=n.slice(1),i=l.className,c=m(l,["className"]),u=f(o,1)[0];return a.createElement(r.VY,d({ref:u,className:(0,s.cn)("text-sm text-muted-foreground",i)},c))});I.displayName=r.VY.displayName},"./react/components/shadcn/ui/typography.tsx"(e,t,n){n.d(t,{Cy:()=>i,H3:()=>r,H4:()=>l,H5:()=>s,Oc:()=>c,P:()=>o});var a=n("./node_modules/react/index.js");function r(e){var t=e.children;return a.createElement("h3",{className:"scroll-m-20 text-2xl font-semibold tracking-tight"},t)}function l(e){var t=e.children;return a.createElement("h4",{className:"scroll-m-20 text-xl font-semibold tracking-tight"},t)}function s(e){var t=e.children;return a.createElement("h5",{className:"scroll-m-20 text-lg font-semibold tracking-tight"},t)}function o(e){var t=e.children;return a.createElement("p",{className:"leading-7 not-first:mt-6"},t)}function i(e){var t=e.children;return a.createElement("code",{className:"relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold"},t)}function c(e){var t=e.children;return a.createElement("small",{className:"text-sm font-medium leading-none"},t)}},"./react/components/ui/ErrorMessage.tsx"(e,t,n){n.d(t,{A:()=>r,Q:()=>l});var a=n("./node_modules/react/index.js");function r(e){var t=e.children;return a.createElement("div",{className:"text-center center m-2"},a.createElement("i",{className:"fa fa-exclamation-triangle text-red-500","aria-hidden":"true"}),a.createElement("span",{className:"ml-2 text-base text-red-500"},t))}function l(e){var t=e.message;return a.createElement(r,null,t)}},"./react/components/ui/LoadingPage.tsx"(e,t,n){n.d(t,{A:()=>s});var a=n("./node_modules/react/index.js"),r=n("./react/components/App/UserMenuContent.tsx"),l=n("./react/components/ui/Loading.tsx");const s=function(){return a.createElement(r.A,null,a.createElement(l.A,null))}}}]);
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.