PageSourceSearch

https://dashboard.raptive.com/133.851895684f959fde.js

js raptive.com collected 2026-10-01 08:45:09 UTC 16,991 bytes, 4 lines download raw bytes

1"use strict";
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="99b27371-cc93-525a-b201-4837419a0e20")}catch(e){}}();
3(self.webpackChunkadthrive_publisher_dashboard=self.webpackChunkadthrive_publisher_dashboard||[]).push([[133],{28552(j,w,r){r.d(w,{R:()=>B});var n=r(56106),g=r(3581),D=r(64440),O=r(85299),y=r(77392),P=r(47943),M=r(58468),b=r(57799),k=r(47743),x=r(48808),p=r(13223),u=r(45682),t=r(33499),d=r(29457),s=r(70396),_=r(27818),C=r(41802),A=r(29370),T=r(96499),R=r(49678),L=r(9256),E=r(3457),F=r(95703);function G(o,i){1&o&&(t.j41(0,"span"),t.EFF(1,"Paste keywords into the table below. The system allows a total of 20 briefs to be created at a time. You may need to allow clipboard permissions in your browser when pasting. "),t.j41(2,"a",16),t.EFF(3,"Click here to learn more"),t.k0s(),t.EFF(4,"."),t.k0s())}function K(o,i){1&o&&(t.j41(0,"span"),t.EFF(1,"Paste keywords and corresponding URLs of the posts you are optimizing into the table below. The system allows a total of 20 briefs to be created at a time. You may need to allow clipboard permissions in your browser when pasting. "),t.j41(2,"a",16),t.EFF(3,"Click here to learn more"),t.k0s(),t.EFF(4,"."),t.k0s())}function W(o,i){if(1&o){const e=t.RV6();t.j41(0,"div",14),t.nVh(1,G,5,0,"span"),t.nVh(2,K,5,0,"span"),t.k0s(),t.j41(3,"ag-grid-angular",15),t.bIt("gridReady",function(l){u.eBV(e);const c=t.XpG();return u.Njj(c.onGridReady(l))})("paste",function(l){u.eBV(e);const c=t.XpG();return u.Njj(c.onGridPaste(l))})("cellValueChanged",function(l){u.eBV(e);const c=t.XpG();return u.Njj(c.onCellValueChanged(l))}),t.k0s()}if(2&o){const e=t.XpG();t.R7$(),t.vxM(e.type.value===e.NEW?1:-1),t.R7$(),t.vxM(e.type.value===e.UPDATE?2:-1),t.R7$(),t.Y8G("domLayout","autoHeight")("rowHeight",50)("columnDefs",e.colDefs)("rowData",e.rowData)("gridOptions",e.gridOptions)}}function $(o,i){1&o&&(t.j41(0,"div",17)(1,"mat-form-field",21)(2,"mat-label"),t.EFF(3,"URL*"),t.k0s(),t.nrm(4,"input",22),t.j41(5,"mat-icon",20),t.EFF(6,"link"),t.k0s(),t.j41(7,"mat-hint"),t.EFF(8,"Required"),t.k0s()()())}function N(o,i){if(1&o&&(t.j41(0,"span",14),t.EFF(1,"based on this"),t.k0s(),t.j41(2,"div",17)(3,"mat-form-field",18)(4,"mat-label"),t.EFF(5,"Keyword"),t.k0s(),t.nrm(6,"input",19),t.j41(7,"mat-icon",20),t.EFF(8,"gps_fixed"),t.k0s(),t.j41(9,"mat-hint"),t.EFF(10,"Required"),t.k0s()()(),t.nVh(11,$,9,0,"div",17)),2&o){const e=t.XpG();t.R7$(11),t.vxM(e.type.value===e.UPDATE?11:-1)}}function X(o,i){if(1&o){const e=t.RV6();t.j41(0,"a",23),t.bIt("click",function(){u.eBV(e);const l=t.XpG();return u.Njj(l.changeBulkBriefView(!1))}),t.EFF(1,"<< Go back to creating briefs one at a time"),t.k0s()}}function S(o,i){if(1&o){const e=t.RV6();t.j41(0,"a",23),t.bIt("click",function(){u.eBV(e);const l=t.XpG();return u.Njj(l.changeBulkBriefView(!0))}),t.EFF(1,"Need to create briefs in bulk?"),t.k0s()}}function z(o,i){if(1&o){const e=t.RV6();t.j41(0,"adl-button",24),t.bIt("click",function(){u.eBV(e);const l=t.XpG();return u.Njj(l.addBrief())}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("disabled",!e.briefCreationFormGroup.valid)}}function Y(o,i){if(1&o){const e=t.RV6();t.j41(0,"adl-button",25),t.bIt("click",function(){u.eBV(e);const l=t.XpG();return u.Njj(l.addBulkBriefs())}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("text",t.VkB("create ",e.bulkBriefsCount>1?e.bulkBriefsCount+" Briefs":"Brief"," "))("disabled",!e.bulkBriefsCount)}}const v=/\.[a-z]{2,6}/i;class B{constructor(i,e,a,l,c){this.fb=i,this.dialogRef=e,this.data=a,this.store=l,this.gaService=c,this.NEW=b.x9.NEW,this.UPDATE=b.x9.UPDATED,this.isLoading=!1,this.showBulkBriefView=!1,this.shouldAutoCreateBrief=!1,this._destroy$=new y.B,this.creationDebounce=new y.B,this.bulkCreationDebounce=new y.B,this.colDefs=V,this.defaultColDef={initialWidth:100},this.rowData=I.map(f=>({...f})),this.gridOptions={processCellForClipboard:f=>f.value,tooltipShowDelay:500,stopEditingWhenCellsLoseFocus:!0},this.keyword=a.keyword,this.rankedURL=a.rankedURL,this.briefSource=a.briefSource,this.wasRecommended=null!=a.briefSource&&b.qO.includes(a.briefSource),this.trackingData=a.trackingData??{},this.shouldAutoCreateBrief=a.shouldAutoCreateBrief??!1}ngOnInit(){this.briefCreationFormGroup=this.fb.group({keyword:[this.keyword,n.k0.required],type:[this.NEW,
3n.k0.required],url:[this.rankedURL]}),(0,D.Im)(this.rankedURL)||this.type.setValue(this.UPDATE),this.type.valueChanges.pipe((0,M.Q)(this._destroy$)).subscribe(i=>{const e=this.briefCreationFormGroup.get("url");e&&(i===b.x9.UPDATED?(e.setValidators([n.k0.required,k.k.urlValidator]),e.updateValueAndValidity()):(e.clearValidators(),e.updateValueAndValidity())),this.setupGridOptions()}),this.creationDebounce.pipe((0,M.Q)(this._destroy$),(0,P.B)(1e3)).subscribe(()=>{this.createBrief()}),this.bulkCreationDebounce.pipe((0,M.Q)(this._destroy$),(0,P.B)(1e3)).subscribe(()=>{this.createBulkBriefs()}),this.shouldAutoCreateBrief&&this.addBrief()}onGridPaste(i){const e=i.clipboardData;if(!e)return;let l=e.getData("text/plain").split(/\r\n|\n/).filter(m=>""!==m.trim());l.length+this.rowData.length>20&&(l=l.slice(0,20-this.rowData.length));const f=l.length-this.rowData.length;for(let m=0;m<f;m++)this.rowData.push({Keyword:"",URL:""});f>0&&this.gridApi?.setGridOption("rowData",this.rowData)}setupGridOptions(){this.gridApi&&(this.gridApi.setGridOption("columnDefs",this.type.value===this.UPDATE?Q:V),this.gridApi.sizeColumnsToFit(),this.validateBulkBriefs())}onGridReady(i){this.gridApi=i.api,this.gridApi.refreshCells({force:!0}),this.setupGridOptions()}onCellValueChanged(i){if(!this.gridApi)return;const e=[];this.gridApi.forEachNode(f=>{f.data&&e.push(f.data)});const a=e[e.length-1];Object.keys(a).some(f=>void 0!==a[f]&&""!==a[f])&&e.length<20&&(this.rowData.push({Keyword:"",URL:""}),this.gridApi.setGridOption("rowData",this.rowData)),this.validateBulkBriefs()}validateBulkBriefs(){for(const e of this.rowData)if(e.Keyword||e.URL){if(this.type.value===this.UPDATE&&e.URL&&!e.URL.match(v))return void(this.bulkBriefsCount=0);if(!e.Keyword)return void(this.bulkBriefsCount=0)}const i=this.rowData.filter(e=>this.type.value===this.UPDATE?e.Keyword&&e.URL&&e.URL.match(v):e.Keyword);this.bulkBriefsCount=i.length}destroyGrid(){this.gridApi&&(this.rowData=I.map(i=>({...i})),this.gridApi.setGridOption("rowData",this.rowData),this.gridApi.destroy())}ngOnDestroy(){this._destroy$.next(void 0),this.destroyGrid()}get type(){return this.briefCreationFormGroup.get("type")}createBrief(){const i=this.briefCreationFormGroup.getRawValue();i.wasRecommended=this.wasRecommended,i.trackingData=this.trackingData,i.type===this.NEW&&(i.url=""),null!=this.briefSource&&(this.store.dispatch(new x.nN({siteId:this.siteId,brief:i},this.briefSource)).subscribe(()=>{this.dialogRef.close(i),this.isLoading=!1},e=>{this.isLoading=!1}),this.gaService.sendTracking("trackedEvent","Create a Brief - Create",p.Es[i.type],p.GC))}createBulkBriefs(){const i=this.rowData.filter(e=>e.Keyword).map(e=>
3{const a={keyword:e.Keyword,url:e.URL,type:this.type.value};return a.wasRecommended=this.wasRecommended,a.type===this.NEW&&(a.url=""),a});null!=this.briefSource&&this.store.dispatch(new x.rT({siteId:this.siteId,briefs:i},this.briefSource)).subscribe(()=>{this.dialogRef.close(i),this.isLoading=!1},e=>{this.isLoading=!1})}addBrief(){this.isLoading||(this.isLoading=!0,this.creationDebounce.next(void 0))}addBulkBriefs(){this.isLoading||(this.isLoading=!0,this.bulkCreationDebounce.next(void 0))}changeBulkBriefView(i){this.showBulkBriefView=i,this.setupGridOptions(),i?(this.dialogRef.updateSize("60vh"),this.dialogRef.updateSize("60vw")):this.dialogRef.updateSize("auto")}static{this.\u0275fac=function(e){return new(e||B)(t.rXU(n.ok),t.rXU(g.CP),t.rXU(g.Vh),t.rXU(d.il),t.rXU(s.p))}}static{this.\u0275cmp=t.VBU({type:B,selectors:[["at-add-brief"]],standalone:!1,decls:20,vars:9,consts:[[1,"add-brief"],["data-cy","title-create-brief",1,"heading"],[3,"formGroup"],[1,"form-body"],[1,"form-list-item"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px"],["aria-labelledby","brief-type","formControlName","type","fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px","fxLayout.lt-md","column","fxLayoutAlign.lt-md","start start","fxFlex","100",1,"brief-type-group"],["color","primary","data-cy","radio-button-create-new-post",1,"radio",3,"value"],["color","primary","data-cy","radio-button-update-existing-post",1,"radio",3,"value"],[1,"brief-bulk-creation-link"],[1,"actions-buttons","mixed-actions"],["text","create","type","submit","data-cy","button-create-brief",3,"disabled"],["type","submit","data-cy","button-create-brief",3,"text","disabled"],["text","cancel","emphasis","low","mat-dialog-close","","data-cy","button-cancel-create-brief"],[1,"form-sub-title"],[1,"ag-theme-alpine",3,"gridReady","paste","cellValueChanged","domLayout","rowHeight","columnDefs","rowData","gridOptions"],["target","_blank","href","https://help.raptive.com/hc/en-us/articles/24475216886427-How-do-I-create-content-briefs-in-bulk"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","16px",1,"form-list-item"],["appearance","outline","fxFlex","100"],["matInput","","type","text","formControlName","keyword","data-cy","input-keyword"],["matSuffix",""],["appearance","outline","fxFlex","100","floatLabel","always"],["matInput","","type","text","formControlName","url","placeholder","https://yoursite.com/post-url","data-cy","input-existing-post-url"],[1,"brief-bulk-creation-link",3,"click"],["text","create","type","submit","data-cy","button-create-brief",3,"click","disabled"],["type","submit","data-cy","button-create-brief",3,"click","text","disabled"]],template:function(e,a){1&e&&(t.j41(0,"div",0)(1,"h1",1),t.EFF(2,"Create Brief"),t.k0s(),t.j41(3,"form",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"mat-radio-group",6)(8,"mat-radio-button",7),t.EFF(9," Create new post "),t.k0s(),t.j41(10,"mat-radio-button",8),t.EFF(11," Update existing post "),t.k0s()()()(),t.nVh(12,W,4,7)(13,N,12,1),t.nVh(14,X,2,0,"a",9)(15,S,2,0,"a",9),t.k0s(),t.j41(16,"mat-dialog-actions",10),t.nVh(17,z,1,1,"adl-button",11),t.nVh(18,Y,1,3,"adl-button",12),t.nrm(19,"adl-button",13),t.k0s()()()),2&e&&(t.R7$(3),t.Y8G("formGroup",a.briefCreationFormGroup),t.R7$(5),t.Y8G("value",t.mNQ(a.NEW)),t.R7$(2),t.Y8G("value",t.mNQ(a.UPDATE)),t.R7$(2),t.vxM(a.showBulkBriefView?12:13),t.R7$(2),t.vxM(a.showBulkBriefView?14:15),t.R7$(3),t.vxM(a.showBulkBriefView?-1:17),t.R7$(),t.vxM(a.showBulkBriefView?18:-1))},dependencies:[n.qT,n.me,n.BC,n.cb,n.j4,n.JD,_.Q,g.tx,g.E7,C.rl,C.nJ,C.MV,C.yw,A.An,T.fg,R.VT,R._g,L.v,E.DJ,E.BO,E.sA,E.UI,F.xs],styles:[".ag-theme-alpine .ag-ltr .ag-cell{border-right:1px solid #e0e0e0}  .ag-theme-alpine .invalid-cell{border:1px solid var(--warn)!important}.add-brief[_ngcontent-%COMP%]{padding:16px}@media(min-width:1515px){.add-brief[_ngcontent-%COMP%]{min-width:30vw}}.add-brief[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{margin-bottom:16px}.add-brief[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]     svg{fill:var(--dark-text-high)}@media(max-width:300px){.add-brief[_ngcontent-%COMP%]   .type-icon[_ngcontent-%COMP%]{display:none}}.add-brief[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{margin:0;padding:0}@media(max-width:400px){.add-brief[_ngcontent-%COMP%]   .heading[_ngcontent-%COMP%]{font-size:30px}}.add-brief[_ngcontent-%COMP%]   .form-sub-title[_ngcontent-%COMP%]{color:var(--dark-text-med);font-size:14px}.add-brief[_ngcontent-%COMP%]   .mat-icon[_ngcontent-%COMP%]{margin-bottom:12px;color:var(--dark-text-med)}.add-brief[_ngcontent-%COMP%]   .mat-mdc-radio-group[_ngcontent-%COMP%]{margin-bottom:16px}.add-brief[_ngcontent-%COMP%]   .form-body[_ngcontent-%COMP%]{padding:15px 0}.add-brief[_ngcontent-%COMP%]   .form-body[_ngcontent-%COMP%]   .form-list-item[_ngcontent-%COMP%]{margin:8px 0}.add-brief[_ngcontent-%COMP%]   .actions-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between}.add-brief[_ngcontent-%COMP%]   .brief-bulk-creation-link[_ngcontent-%COMP%]{display:block;color:var(--primary-catalyst-purple);text-decoration:none;font-size:14px;margin-top:8px;margin-bottom:8px}.add-brief[_ngcontent-%COMP%]   .form-sub-title[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}!function(o,i,e,a){var f,l=arguments.length,c=l<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(o,i,e,a);else for(var m=o.length-1;m>=0;m--)(f=o[m])&&(c=(l<3?f(c):l>3?f(i,e,c):f(i,e))||c);l>3&&c&&Object.defineProperty(i,e,c)}([(0,O.bL)(x.NR.siteID)],B.prototype,"siteId",void 0);const V=[{field:"Keyword",editable:!0,sortable:!1,suppressMovable:!0,suppressMenu:!0,resizable:!1}],Q=[{field:"Keyword",editable:!0,sortable:!1,suppressMovable:!0,suppressMenu:!0,resizable:!1,flex:1,cellEditor:"agTextCellEditor",cell
3ClassRules:{"invalid-cell":o=>o.data&&o.data.URL&&!o.value},tooltipValueGetter:o=>o.data&&o.data.URL&&!o.value?"Invalid Keyword":null},{field:"URL",editable:!0,sortable:!1,suppressMovable:!0,suppressMenu:!0,resizable:!1,flex:2,cellEditor:"agTextCellEditor",cellClassRules:{"invalid-cell":o=>o.data&&o.data.Keyword&&(null===o.value||!o.value.match(v))},tooltipValueGetter:o=>!o.data||!o.data.Keyword||null!==o.value&&o.value.match(v)?null:"Invalid URL"}],I=[{Keyword:"",URL:""},{Keyword:"",URL:""},{Keyword:"",URL:""}]},32354(j,w,r){r.d(w,{M:()=>x});var n=r(33499),g=r(21837),D=r(45682),O=r(37737),y=r(94718),P=r(29370),M=r(62023);function b(p,u){if(1&p){const t=n.RV6();n.j41(0,"button",4),n.bIt("click",function(){D.eBV(t);const s=n.XpG().$implicit,_=n.XpG();return D.Njj(_.onCloseClick(s))}),n.j41(1,"mat-icon",5),n.EFF(2,"close"),n.k0s()()}}function k(p,u){if(1&p&&(n.j41(0,"mat-chip-option",1)(1,"span",2),n.EFF(2),n.k0s(),n.nVh(3,b,3,0,"button",3),n.k0s()),2&p){const t=u.$implicit,d=n.XpG();n.R7$(2),n.JRh(d.formatChipText(t)),n.R7$(),n.vxM(t.closeable?3:-1)}}let x=(()=>{class p{constructor(t,d){this.currencyPipe=t,this.decimalPipe=d,this.onCloseChip=new n.bkB}ngOnChanges(t){t.chips&&t.chips.currentValue&&(this.chips=[...t.chips.currentValue])}onCloseClick(t){this.onCloseChip.emit(t)}formatChipText(t){if(!t||!t.filterValue)return"";let d=`${t.chipLabel}: `;if("date"==t.filterType){const s=t.filterValue;d+=this.formatDate(s[0],s[1])}else if("range"==t.filterType){const s=t.filterValue;s[0]&&s[1]?d+=`${this.formatValue(s[0],t.dataType)} to ${this.formatValue(s[1],t.dataType)}`:s[0]?d+=`> ${this.formatValue(s[0],t.dataType)}`:s[1]&&(d+=`< ${this.formatValue(s[1],t.dataType)}`)}else d+=`${this.formatValue(t.filterValue,t.dataType)}`;return d}formatValue(t,d){switch(d){case"usd":return this.currencyPipe.transform(t,"USD","symbol-narrow");case"percentage":return`${t}%`;case"number":return this.decimalPipe.transform(t);default:return t}}formatDate(t,d){const s=g.c9.fromISO(t),_=g.c9.fromISO(d),C=s.toISODate()===_.toISODate(),A=s.toFormat("MM"),T=_.toFormat("MM"),R=s.toFormat("d"),L=_.toFormat("d"),E=s.toFormat("yyyy"),F=_.toFormat("yyyy");let h="";return h=C?s.toFormat("MMM dd, yyyy"):t?d?E!==F?`${s.toFormat("MMM dd, yyyy")} - ${_.toFormat("MMM dd, yyyy")}`:A!==T?`${s.toFormat("MMM dd")} - ${_.toFormat("MMM dd, yyyy")}`:`${s.toFormat("MMM")} ${R}-${L}, ${_.toFormat("yyyy")}`:`After ${s.toFormat("MMM dd, yyyy")}`:`Before ${_.toFormat("MMM dd, yyyy")}`,h}static{this.\u0275fac=function(d){return new(d||p)(n.rXU(O.oe),n.rXU(O.QX))}}static{this.\u0275cmp=n.VBU({type:p,selectors:[["adl-chip-list"]],inputs:{chips:"chips"},outputs:{onCloseChip:"onCloseChip"},standalone:!1,features:[n.OA$],decls:4,vars:0,consts:[[1,"chips"],["selectable","false"],[1,"unselectable"],["mat-icon-button","",1,"filter-pill-close-btn"],["mat-icon-button","",1,"filter-pill-close-btn",3,"click"],[1,"filter-pill-close-icon"]],template:function(d,s){1&d&&(n.j41(0,"div",0)(1,"mat-chip-set"),n.Z7z(2,k,4,2,"mat-chip-option",1,n.fX1),n.k0s()()),2&d&&(n.R7$(2),n.Dyx(s.chips))},dependencies:[y.gq,y.Jo,P.An,M.iY],styles:[".chips{display:flex;gap:10px;margin:16px 0;font-size:14px;letter-spacing:normal}.chips mat-chip-option{gap:8px;background-color:var(--primary-white)!important}.chips .mdc-evolution-chip__text-label.mat-mdc-chip-action-label{display:flex;align-items:center;justify-content:center}.chips .mat-mdc-chip.mat-mdc-standard-chip:after{background:none!important}.chips .filter-pill-close-btn{background-color:transparent;border:none;cursor:pointer;width:20px;height:20px}.chips .filter-pill-close-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:14px;width:16px;height:16px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;background-color:#000}.chips .unselectable{-webkit-user-select:none;user-select:none}\n"],encapsulation:2})}}return p})()}}]);
4//# debugId=99b27371-cc93-525a-b201-4837419a0e20

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.