1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5819],{5819:function(e,t,i){i.r(t),i.d(t,{amplify_photo_picker:function(){return l}});var r=i(2508),o=i(1953),a=i(8063),l=function(){function e(e){var t=this;(0,r.r)(this,e),this.headerTitle=a.T.PHOTO_PICKER_TITLE,this.headerHint=a.T.PHOTO_PICKER_HINT,this.placeholderHint=a.T.PHOTO_PICKER_PLACEHOLDER_HINT,this.buttonText=a.T.PHOTO_PICKER_BUTTON_TEXT,this.handleClick=function(){},this.handleInput=function(e){t.file=e.target.files[0];var i=new FileReader;i.onload=function(e){var r=i.result;t.previewState=r},i.readAsDataURL(t.file)}}return e.prototype.componentWillLoad=function(){this.previewState=this.previewSrc},e.prototype.render=function(){var e=this;return(0,r.h)("div",{class:"photo-picker-container"},(0,r.h)("amplify-section",null,(0,r.h)("div",{class:"header"},o.o.get(this.headerTitle)),(0,r.h)("div",{class:"header-hint"},o.o.get(this.headerHint)),(0,r.h)("amplify-picker",{acceptValue:"image/*",inputHandler:this.handleInput},(0,r.h)("div",{class:"picker-body",slot:"picker"},this.previewState?(0,r.h)("img",{src:""+this.previewState}):(0,r.h)("amplify-icon",{name:"photoPlaceholder"}))),(0,r.h)("div",{class:"placeholder-hint"},o.o.get(this.placeholderHint)),(0,r.h)("amplify-button",{handleButtonClick:function(){return e.handleClick(e.file)}},o.o.get(this.buttonText))))},e}();l.style=":host{--object-fit:cover;--hint-color:var(--amplify-grey);--header-color:var(--amplify-secondary-color);--header-size:var(--amplify-text-lg);--header-hint-size:var(--amplify-text-md);--placeholder-hint-size:var(--amplify-text-sm);--placeholder-border-color:var(--amplify-grey)}.photo-picker-container{max-width:50rem}img{-o-object-fit:var(--object-fit);object-fit:var(--object-fit);width:100%;height:100%}input[type=file]{width:100%;height:100%;display:inline-block;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.header{color:var(--header-color);font-size:var(--header-size);font-weight:bold;margin-bottom:24px}.header-hint{color:var(--hint-color);font-size:var(--header-hint-size);word-break:break-word;margin-bottom:24px}.picker-body{position:relative;width:25rem;height:16rem;border:2px dotted var(--placeholder-border-color);padding:10px;margin-bottom:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;overflow:hidden}.placeholder-hint{color:var(--hint-color);font-family:Helvetica;font-style:italic;font-size:var(--placeholder-hint-size);word-break:break-word;margin-bottom:30px}"}}]);
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.