plate),secondaryActionText:(0,u.default)(this.i18n,"i18n_cover_story_cancel",this.template)}
this.confirmationModalManager.showConfirmationModal(e).then((e=>{if(!(0,y.isDestroying)(this)){if(e){this.removeLocalTranscript()
this.args.onClose()
this.tracking.fireInteractionEvent("coverstory_preview_captions_close")}this.confirmationModalManager.settings.showConfirmModal=!1}}))}_pollForProfile(){return new p.Promise(((e,t)=>{this.poller.start((()=>{this.graphql.executeQuery(a.default,{profileUrn:this.authenticatedUser.dashEntityUrn}).then((e=>{if(!this.isDestroying)return null==e?void 0:e.data.identityDashProfilesById})).then((t=>{if((0,y.isDestroying)(this))return
const r=(0,s.getGraphQlValueWithDashFallback)(t,"elements.0.profileVideo.processedVideo.fullVideo.transcripts")
r&&r.length>0&&e()})).catch((e=>{if((0,y.isDestroying)(this))throw e
t(e)}))}))}))}},x=(0,r.default)(F.prototype,"vectorMediaUpload",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),N=(0,r.default)(F.prototype,"i18n",[A],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),j=(0,r.default)(F.prototype,"authenticatedUser",[k],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),U=(0,r.default)(F.prototype,"tracking",[L],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),z=(0,r.default)(F.prototype,"graphql",[M],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),V=(0,r.default)(F.prototype,"showConfirmationModal",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Y=(0,r.default)(F.prototype,"showLoader",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),q=(0,r.default)(F.prototype,"poller",[h.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new G(this)}}),(0,r.default)(F.prototype,"uploadCaptions",[g.action],Object.getOwnPropertyDescriptor(F.prototype,"uploadCaptions"),F.prototype),(0,r.default)(F.prototype,"handleBack",[g.action],Object.getOwnPropertyDescriptor(F.prototype,"handleBack"),F.prototype),(0,r.default)(F.prototype,"handleClose",[g.action],Object.getOwnPropertyDescriptor(F.prototype,"handleClose"),F.prototype),F))}))
define("profile-tetris/components/cover-story/caption-selection",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","video-utils/utils/video-helpers","confirmation-modal/utils/get-confirmation-message","confirmation-modal/utils/confirmation-modal-manager","global-utils/utils/is-browser","@glimmer/tracking","@ember/service","@ember/object","@glimmer/component","@ember/destroyable","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-i18n/helpers/t","artdeco-button/components/artdeco-button","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/modifier","video/components/caption-invalid-error","artdeco-inline-feedback/components/artdeco-inline-feedback","global-helpers/helpers/or","global-helpers/helpers/not","artdeco-modal/components/artdeco-confirmation-dialog","@ember/helper","ember-set-helper/helpers/set"],(function(e,t,r,i,o,l,n,a,s,p,d,c,u,m,f,h,b,g,_,y,v,P,E,w,T,O,C,I){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var S,D,R,A,k,L,M,F,x,N
e.default=(0,n.setComponentTemplate)((0,l.createTemplateFactory)({id:"TV32BGSh",block:'[[[1,"\\n"],[1,"    "],[8,[32,0],null,[["@testId","@isOpen","@size","@dismissModal"],["caption-selection",true,"medium",[30,0,["handleClose"]]]],[["default"],[[[[1,"\\n      "],[8,[30,1,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n        "],[10,"h2"],[14,1,"cover-story-caption-selection-header"],[12],[1,[28,[32,1],["i18n_cover_story_caption_selection_title","profile-tetris/components/cover-story/caption-selection"],null]],[13],[1,"\\n      "]],[]]]]],[1,"\\n\\n      "],[8,[30,1,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n        "],[10,2],[14,0,"mb4 t-16 t-black--light"],[12],[1,"\\n          "],[1,[28,[32,1],["i18n_cover_story_caption_selection_help_center","profile-tetris/components/cover-story/caption-selection"],[["linkInfo"],[[28,[32,2],null,[["target","href","rel","aria-label","data-control-name","data-test-cover-story-caption-selection-learn-more"],["_blank","/help/linkedin/answer/131177","noopener noreferrer",[28,[32,1],["i18n_cover_story_caption_selection_learn_more","profile-tetris/components/cover-story/caption-selection"],null],"coverstory_captions_learn_more",true]]]]]]],[1,"\\n        "],[13],[1,"\\n\\n"],[1,"        "],[10,0],[14,0,"display-flex align-items-center mb4"],[12],[1,"\\n          "],[8,[32,3],[[4,[32,4],["coverstory_select_caption_file"],null],[4,[32,5],["click",[30,0,["triggerCaptionSelect"]]],null]],[["@color","@type","@text"],["muted","secondary",[28,[32,1],["i18n_cover_story_caption_selection_select","profile-tetris/components/cover-story/caption-selection"],null]]],null],[1,"\\n          "],[10,1],[14,0,"ml3 t-14 t-black--light"],[12],[1,"\\n            "],[1,[52,[30,0,["isCaptionFileSelected"]],[30,0,["captionFile","name"]],[28,[32,1],["i18n_cover_story_caption_selection_no_file_chosen","profile-tetris/components/cover-story/caption-selection"],null]]],[1,"\\n          "],[13],[1,"\\n          "],[11,"input"],[24,0,"hidden"],[24,1,"pv-cover-story-caption-selection-input"],[24,"accept",".srt"],[24,4,"file"],[4,[32,5],["click",[30,0,["resetInputValue"]]],null],[4,[32,5],["change",[30,0,["onCaptionSelect"]]],null],[12],[13],[1,"\\n        "],[13],[1,"\\n"],[41,[30,0,["error"]],[[[1,"          "],[8,[32,6],null,[["@error"],[[30,0,["error"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["isCaptionFileSelected"]],[[[1,"          "],[8,[32,7],null,[["@message","@type"],[[28,[32,1],["i18n_cover_story_caption_selection_selected_feedback","profile-tetris/components/cover-story/caption-selection"],null],"success"]],null],[1,"\\n        "]],[]],null]],[]]],[1,"      "]],[]]]]],[1,"\\n\\n      "],[8,[30,1,["artdeco-modal-footer"]],null,null,[["default"],[[[[1,"\\n        "],[10,0],[14,0,"display-flex justify-flex-end"],[12],[1,"\\n          "],[8,[32,3],[[16,"aria-label",[28,[32,1],["i18n_cover_story_caption_selection_preview_a11y","profile-tetris/components/cover-story/caption-selection"],null]],[4,[32,4],["coverstory_preview_captions"],null],[4,[32,5],["click",[30,0,["previewCaption"]]],null]],[["@disabled","@text"],[[28,[32,8],[[28,[32,9],[[30,0,["isCaptionFileSelected"]]],null],[30,0,["error"]]],null],[28,[32,1],["i18n_cover_story_caption_selection_preview","profile-tetris/components/cover-story/caption-selection"],null]]],null],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[1]]]]],[1,"\\n\\n"],[41,[30,0,["confirmationModalManager","renderConfirmModal"]],[[[1,"      "],[8,[32,10],null,[["@testId","@isOpen","@title","@content","@onPrimary","@primaryActionText","@onSecondary","@secondaryActionText","@onEscape"],["caption-selection-modal-confirmation-modal",[30,0,["confirmationModalManager","settings","showConfirmModal"]],[30,0,["confirmationModalManager","settings","title"]],[30,0,["confirmationModalManager","settings","modalMessage"]],[28,[32,11],[[30,0,["confirmationModalManager","onConfirm"]],true],null],[30,0,["confirmationModalManager","settings","primaryActionText"]],[28,[32,11],[[30,0,["confirmationModalManager","onConfirm"]],false],null],[30,0,["confirmationModalManager","settings","secondaryActionText"]],[28,[32,12],[[30,0],"confirmationModalManager.settings.showConfirmModal",false],null]]],null],[1,"\\n"]],[]],null],[1,"  "]],["modal"],false,["if"]]',moduleName:"profile-tetris/components/cover-story/caption-selection.gjs",scope:()=>[b.default,g.default,C.hash,_.default,y.default,v.on,P.default,E.default,w.default,T.default,O.default,C.fn,I.default],isStrictMode:!0}),(S=(0,u.inject)("i18n"),D=(0,u.inject)("vector@vector-media-upload"),R=(0,u.inject)("tracking"),A=class extends f.default{constructor(){super(...arguments);(0,t.default)(this,"i18n",k,this);(0,t.default)(this,"vectorMediaUpload",L,this);(0,t.default)(this,"tracking",M,this);(0,r.default)(this,"confirmationModalManager",new p.default(this.i18n));(0,r.default)(this,"template","components/profile-tetris@cover-story/caption-selection");(0,t.default)(this,"captionFile",F,this);(0,t.default)(this,"showConfirmationModal",x,this);(0,t.default)(this,"error",N,this)}get isCaptionFileSelected(){return!!this.captionFile}onCaptionSelect(e){var t,r
const i=null==e||null===(t=e.target)||void 0===t||null===(r=t.files)||void 0===r?void 0:r[0]
if(!i)return
if(!this.isCaptionFileSelected){this.captionFile=i
this._validateCaptionFile()
return}const o={showConfirmModal:!0,title:(0,s.default)(this.i18n,"i18n_cover_story_caption_selection_replace_title",this.template),modalMessage:(0,s.default)(this.i18n,"i18n_cover_story_caption_selection_replace_content",this.template),primaryActionText:(0,s.default)(this.i18n,"i18n_cover_story_confirm",this.template),secondaryActionText:(0,s.default)(this.i18n,"i18n_cover_story_cancel",this.template)}
this.confirmationModalManager.showConfirmationModal(o).then((e=>{if(!this.isDestroying&&e){this.captionFile=i
this._validateCaptionFile()}})).finally((()=>{this.isDestroying||(this.confirmationModalManager.settings.showConfirmModal=!1)}))}triggerCaptionSelect(){if(d.default){document.querySelector("#pv-cover-story-caption-selection-input").click()}}resetInputValue(e){e.target.value=""}async previewCaption(){const e=await(0,a.generateTranscriptPreview)(this.captionFile)
if(!(0,h.isDestroying)(this)){(0,m.set)(this.args.videoPlayMetadata,"transcripts",[e.transcript])
this.args.onPreview(this.captionFile)}}handleClose(){if(this.isCaptionFileSelected){const e={showConfirmModal:!0,title:(0,s.default)(this.i18n,"i18n_cover_story_discard_title",this.template),modalMessage:(0,s.default)(this.i18n,"i18n_cover_story_discard_content",this.template),primaryActionText:(0,s.default)(this.i18n,"i18n_cover_story_confirm",this.template),secondaryActionText:(0,s.default)(this.i18n,"i18n_cover_story_cancel",this.template)}
this.confirmationModalManager.showConfirmationModal(e).then((e=>{if(!(0,h.isDestroying)(this)){if(e){this.args.onClose()
this.tracking.fireInteractionEvent("coverstory_captions_dismiss")}this.confirmationModalManager.settings.showConfirmModal=!1}}))}else{this.args.onClose()
this.tracking.fireInteractionEvent("coverstory_captions_dismiss")}}_validateCaptionFile(){return this.vectorMediaUpload.validateCaptionUpload(this.captionFile).then((()=>{this.isDestroying||(this.error=null)})).catch((e=>{this.isDestroying||(this.error={errors:e})}))}},k=(0,i.default)(A.prototype,"i18n",[S],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),L=(0,i.default)(A.prototype,"vectorMediaUpload",[D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),M=(0,i.default)(A.prototype,"tracking",[R],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),F=(0,i.default)(A.prototype,"captionFile",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return this.args.captionFile}}),x=(0,i.default)(A.prototype,"showConfirmationModal",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),N=(0,i.default)(A.prototype,"error",[c.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(A.prototype,"onCaptionSelect",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"onCaptionSelect"),A.prototype),(0,i.default)(A.prototype,"triggerCaptionSelect",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"triggerCaptionSelect"),A.prototype),(0,i.default)(A.prototype,"resetInputValue",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"resetInputValue"),A.prototype),(0,i.default)(A.prototype,"previewCaption",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"previewCaption"),A.prototype),(0,i.default)(A.prototype,"handleClose",[m.action],Object.getOwnPropertyDescriptor(A.prototype,"handleClose"),A.prototype),A))}))
define("profile-tetris/components/cover-story/caption-upload-modal",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","@glimmer/tracking","@ember/object","@glimmer/component","profile-tetris/components/cover-story/caption-selection","profile-tetris/components/cover-story/caption-preview"],(function(e,t,r,i,o,l,n,a,s,p,d,c){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var u,m,f
e.default=(0,n.setComponentTemplate)((0,l.createTemplateFactory)({id:"y9YdUqwa",block:'[[[1,"\\n"],[41,[30,0,["showSelectionModal"]],[[[1,"      "],[8,[32,0],null,[["@videoPlayMetadata","@onPreview","@onClose","@captionFile"],[[30,1],[30,0,["goToPreview"]],[30,2],[30,0,["captionFile"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["captionFile"]],[[[1,"      "],[8,[32,1],null,[["@videoPlayMetadata","@captionFile","@onBack","@onClose"],[[30,1],[30,0,["captionFile"]],[30,0,["goBackToSelection"]],[30,2]]],null],[1,"\\n    "]],[]],null]],[]]],[1,"  "]],["@videoPlayMetadata","@onClose"],false,["if"]]',moduleName:"profile-tetris/components/cover-story/caption-upload-modal.gjs",scope:()=>[d.default,c.default],isStrictMode:!0}),(u=class extends p.default{constructor(){super(...arguments);(0,t.default)(this,"captionFile",m,this);(0,t.default)(this,"showSelectionModal",f,this)}goBackToSelection(){this.showSelectionModal=!0}goToPreview(e){this.showSelectionModal=!1
this.captionFile=e}},m=(0,i.default)(u.prototype,"captionFile",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),f=(0,i.default)(u.prototype,"showSelectionModal",[a.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),(0,i.default)(u.prototype,"goBackToSelection",[s.action],Object.getOwnPropertyDescriptor(u.prototype,"goBackToSelection"),u.prototype),(0,i.default)(u.prototype,"goToPreview",[s.action],Object.getOwnPropertyDescriptor(u.prototype,"goToPreview"),u.prototype),u))}))
define("profile-tetris/components/cover-story/creator",["exports","@ember/template-factory","@ember/component/template-only","@ember/component","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-i18n/helpers/t","ember-vector-images/components/custom-image","global-helpers/helpers/name","global-helpers/helpers/or","dash-interop-helper/helpers/get-graphql-value-with-dash-fallback"],(function(e,t,r,i,o,l,n,a,s,p){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
const d=(0,i.setComponentTemplate)((0,t.createTemplateFactory)({id:"eZ2LfUSA",block:'[[[1,"\\n"],[1,"  "],[8,[32,0],null,[["@size","@customHeader","@isOpen","@dismissModal"],["medium",true,true,[30,1]]],[["default"],[[[[1,"\\n    "],[8,[30,2,["artdeco-modal-header"]],[[24,0,"bb0"]],null,[["default"],[[[[1,"\\n      "],[10,"h2"],[14,1,"cover-story-creator-modal"],[14,0,"a11y-text"],[12],[1,"\\n        "],[1,[28,[32,1],["i18n_introduction","profile-tetris/components/cover-story/creator"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,2,["artdeco-modal-content"]],[[24,0,"text-align-center pv7 ph9"]],null,[["default"],[[[[1,"\\n      "],[10,0],[14,0,"pv-cover-story-creator-profile-image--colored-border EntityPhoto-circle-8 p1 mb5"],[12],[1,"\\n        "],[8,[32,2],null,[["@alt","@image","@class","@width","@height"],[[28,[32,1],["i18n_profile_photo_with_name","profile-tetris/components/cover-story/creator"],[["memberName"],[[28,[32,3],[[30,3]],null]]]],[28,[32,4],[[28,[32,5],[[30,3],"profilePicture.displayImageWithFrameReference.vectorImage"],null],[28,[32,5],[[30,3],"profilePicture.displayImageReferenceResolutionResult.vectorImage"],null]],null],"pv-cover-story-creator-profile-image EntityPhoto-circle-8","128","128"]],null],[1,"\\n      "],[13],[1,"\\n      "],[10,"h3"],[14,0,"t-black t-bold t-20 mb2"],[12],[1,"\\n        "],[1,[28,[32,1],["i18n_introduction","profile-tetris/components/cover-story/creator"],null]],[1,"\\n      "],[13],[1,"\\n      "],[10,0],[14,0,"display-flex flex-column mb3"],[12],[1,"\\n        "],[10,2],[14,0,"t-14 t-black--light"],[12],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[1,[28,[32,1],["i18n_scan_qr_code_1","profile-tetris/components/cover-story/creator"],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,1],[12],[1,"\\n            "],[1,[28,[32,1],["i18n_scan_qr_code_2","profile-tetris/components/cover-story/creator"],null]],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n        "],[10,"img"],[14,0,"pv-cover-story-creator-qr-code pt2"],[15,"alt",[28,[32,1],["i18n_qr_code","profile-tetris/components/cover-story/creator"],null]],[14,"src","https://media.licdn.com/media/AAYQAgQJAAgAAQAAAAAAACSqOfFcGaidSAm1b7Anc0b1MA.jpg"],[14,"width","178"],[14,"height","178"],[12],[13],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n  "]],[2]]]]],[1,"\\n"]],["@onCloseModal","modal","@dashProfile"],false,[]]',moduleName:"profile-tetris/components/cover-story/creator.gjs",scope:()=>[o.default,l.default,n.default,a.default,s.default,p.default],isStrictMode:!0}),(0,r.default)("creator","Creator"))
e.default=d}))
define("profile-tetris/components/cover-story/viewer",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/helper","@ember/component","graphql-queries/mutations/profile/delete-profile-video.graphql","dash-interop-helper/utils/get-graphql-value-with-dash-fallback","profile-shared/utils/tetris-api-helpers","@ember/debug","global-utils/utils/keyboard-utils","global-utils/utils/trusted-html-safe","global-helpers/helpers/name","video/utils/stop-watch","@glimmer/tracking","@ember/service","@ember/object","@glimmer/component","@ember/destroyable","ember-self-focused/components/self-focused","@ember/modifier","artdeco-button/components/artdeco-button","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","global-modifiers/modifiers/focus","hue-web-icons/components/icon","ember-vector-images/components/custom-image","artdeco-dropdown/components/artdeco-dropdown","artdeco-dropdown/components/artdeco-dropdown-item","artdeco-completeness-meter-linear/components/artdeco-completeness-meter-linear","video/components/video-loader-switch","artdeco-hoverables/components/artdeco-hoverable-trigger","global-helpers/helpers/not","ember-semaphore/components/ember-semaphore","artdeco-modal/components/artdeco-confirmation-dialog","profile-tetris/components/cover-story/creator","profile-tetris/components/cover-story/caption-upload-modal"],(function(e,t,r,i,o,l,n,a,s,p,d,c,u,m,f,h,b,g,_,y,v,P,E,w,T,O,C,I,S,D,R,A,k,L,M,F,x,N,j){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var U,z,V,Y,q,G,W,H,B,K,Q,J,Z,$,X,ee,te,re,ie,oe,le,ne,ae,se,pe,de,ce
e.default=(0,a.setComponentTemplate)((0,l.createTemplateFactory)({id:"FMk+ygZl",block:'[[[1,"\\n"],[1,"\\n    "],[8,[32,0],null,null,[["default"],[[[[1,"\\n      "],[11,0],[24,"tabindex","0"],[24,0,"pv-cover-story-viewer pv-cover-story-viewer__full-page"],[4,[32,1],["keyup",[30,0,["onKeyUp"]]],null],[12],[1,"\\n"],[41,[30,0,["showCoverStoryNavButton"]],[[[1,"          "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_view_cover_story_btn","profile-tetris/components/cover-story/viewer"],null]],[24,0,"pv-cover-story-viewer__nav-btn pv-cover-story-viewer__left-nav-btn"],[4,[32,4],["profile_picture_back"],null],[4,[32,1],["click",[30,0,["toggleShowProfilePhoto"]]],null],[4,[32,5],null,[["when"],[[30,0,["showProfilePhoto"]]]]]],[["@type","@color"],["tertiary","inverse"]],[["default"],[[[[1,"\\n            "],[1,[28,[32,3],["i18n_view_cover_story_btn","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n            "],[8,[32,6],[[24,0,"pv-cover-story-viewer__nav-btn-icon"]],[["@type","@name","@size"],["system","chevron-left","medium"]],null],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[1,"        "],[10,"section"],[14,0,"pv-cover-story-viewer__content"],[12],[1,"\\n          "],[10,0],[15,0,[29,["pv-cover-story-viewer__content-header\\n              ",[52,[30,0,["showProfilePhoto"]],"pv-cover-story-viewer__content-header--hide"]]]],[12],[1,"\\n            "],[10,0],[14,0,"pv-cover-story-viewer__content-header-title"],[12],[1,"\\n              "],[8,[32,7],null,[["@alt","@image","@class","@width","@height","@ghostType"],[[28,[32,3],["i18n_profile_photo_with_name","profile-tetris/components/cover-story/viewer"],[["memberName"],[[30,0,["memberName"]]]]],[30,0,["profilePicture"]],"EntityPhoto-circle-3 b0","100","100","person"]],null],[1,"\\n              "],[10,1],[14,0,"pv-cover-story-viewer__content-header-name"],[12],[1,[28,[32,3],["i18n_profile_photo_with_name","profile-tetris/components/cover-story/viewer"],[["memberName"],[[30,0,["memberName"]]]]]],[13],[1,"\\n"],[41,[30,0,["profile","isSelfView"]],[[[1,"                "],[10,1],[14,0,"pv-cover-story-viewer__content-header-cover-label text-heading-medium"],[15,"aria-label",[28,[32,3],["i18n_self_cover_story","profile-tetris/components/cover-story/viewer"],null]],[12],[1,"\\n                  "],[1,[28,[32,3],["i18n_cover_label","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n                "],[13],[1,"\\n"]],[]],[[[1,"                "],[11,"button"],[24,0,"pv-cover-story-viewer__content-header-cover-label text-heading-medium"],[16,"aria-label",[28,[32,3],["i18n_cover_story_with_name","profile-tetris/components/cover-story/viewer"],[["memberName"],[[30,0,["memberName"]]]]]],[16,"onclick",[30,0,["openCreationEducationModal"]]],[24,4,"button"],[4,[32,4],["coverstory_label"],null],[12],[1,"\\n                  "],[1,[28,[32,3],["i18n_cover_label","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n                  "],[8,[32,6],[[24,0,"v-align-text-bottom"]],[["@type","@size","@name"],["system","small","caret"]],null],[1,"\\n                "],[13],[1,"\\n                "],[8,[32,8],null,[["@class","@isOpen","@justification","@onVisibilityChange"],["pv-cover-story-viewer__more-options",[30,0,["isMoreDropdownOpen"]],"right",[30,0,["toggleMoreDropdown"]]]],[["default"],[[[[1,"\\n                  "],[8,[30,1,["dropdown-trigger"]],[[24,0,"p2"],[4,[32,4],["coverstory_overflow"],null]],null,[["default"],[[[[1,"\\n                    "],[8,[32,6],[[24,0,"t-white"]],[["@type","@size","@name","@a11yText"],["system","medium","overflow-web-ios",[28,[32,3],["i18n_additional_options_a11y","profile-tetris/components/cover-story/viewer"],null]]],null],[1,"\\n                  "]],[]]]]],[1,"\\n                  "],[8,[30,1,["dropdown-content"]],null,[["@arrowDir"],["right"]],[["default"],[[[[1,"\\n                    "],[10,"ul"],[14,0,"pv-top-card-video-player__dropdown-container"],[12],[1,"\\n                      "],[10,"li"],[12],[1,"\\n                        "],[8,[32,9],[[24,0,"display-flex align-items-center full-width"],[4,[32,4],["coverstory_report"],null]],[["@itemSelected"],[[30,0,["openSemaphore"]]]],[["default"],[[[[1,"\\n                          "],[8,[32,6],[[24,0,"mr2"]],[["@type","@name","@size"],["system","report","medium"]],null],[1,"\\n                          "],[1,[28,[32,3],["i18n_report_video","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n                        "]],[]]]]],[1,"\\n                      "],[13],[1,"\\n                    "],[13],[1,"\\n                  "]],[]]]]],[1,"\\n                "]],[1]]]]],[1,"\\n"]],[]]],[1,"            "],[13],[1,"\\n            "],[8,[32,10],null,[["@min","@max","@value","@inverse","@size","@noMotion"],[0,100,[30,0,["progress"]],true,"small",true]],null],[1,"\\n          "],[13],[1,"\\n          "],[10,0],[14,0,"pv-cover-story-viewer__media-container"],[12],[1,"\\n"],[41,[30,0,["showProfilePhoto"]],[[[1,"              "],[10,0],[14,0,"pv-cover-story-viewer__picture-viewer"],[12],[1,"\\n                "],[8,[32,7],null,[["@class","@alt","@image","@width","@height"],["pv-non-self-member-photo-modal__image",[28,[32,3],["i18n_profile_photo_with_name","profile-tetris/components/cover-story/viewer"],[["memberName"],[[30,0,["memberName"]]]]],[30,0,["profilePicture"]],"300","300"]],null],[1,"\\n              "],[13],[1,"\\n"]],[]],[[[1,"              "],[8,[32,11],[[24,0,"pv-cover-story-viewer__media-player"]],[["@videoPlayMetadata","@isAutoloopEnabled","@controls","@preload","@trackingId","@onPlayerPlay","@onPlayerEnd","@onPlayerLoadeddata"],[[30,0,["videoPlayMetadata"]],[30,0,["profile","isSelfView"]],false,"auto",[30,0,["videoPlayMetadata","trackingId"]],[30,0,["handlePlayerPlay"]],[30,0,["handlePlayerEnd"]],[30,0,["handlePlayerLoadedData"]]]],null],[1,"\\n"]],[]]],[1,"            "],[10,0],[14,0,"pv-cover-story-viewer__media-toolbar"],[12],[1,"\\n              "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_close_btn","profile-tetris/components/cover-story/viewer"],null]],[4,[32,4],["coverstory_flow_dismiss"],null],[4,[32,5],null,null],[4,[32,1],["click",[30,0,["clickClose"]]],null]],[["@type","@icon","@color","@circle"],["tertiary","close","inverse",true]],null],[1,"\\n"],[41,[51,[30,0,["showProfilePhoto"]]],[[[1,"                "],[8,[32,2],[[16,"aria-label",[52,[30,0,["muted"]],[28,[32,3],["i18n_unmute_btn","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_mute_btn","profile-tetris/components/cover-story/viewer"],null]]],[4,[32,4],["coverstory_volume_toggle"],null],[4,[32,1],["click",[30,0,["toggleVolume"]]],null]],[["@type","@icon","@color","@circle"],["tertiary",[52,[30,0,["muted"]],"volume-mute","volume-high"],"inverse",true]],null],[1,"\\n                "],[8,[32,2],[[16,"aria-label",[52,[30,0,["paused"]],[28,[32,3],["i18n_play_btn","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_pause_btn","profile-tetris/components/cover-story/viewer"],null]]],[24,0,"pv-cover-story-viewer__media-play-pause-btn"],[4,[32,4],["coverstory_playpause_toggle"],null],[4,[32,1],["click",[30,0,["togglePlayPause"]]],null]],[["@type","@icon","@color","@circle"],["tertiary",[52,[30,0,["paused"]],"play","pause"],"inverse",true]],null],[1,"\\n"],[41,[30,0,["isCaptionUploadEnabled"]],[[[1,"                  "],[8,[32,12],null,[["@disableHoverable"],[[28,[32,13],[[30,0,["hasCaptions"]]],null]]],[["default"],[[[[1,"\\n                    "],[8,[30,2,["artdeco-hoverable-content"]],null,[["@theme"],["inverse"]],[["default"],[[[[1,"\\n                      "],[10,1],[14,0,"t-14"],[12],[1,[28,[32,3],["i18n_captions_edit_hover","profile-tetris/components/cover-story/viewer"],null]],[13],[1,"\\n                    "]],[]]]]],[1,"\\n\\n                    "],[8,[32,2],[[16,"aria-describedby",[30,2,["ariaId"]]],[16,"aria-label",[28,[32,3],["i18n_upload_caption_btn","profile-tetris/components/cover-story/viewer"],null]],[4,[32,4],["coverstory_closed_captions"],null],[4,[32,1],["click",[30,0,["openCaptionUploadModal"]]],null]],[["@type","@icon","@circle","@disabled","@color"],["tertiary","closed-captions-fill",true,[30,0,["hasCaptions"]],"inverse"]],null],[1,"\\n                  "]],[2]]]]],[1,"\\n"]],[]],[[[41,[30,0,["canViewCaptions"]],[[[1,"                  "],[8,[32,2],[[16,"aria-label",[52,[30,0,["_showCaptions"]],[28,[32,3],["i18n_captions_on","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_captions_off","profile-tetris/components/cover-story/viewer"],null]]],[4,[32,1],["click",[30,0,["toggleCaption"]]],null]],[["@type","@icon","@circle","@color"],["tertiary",[52,[30,0,["_showCaptions"]],"closed-captions-fill","closed-captions-outline"],true,"inverse"]],null],[1,"\\n                "]],[]],null]],[]]],[41,[30,0,["profile","isSelfView"]],[[[1,"                  "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_delete_btn","profile-tetris/components/cover-story/viewer"],null]],[24,0,"pv-cover-story-viewer__media-delete-btn"],[4,[32,4],["coverstory_selfview_delete"],null],[4,[32,1],["click",[30,0,["openConfirmationDialog"]]],null]],[["@type","@icon","@color","@circle","@disabled"],["tertiary","trash","inverse",true,[30,0,["isSaving"]]]],null],[1,"\\n"]],[]],null]],[]],null],[1,"            "],[13],[1,"\\n          "],[13],[1,"\\n"],[41,[30,0,["profile","isSelfView"]],[[[1,"            "],[10,2],[14,0,"pv-cover-story-viewer__media-footer"],[12],[1,"\\n              "],[8,[32,6],[[24,0,"mr2 v-align-middle"]],[["@type","@name","@size"],["system","signal-notice","medium"]],null],[1,"\\n              "],[10,1],[12],[1,"\\n                "],[1,[28,[32,3],["i18n_cover_story_modal_footer","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n              "],[13],[1,"\\n            "],[13],[1,"\\n"]],[]],null],[1,"        "],[13],[1,"\\n"],[41,[30,0,["showProfilePhotoNavButton"]],[[[1,"          "],[8,[32,2],[[16,"aria-label",[28,[32,3],["i18n_view_profile_picture_btn","profile-tetris/components/cover-story/viewer"],null]],[24,0,"pv-cover-story-viewer__nav-btn pv-cover-story-viewer__right-nav-btn"],[4,[32,4],["profilephoto_view"],null],[4,[32,1],["click",[30,0,["toggleShowProfilePhoto"]]],null]],[["@type","@color"],["tertiary","inverse"]],[["default"],[[[[1,"\\n            "],[8,[32,6],[[24,0,"pv-cover-story-viewer__nav-btn-icon"]],[["@type","@name","@size"],["system","chevron-right","medium"]],null],[1,"\\n            "],[1,[28,[32,3],["i18n_view_profile_picture_btn","profile-tetris/components/cover-story/viewer"],null]],[1,"\\n          "]],[]]]]],[1,"\\n"]],[]],null],[41,[30,0,["isSemaphoreOpen"]],[[[1,"          "],[8,[32,14],null,[["@entityUrn","@authorUrn","@contentSource","@cancel","@success","@failure"],[[30,0,["reportCoverStoryEntityUrn"]],[30,3,["entityUrn"]],[30,0,["reportCoverStoryContentSource"]],[30,0,["dismissSemaphore"]],[30,0,["dismissSemaphore"]],[30,0,["onSemaphoreFailure"]]]],null],[1,"\\n"]],[]],null],[1,"        "],[8,[32,15],null,[["@isOpen","@title","@content","@primaryActionText","@secondaryActionText","@onPrimary","@onSecondary","@onEscape"],[[30,0,["isDeleteConfirmationOpen"]],[28,[32,3],["i18n_dialog_title","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_dialog_content","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_delete_btn","profile-tetris/components/cover-story/viewer"],null],[28,[32,3],["i18n_cancel_button","profile-tetris/components/cover-story/viewer"],null],[30,0,["deleteCoverStory"]],[30,0,["closeConfirmationDialog"]],[30,0,["closeConfirmationDialog"]]]],null],[1,"\\n"],[41,[30,0,["showCreationEducationModal"]],[[[1,"          "],[8,[32,16],null,[["@dashProfile","@onCloseModal"],[[30,3],[30,0,["closeCreationEducationModal"]]]],null],[1,"\\n"]],[]],null],[1,"      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n\\n"],[41,[30,0,["isCaptionUploadModalOpen"]],[[[1,"      "],[8,[32,17],null,[["@videoPlayMetadata","@onClose"],[[30,0,["videoPlayMetadata"]],[30,0,["closeCaptionUploadModal"]]]],null],[1,"\\n"]],[]],null],[1,"  "]],["dropdown","trigger","@dashProfile"],false,["if","unless"]]',moduleName:"profile-tetris/components/cover-story/viewer.gjs",scope:()=>[P.default,E.on,w.default,T.default,O.default,C.default,I.default,S.default,D.default,R.default,A.default,k.default,L.default,M.default,F.default,x.default,N.default,j.default],isStrictMode:!0}),(U=(0,g.inject)("profile-services@profile"),z=(0,g.inject)("profile-services@identity-store"),V=(0,g.inject)("@linkedin/ember-restli-graphql@graphql"),Y=(0,g.inject)("tracking"),q=(0,g.inject)("persistent-toast-manager@persistent-toast-manager"),G=(0,g.inject)("i18n"),W=class e extends y.default{constructor(){super(...arguments);(0,t.default)(this,"profile",H,this);(0,t.default)(this,"identityStore",B,this);(0,t.default)(this,"graphql",K,this);(0,t.default)(this,"tracking",Q,this);(0,t.default)(this,"persistentToastManager",J,this);(0,t.default)(this,"i18n",Z,this);(0,t.default)(this,"muted",$,this);(0,t.default)(this,"paused",X,this);(0,t.default)(this,"progress",ee,this);(0,t.default)(this,"currentTime",te,this);(0,t.default)(this,"showProfilePhoto",re,this);(0,t.default)(this,"isMoreDropdownOpen",ie,this);(0,t.default)(this,"isSemaphoreOpen",oe,this);(0,t.default)(this,"isDeleteConfirmationOpen",le,this);(0,t.default)(this,"isSaving",ne,this);(0,t.default)(this,"showCreationEducationModal",ae,this);(0,t.default)(this,"isCaptionUploadModalOpen",se,this);(0,t.default)(this,"mediaApi",pe,this);(0,t.default)(this,"_showCaptions",de,this);(0,t.default)(this,"playPromise",ce,this);(0,r.default)(this,"controls",!1)}get captions(){var e
return null===(e=this.mediaApi)||void 0===e?void 0:e.getTextTracks()}get hasCaptions(){var e,t
return(null===(e=this.captions)||void 0===e?void 0:e.length)||(null===(t=(0,_.get)(this.videoPlayMetadata,"transcripts"))||void 0===t?void 0:t.length)}get isCaptionUploadEnabled(){return this.profile.isSelfView}get canViewCaptions(){return!this.profile.isSelfView&&this.hasCaptions}get videoPlayMetadata(){return(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfileVideo,"processedVideo.fullVideo")}get profilePicture(){return(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfile,"profilePicture.displayImageWithFrameReference.vectorImage")||(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfile,"profilePicture.displayImageReferenceResolutionResult.vectorImage")}get memberName(){return(0,f.getName)(this.args.dashProfile)}get videoDuration(){const e=(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfileVideo,"processedVideo.fullVideo.duration")
return"number"==typeof e?e:0}get reportCoverStoryEntityUrn(){return(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfileVideo,"processedVideo.reportSemaphoreContext.targetUrn")}get reportCoverStoryContentSource(){return(0,p.getGraphQlValueWithDashFallback)(this.args.dashProfileVideo,"processedVideo.reportSemaphoreContext.contentSource")}get showProfilePhotoNavButton(){return!this.profile.isSelfView&&!this.showProfilePhoto}get showCoverStoryNavButton(){return!this.profile.isSelfView&&this.showProfilePhoto}willDestroy(){super.willDestroy(...arguments)
this.resetPlayerState()
this.showProfilePhoto=!1}destroyStopwatch(){this.stopWatch&&this.stopWatch.stop()
this.stopWatch=null}resetPlayerState(){this.destroyStopwatch()
this.paused=!1
this.muted=!1}pauseCoverStory(){var e
this.paused=!0
null===(e=this.stopWatch)||void 0===e||e.pause()
this.playPromise&&this.playPromise.then((()=>{if(!this.isDestroying){var e
null===(e=this.mediaApi)||void 0===e||e.pause()
this.playPromise=null}}))}resumeCoverStory(){var e,t
this.paused=!1
null===(e=this.stopWatch)||void 0===e||e.start()
this.playPromise=null===(t=this.mediaApi)||void 0===t?void 0:t.play()}initPlayerInstance(e){var t
const{mediaApi:r}=e
this.mediaApi=r
this.stopWatch=new h.default({onComplete:this.destroyStopwatch.bind(this),duration:this.videoDuration-1e3,onProgress:e=>this.refreshProgress(e)})
null===(t=this.stopWatch)||void 0===t||t.start()
if(!this.isDestroying){this.playPromise=this.mediaApi.play()
this.args.enableAutoPlayWithoutMute?this.mediaApi.unmute():this.muted=!0}}restartProgress(){var e
this.progress=0
this.stopWatch=new h.default({onComplete:this.destroyStopwatch.bind(this),duration:this.videoDuration-1e3,onProgress:e=>this.refreshProgress(e)})
null===(e=this.stopWatch)||void 0===e||e.start()}refreshProgress(e){this.paused||(this.progress=Math.round(100*e))}onKeyUp(e){e.which===u.ESCAPE_KEY_CODE&&this._closeViewer()}clickClose(){this._closeViewer()}toggleMoreDropdown(){this.isMoreDropdownOpen=!this.isMoreDropdownOpen}openSemaphore(){this.isSemaphoreOpen=!0}dismissSemaphore(){this.isSemaphoreOpen=!1}onSemaphoreFailure(){const t=this.i18n.lookupTranslation(e,"report_failure")()
this.persistentToastManager.error({message:t})}openCreationEducationModal(){this.showCreationEducationModal=!0
this.pauseCoverStory()
this.tracking.firePageViewEvent("flagship3_profile_view_base_coverstory_view_playbacklabelmodal")}closeCreationEducationModal(){this.showCreationEducationModal=!1
this.resumeCoverStory()
this.tracking.fireInteractionEvent("coverstory_modal_dismiss")}toggleVolume(){if(this.muted){var e
null===(e=this.mediaApi)||void 0===e||e.unmute()}else{var t
null===(t=this.mediaApi)||void 0===t||t.mute()}this.muted=!this.muted}togglePlayPause(){if(this.paused){var e,t
this.playPromise=null===(e=this.mediaApi)||void 0===e?void 0:e.play()
null===(t=this.stopWatch)||void 0===t||t.start()}else{var r
null===(r=this.stopWatch)||void 0===r||r.pause()
this.playPromise&&this.playPromise.then((()=>{if(!this.isDestroying){var e
null===(e=this.mediaApi)||void 0===e||e.pause()
this.playPromise=null}}))}this.paused=!this.paused}toggleShowProfilePhoto(){this.showProfilePhoto=!this.showProfilePhoto
this.resetPlayerState()
this.showProfilePhoto&&this.tracking.firePageViewEvent("flagship3_profile_view_base_coverstory_profile_picture_view")}openConfirmationDialog(){this.isDeleteConfirmationOpen=!0}closeConfirmationDialog(){this.isDeleteConfirmationOpen=!1
this.tracking.fireInteractionEvent("coverstory_delete_cancel")}deleteCoverStory(){this.isSaving=!0
this.tracking.fireInteractionEvent("coverstory_delete")
this.graphql.executeQuery(s.default,{profileUrn:(0,_.get)(this.args.dashProfile,"entityUrn")}).then((()=>{if(this.isDestroying)return
const t=(0,_.get)(this.args.dashProfile,"publicIdentifier");(0,d.fetchTopCardSupplementary)(this.identityStore,t,{reload:!0})
const r=(0,m.default)(this.i18n.lookupTranslation(e,"can_delete_cover_story_success")())
this.persistentToastManager.success({message:r})
this._closeViewer()})).catch((t=>{if((0,v.isDestroying)(this))throw t
const r=(0,m.default)(this.i18n.lookupTranslation(e,"cannot_delete_cover_story_error")())
this.persistentToastManager.error({message:r})
throw t})).finally((()=>{if(!(0,v.isDestroying)(this)){this.isSaving=!1
this.isDeleteConfirmationOpen=!1}}))}handlePlayerLoadedData(e){this.initPlayerInstance(e)}handlePlayerPlay(){var e
if(!this.muted&&null!==(e=this.mediaApi)&&void 0!==e&&e.isMuted()){var t
null===(t=this.mediaApi)||void 0===t||t.unmute()}this.paused&&(this.paused=!1)}handlePlayerEnd(){if(this.profile.isSelfView)this.restartProgress()
else{var e,t
null===(e=(t=this.args).onClose)||void 0===e||e.call(t)}}openCaptionUploadModal(){this.pauseCoverStory()
this.isCaptionUploadModalOpen=!0}closeCaptionUploadModal(t){"boolean"==typeof t&&(t?this.persistentToastManager.notice({message:this.i18n.lookupTranslation(e,"i18n_captions_upload_succeeded")()}):this.persistentToastManager.error({message:this.i18n.lookupTranslation(e,"i18n_captions_upload_failed")()}))
this.isCaptionUploadModalOpen=!1
this.resumeCoverStory()}toggleCaption(){this._showCaptions=!this._showCaptions
const e=this.captions
for(let t=0;t<e.length;t++){e[t].mode=this._showCaptions?"showing":"disabled"}}_closeViewer(){var e,t
this.isCaptionUploadEnabled&&this.videoPlayMetadata.rollbackAttributes()
null===(e=(t=this.args).onClose)||void 0===e||e.call(t)}},H=(0,i.default)(W.prototype,"profile",[U],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),B=(0,i.default)(W.prototype,"identityStore",[z],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),K=(0,i.default)(W.prototype,"graphql",[V],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Q=(0,i.default)(W.prototype,"tracking",[Y],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),J=(0,i.default)(W.prototype,"persistentToastManager",[q],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Z=(0,i.default)(W.prototype,"i18n",[G],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),$=(0,i.default)(W.prototype,"muted",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),X=(0,i.default)(W.prototype,"paused",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ee=(0,i.default)(W.prototype,"progress",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),te=(0,i.default)(W.prototype,"currentTime",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),re=(0,i.default)(W.prototype,"showProfilePhoto",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ie=(0,i.default)(W.prototype,"isMoreDropdownOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),oe=(0,i.default)(W.prototype,"isSemaphoreOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),le=(0,i.default)(W.prototype,"isDeleteConfirmationOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ne=(0,i.default)(W.prototype,"isSaving",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ae=(0,i.default)(W.prototype,"showCreationEducationModal",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),se=(0,i.default)(W.prototype,"isCaptionUploadModalOpen",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),pe=(0,i.default)(W.prototype,"mediaApi",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),de=(0,i.default)(W.prototype,"_showCaptions",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ce=(0,i.default)(W.prototype,"playPromise",[b.tracked],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.default)(W.prototype,"onKeyUp",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"onKeyUp"),W.prototype),(0,i.default)(W.prototype,"clickClose",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"clickClose"),W.prototype),(0,i.default)(W.prototype,"toggleMoreDropdown",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"toggleMoreDropdown"),W.prototype),(0,i.default)(W.prototype,"openSemaphore",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"openSemaphore"),W.prototype),(0,i.default)(W.prototype,"dismissSemaphore",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"dismissSemaphore"),W.prototype),(0,i.default)(W.prototype,"onSemaphoreFailure",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"onSemaphoreFailure"),W.prototype),(0,i.default)(W.prototype,"openCreationEducationModal",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"openCreationEducationModal"),W.prototype),(0,i.default)(W.prototype,"closeCreationEducationModal",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"closeCreationEducationModal"),W.prototype),(0,i.default)(W.prototype,"toggleVolume",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"toggleVolume"),W.prototype),(0,i.default)(W.prototype,"togglePlayPause",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"togglePlayPause"),W.prototype),(0,i.default)(W.prototype,"toggleShowProfilePhoto",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"toggleShowProfilePhoto"),W.prototype),(0,i.default)(W.prototype,"openConfirmationDialog",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"openConfirmationDialog"),W.prototype),(0,i.default)(W.prototype,"closeConfirmationDialog",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"closeConfirmationDialog"),W.prototype),(0,i.default)(W.prototype,"deleteCoverStory",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"deleteCoverStory"),W.prototype),(0,i.default)(W.prototype,"handlePlayerLoadedData",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"handlePlayerLoadedData"),W.prototype),(0,i.default)(W.prototype,"handlePlayerPlay",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"handlePlayerPlay"),W.prototype),(0,i.default)(W.prototype,"handlePlayerEnd",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"handlePlayerEnd"),W.prototype),(0,i.default)(W.prototype,"openCaptionUploadModal",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"openCaptionUploadModal"),W.prototype),(0,i.default)(W.prototype,"closeCaptionUploadModal",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"closeCaptionUploadModal"),W.prototype),(0,i.default)(W.prototype,"toggleCaption",[_.action],Object.getOwnPropertyDescriptor(W.prototype,"toggleCaption"),W.prototype),W))}))
define.alias("ember-vector-images/components/custom-image","profile-tetris/components/custom-image")
define("profile-tetris/components/detail-contact-info",["exports","@babel/runtime/helpers/esm/initializerDefineProperty","@babel/runtime/helpers/esm/defineProperty","@babel/runtime/helpers/esm/applyDecoratedDescriptor","@babel/runtime/helpers/esm/initializerWarningHelper","@ember/template-factory","@ember/component","ember-batcher","global-utils/utils/url","@ember/service","@glimmer/tracking","@ember/object","@glimmer/component","artdeco-modal/components/artdeco-modal","ember-cli-pemberly-i18n/helpers/format-name","ember-cli-pemberly-tracking/modifiers/track-render","hue-web-icons/components/icon","ember-cli-pemberly-i18n/helpers/t","ember-cli-pemberly-tracking/modifiers/track-interaction","@ember/helper","profile-contact-info/components/contact-info-section"],(function(e,t,r,i,o,l,n,a,s,p,d,c,u,m,f,h,b,g,_,y,v){"use strict"
Object.defineProperty(e,"__esModule",{value:!0})
e.default=void 0
var P,E,w,T,O,C,I,S
e.default=(0,n.setComponentTemplate)((0,l.createTemplateFactory)({id:"SMd8yc2+",block:'[[[1,"\\n"],[1,"    "],[8,[32,0],null,[["@isOpen","@size","@dismissModal"],[[30,0,["isOpen"]],"medium",[30,0,["dismissModal"]]]],[["default"],[[[[1,"\\n      "],[8,[30,1,["artdeco-modal-header"]],null,null,[["default"],[[[[1,"\\n        "],[10,"h1"],[14,1,"pv-contact-info"],[12],[1,"\\n          "],[1,[28,[32,1],null,[["firstName","lastName","type"],[[30,2,["firstName"]],[30,2,["lastName"]],"full"]]]],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n"],[41,[30,0,["shouldShowVerification"]],[[[1,"        "],[11,0],[24,0,"pv-contact-info__verification"],[4,[32,2],null,[["pageKey","routeName","currentRoute"],[[30,0,["verificationPagekey"]],[28,[32,3],[[53,"outletState"],"render.name"],null],[28,[32,3],[[53,"outletState"],"render"],null]]]],[12],[1,"\\n          "],[8,[32,4],[[24,0,"pv-contact-info__contact-icon"]],[["@type","@name","@size"],["system","verified","medium"]],null],[1,"\\n          "],[10,1],[14,0,"pl1 t-16 t-black t-bold"],[12],[1,"\\n            "],[1,[28,[32,5],["verified_phone_number","profile-tetris/components/detail-contact-info"],null]],[1,"\\n          "],[13],[1,"\\n          "],[10,2],[14,0,"pv-contact-info__verification-details"],[12],[1,"\\n"],[41,[30,0,["isSelfView"]],[[[1,"              "],[1,[28,[32,5],["self_verified_details","profile-tetris/components/detail-contact-info"],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[32,5],["non_self_verified_details","profile-tetris/components/detail-contact-info"],null]],[1,"\\n"]],[]]],[1,"            "],[11,1],[4,[32,6],["contact_verification_learn_more"],null],[12],[1,"\\n              "],[1,[28,[32,5],["i18n_contact_info_learn_more","profile-tetris/components/detail-contact-info"],[["link"],[[28,[32,7],null,[["target","rel","href","data-test-detail-contact-info-modal-verified-learn-more__anchor"],["_blank","noopener noreferrer",[30,0,["learnMoreLink"]],"true"]]]]]]],[1,"\\n            "],[13],[1,"\\n\\n          "],[13],[1,"\\n        "],[13],[1,"\\n"]],[]],null],[1,"      "],[8,[30,1,["artdeco-modal-content"]],null,null,[["default"],[[[[1,"\\n        "],[8,[32,8],null,[["@dashProfile","@vieweeName","@publicIdentifier","@isExpanded","@focusOnEditButton"],[[30,3],[30,2],[30,4],true,[30,5]]],null],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[1]]]]],[1,"\\n  "]],["modal","@memberName","@dashProfile","@publicIdentifier","@focusOnEditButton"],false,["if","-get-dynamic-var"]]',moduleName:"profile-tetris/components/detail-contact-info.gjs",scope:()=>[m.default,f.default,h.default,y.get,b.default,g.default,_.default,y.hash,v.default],isStrictMode:!0}),(P=(0,p.inject)("profile-services@profile"),E=(0,p.inject)("router"),w=(0,p.inject)("tracking"),T=class extends u.default{constructor(){super(...arguments);(0,r.default)(this,"learnMoreLink",`${(0,s.getDomainUrl)()}/help/linkedin/answer/131089`);(0,t.default)(this,"isOpen",O,this);(0,t.default)(this,"profile",C,this);(0,t.default)(this,"router",I,this);(0,t.default)(this,"tracking",S,this)}get isSelfView(){return(0,c.get)(this,"profile.isSelfView")}get verificationPagekey(){return this.isSelfView?"flagship3_profile_view_self_contact_verification_verified":"flagship3_profile_view_nonself_contact_verification_verified"}get shouldShowVerification(){return"CONFIRMED"===(0,c.get)(this.args,"memberHandle.elements.0.state")}dismissModal(){this.isOpen=!1
this.tracking.fireInteractionEvent("contact_see_more_close_modal")
this.router.transitionTo("profile.common.profile",this.args.publicIdentifier);(0,a.mutateDOM)((()=>{var e
null===(e=document.getElementById("top-card-text-details-contact-info"))||void 0===e||e.focus()}))}},O=(0,i.default)(T.p